Codeforces Round 592 (Div. 2)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
1244 Codeforces Round 592 (Div. 2) FINISHED False 7200 160865699 Oct. 13, 2019, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15911 ) B Rooms and Staircases PROGRAMMING brute force implementation 1000

B"Nikolay lives in a two-storied house. There are n rooms on each floor, arranged in a row and numbered from one from left to right. So each room can be represented by the number of the floor and the number of the room on this floor (room number is an integer between 1 and n ). If Nikolay is currently in some room, he can move to any of the neighbouring rooms (if they exist). Rooms with numbers i and i+1 on each floor are neighbouring, for all 1 <= q i <= q n - 1 . There may also be staircases that connect two rooms from different floors having the same numbers. If there is a staircase connecting the room x on the first floor and the room x on the second floor, then Nikolay can use it to move from one room to another. Nikolay wants to move through some rooms in his house. To do this, he firstly chooses any room where he starts. Then Nikolay moves between rooms according to the aforementioned rules. Nikolay never visits the same room twice (he won't enter a room where he has already been). Calculate the maximum number of rooms Nikolay can visit during his tour, if: The first line of the input contains one integer t ( 1 <= t <= 100 ) -- the number of test cases in the input. Then test cases follow. Each test case consists of two lines. The first line contains one integer n (1 <= n <= 1 ,000) -- the number of rooms on each floor. The second line contains one string consisting of n characters, each character is either a '0' or a '1'. If the i -th character is a '1', then there is a staircase between the room i on the first floor and the room i on the second floor. If the i -th character is a '0', then there is no staircase between the room i on the first floor and the room i on the second floor. In hacks it is allowed to use only one test case in the input, so t = 1 should be satisfied. For each test case print one integer -- the maximum num"...

Tutorials

Codeforces Round #592 (Div. 2) Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
64459519 vjudge2 B Nov. 7, 2019, 9:50 a.m. OK Clang++17 Diagnostics TESTS 36 62 0 1000
62597963 vjudge2 B Oct. 15, 2019, 3:23 a.m. OK Clang++17 Diagnostics TESTS 36 62 0 1000
64844939 Ghozlan B Nov. 13, 2019, 5:18 p.m. OK Clang++17 Diagnostics TESTS 36 62 5324800 1000
65546490 NF_Erturk B Nov. 22, 2019, 5:19 p.m. OK Clang++17 Diagnostics TESTS 36 77 5324800 1000
66155969 quevangel B Dec. 1, 2019, 10:31 p.m. OK D TESTS 36 31 0 1000
64190212 optykl B Nov. 4, 2019, 7:24 a.m. OK FPC TESTS 36 31 1126400 1000
66266029 karinator B Dec. 4, 2019, 10:30 a.m. OK FPC TESTS 36 31 1126400 1000
65537016 Dbvivi B Nov. 22, 2019, 2:33 p.m. OK FPC TESTS 36 31 1228800 1000
66517879 AronDarkovich B Dec. 8, 2019, 8 p.m. OK FPC TESTS 36 31 1331200 1000
65300240 simoncatcity B Nov. 18, 2019, 12:59 p.m. OK FPC TESTS 36 46 0 1000
62536427 dblark B Oct. 13, 2019, 11:02 p.m. OK FPC TESTS 36 46 0 1000
62519675 Just_Matvey B Oct. 13, 2019, 3:23 p.m. OK FPC TESTS 36 46 0 1000
66745037 yrickman B Dec. 13, 2019, 1:12 a.m. OK FPC TESTS 36 46 1126400 1000
66316112 _Tom_ B Dec. 5, 2019, 1:09 p.m. OK GNU C11 TESTS 36 31 0 1000
67609527 Trinadh724 B Dec. 25, 2019, 2:50 p.m. OK GNU C11 TESTS 36 31 0 1000
67515639 vjudge2 B Dec. 24, 2019, 10:44 a.m. OK GNU C11 TESTS 36 31 0 1000
67410676 Prem1802065p B Dec. 22, 2019, 8:13 a.m. OK GNU C11 TESTS 36 31 0 1000
66557173 0xbaadf00d B Dec. 9, 2019, 5:19 p.m. OK GNU C11 TESTS 36 31 0 1000
68859009 vjudge4 B Jan. 15, 2020, 11:29 a.m. OK GNU C11 TESTS 36 31 0 1000
65662414 Yulina B Nov. 24, 2019, 12:55 p.m. OK GNU C11 TESTS 36 31 0 1000
65132909 yigezhe B Nov. 16, 2019, 4:37 a.m. OK GNU C11 TESTS 36 31 0 1000
64771477 pengin_2000 B Nov. 13, 2019, 12:14 a.m. OK GNU C11 TESTS 36 31 0 1000
64699485 torque_459 B Nov. 11, 2019, 2:23 p.m. OK GNU C11 TESTS 36 31 0 1000
62537486 Llf0703 B Oct. 14, 2019, 12:13 a.m. OK GNU C++11 TESTS 36 30 0 1000
69879913 Ans_31 B Jan. 31, 2020, 5:56 a.m. OK GNU C++11 TESTS 36 30 0 1000
64458502 Akasaka B Nov. 7, 2019, 9:30 a.m. OK GNU C++11 TESTS 36 30 0 1000
63201441 dejongh93 B Oct. 22, 2019, 8:45 p.m. OK GNU C++11 TESTS 36 30 0 1000
62940875 Luka24 B Oct. 19, 2019, 3:33 p.m. OK GNU C++11 TESTS 36 30 0 1000
62600412 zx081325 B Oct. 15, 2019, 5:13 a.m. OK GNU C++11 TESTS 36 30 0 1000
62576155 WidePlain B Oct. 14, 2019, 3:57 p.m. OK GNU C++11 TESTS 36 30 0 1000
68972522 0qo_oq0 B Jan. 17, 2020, 7:33 a.m. OK GNU C++11 TESTS 36 31 0 1000
69001266 omar_aziz B Jan. 17, 2020, 7:43 p.m. OK GNU C++11 TESTS 36 31 0 1000
69474396 anderson1208 B Jan. 24, 2020, 3:38 p.m. OK GNU C++11 TESTS 36 31 0 1000
68873358 a2_incognito B Jan. 15, 2020, 4:03 p.m. OK GNU C++14 TESTS 36 15 0 1000
63540344 Misuchii_s B Oct. 27, 2019, 9:07 a.m. OK GNU C++14 TESTS 36 15 0 1000
66126582 witch_factory B Dec. 1, 2019, 10:37 a.m. OK GNU C++14 TESTS 36 15 0 1000
62643829 farazradfar B Oct. 15, 2019, 6:55 p.m. OK GNU C++14 TESTS 36 15 0 1000
62668481 xelet B Oct. 16, 2019, 8:47 a.m. OK GNU C++14 TESTS 36 15 0 1000
62677041 _c_k_r_ B Oct. 16, 2019, 11:44 a.m. OK GNU C++14 TESTS 36 15 0 1000
62874118 WeAreTheSame B Oct. 18, 2019, 2:44 p.m. OK GNU C++14 TESTS 36 15 0 1000
63014325 luogu_bot4 B Oct. 20, 2019, 12:29 p.m. OK GNU C++14 TESTS 36 15 0 1000
62640592 pratikrahul B Oct. 15, 2019, 6:02 p.m. OK GNU C++14 TESTS 36 15 0 1000
62612128 constantine101 B Oct. 15, 2019, 10:11 a.m. OK GNU C++14 TESTS 36 15 0 1000
62603161 Partharora1010 B Oct. 15, 2019, 6:35 a.m. OK GNU C++17 TESTS 36 15 0 1000
68067868 kediarewant B Jan. 2, 2020, 8:48 a.m. OK GNU C++17 TESTS 36 15 0 1000
67658315 vjudge5 B Dec. 26, 2019, 2:44 p.m. OK GNU C++17 TESTS 36 15 0 1000
63050366 gabrielevi B Oct. 21, 2019, 1:49 a.m. OK GNU C++17 TESTS 36 15 0 1000
62868472 fuoguokai1002 B Oct. 18, 2019, 1:01 p.m. OK GNU C++17 TESTS 36 15 0 1000
62624075 hasanhp7 B Oct. 15, 2019, 1:36 p.m. OK GNU C++17 TESTS 36 15 0 1000
62618314 Lazy-Tortoise B Oct. 15, 2019, 12:06 p.m. OK GNU C++17 TESTS 36 15 0 1000
62612116 Vasyl_Protsiv B Oct. 15, 2019, 10:10 a.m. OK GNU C++17 TESTS 36 15 0 1000
62610746 noobkush B Oct. 15, 2019, 9:38 a.m. OK GNU C++17 TESTS 36 15 0 1000
62602732 mmmmmkj B Oct. 15, 2019, 6:24 a.m. OK GNU C++17 TESTS 36 15 0 1000
62753662 synapse B Oct. 17, 2019, 3:10 a.m. OK Go TESTS 36 31 0 1000
62529332 DMOVE B Oct. 13, 2019, 6:36 p.m. OK Go TESTS 36 46 0 1000
62865124 CowboyFromHell B Oct. 18, 2019, 11:59 a.m. OK Go TESTS 36 312 0 1000
66000536 potatmen B Nov. 29, 2019, 6:57 p.m. OK Java 11 TESTS 36 171 0 1000
68699656 warrioramrit B Jan. 13, 2020, 9:02 a.m. OK Java 11 TESTS 36 187 0 1000
69484873 cribabby B Jan. 24, 2020, 7:07 p.m. OK Java 11 TESTS 36 202 0 1000
69390344 aneri B Jan. 23, 2020, 3:13 a.m. OK Java 11 TESTS 36 202 0 1000
68964011 Younoknowme B Jan. 17, 2020, 3:33 a.m. OK Java 11 TESTS 36 202 0 1000
63854003 serafimkoo B Oct. 30, 2019, 4:40 p.m. OK Java 11 TESTS 36 202 0 1000
69390397 aneri B Jan. 23, 2020, 3:17 a.m. OK Java 11 TESTS 36 217 0 1000
68618760 mukulagarwal08 B Jan. 11, 2020, 6:34 p.m. OK Java 11 TESTS 36 233 0 1000
64072472 DimaTomsk B Nov. 2, 2019, 7:51 a.m. OK Java 11 TESTS 36 249 0 1000
63128941 Kavi.Prajapati B Oct. 22, 2019, 1:37 p.m. OK Java 8 TESTS 36 108 0 1000
62595282 NormalGeek B Oct. 15, 2019, 1:11 a.m. OK Java 8 TESTS 36 109 0 1000
62671417 codrex B Oct. 16, 2019, 9:54 a.m. OK Java 8 TESTS 36 109 0 1000
62646320 zekigurbuz B Oct. 15, 2019, 7:40 p.m. OK Java 8 TESTS 36 109 0 1000
62618246 develeper B Oct. 15, 2019, 12:05 p.m. OK Java 8 TESTS 36 109 0 1000
62609935 himanshusmn4 B Oct. 15, 2019, 9:20 a.m. OK Java 8 TESTS 36 109 0 1000
62598284 AnandOza B Oct. 15, 2019, 3:37 a.m. OK Java 8 TESTS 36 109 0 1000
62578505 akman10 B Oct. 14, 2019, 4:36 p.m. OK Java 8 TESTS 36 109 0 1000
62574511 Clowyy B Oct. 14, 2019, 3:29 p.m. OK Java 8 TESTS 36 109 0 1000
62574059 machhra B Oct. 14, 2019, 3:21 p.m. OK Java 8 TESTS 36 109 0 1000
62676335 walborn B Oct. 16, 2019, 11:32 a.m. OK JavaScript TESTS 36 31 204800 1000
62522373 Glushen B Oct. 13, 2019, 4:10 p.m. OK Kotlin TESTS 36 156 102400 1000
62584209 Black_Fregat B Oct. 14, 2019, 6:12 p.m. OK Kotlin TESTS 36 187 819200 1000
62811863 undermark5 B Oct. 17, 2019, 3:15 p.m. OK Kotlin TESTS 36 218 1228800 1000
62882781 Xtreemist B Oct. 18, 2019, 5:18 p.m. OK Mono C# TESTS 36 46 409600 1000
64709291 nastya1199 B Nov. 11, 2019, 5:54 p.m. OK Mono C# TESTS 36 61 409600 1000
62544984 Giangvp B Oct. 14, 2019, 5:58 a.m. OK Mono C# TESTS 36 61 409600 1000
62929139 lmao B Oct. 19, 2019, 12:11 p.m. OK Mono C# TESTS 36 61 409600 1000
64646634 ivansluque B Nov. 10, 2019, 3:15 p.m. OK Mono C# TESTS 36 61 409600 1000
66797807 GusztavSzmolik B Dec. 13, 2019, 5:40 p.m. OK Mono C# TESTS 36 61 819200 1000
62599094 nadilk B Oct. 15, 2019, 4:16 a.m. OK Mono C# TESTS 36 62 409600 1000
62877010 TRR B Oct. 18, 2019, 3:36 p.m. OK Mono C# TESTS 36 62 409600 1000
62887828 mhaavald B Oct. 18, 2019, 7:05 p.m. OK Mono C# TESTS 36 62 409600 1000
62519006 _DAC_ B Oct. 13, 2019, 3:12 p.m. OK Mono C# TESTS 36 77 4096000 1000
63530660 vjudge4 B Oct. 27, 2019, 6:37 a.m. OK MS C++ TESTS 36 30 0 1000
63523977 vjudge4 B Oct. 27, 2019, 4:41 a.m. OK MS C++ TESTS 36 30 0 1000
64063948 vjudge2 B Nov. 2, 2019, 5:04 a.m. OK MS C++ TESTS 36 30 3993600 1000
68755168 vjudge4 B Jan. 14, 2020, 8:02 a.m. OK MS C++ TESTS 36 31 0 1000
68757974 vjudge2 B Jan. 14, 2020, 8:23 a.m. OK MS C++ TESTS 36 31 0 1000
68768164 vjudge2 B Jan. 14, 2020, 10:45 a.m. OK MS C++ TESTS 36 31 0 1000
68768220 vjudge2 B Jan. 14, 2020, 10:47 a.m. OK MS C++ TESTS 36 31 0 1000
68771293 vjudge3 B Jan. 14, 2020, 11:57 a.m. OK MS C++ TESTS 36 31 0 1000
68853310 vjudge5 B Jan. 15, 2020, 9:47 a.m. OK MS C++ TESTS 36 31 0 1000
69091475 vjudge2 B Jan. 19, 2020, 10:19 a.m. OK MS C++ TESTS 36 31 0 1000
62537770 jjongwuner B Oct. 14, 2019, 12:30 a.m. OK MS C++ 2017 TESTS 36 30 0 1000
64872583 UAV B Nov. 14, 2019, 8:41 a.m. OK MS C++ 2017 TESTS 36 31 0 1000
67614310 vjudge4 B Dec. 25, 2019, 4:37 p.m. OK MS C++ 2017 TESTS 36 31 0 1000
68777088 vjudge4 B Jan. 14, 2020, 1:47 p.m. OK MS C++ 2017 TESTS 36 31 0 1000
64499509 catplatypus B Nov. 8, 2019, 3:10 a.m. OK MS C++ 2017 TESTS 36 31 0 1000
64208819 alirezamv B Nov. 4, 2019, 1:17 p.m. OK MS C++ 2017 TESTS 36 31 0 1000
64072567 eLteammate B Nov. 2, 2019, 7:53 a.m. OK MS C++ 2017 TESTS 36 31 0 1000
63852584 vasavasa B Oct. 30, 2019, 4:14 p.m. OK MS C++ 2017 TESTS 36 31 0 1000
63780219 walqshwq B Oct. 30, 2019, 10:48 a.m. OK MS C++ 2017 TESTS 36 31 0 1000
63380005 vjudge3 B Oct. 25, 2019, 12:11 p.m. OK MS C++ 2017 TESTS 36 31 0 1000
62535678 Rara. B Oct. 13, 2019, 10:13 p.m. OK Node.js TESTS 36 202 2150400 1000
63696697 Evelina.Eva B Oct. 29, 2019, 5:44 a.m. OK PascalABC.NET TESTS 36 327 0 1000
64494575 sanyacoder B Nov. 7, 2019, 10:23 p.m. OK Perl TESTS 36 31 0 1000
64575578 mayakin B Nov. 9, 2019, 10:38 a.m. OK PHP TESTS 36 46 409600 1000
62560711 alexwice B Oct. 14, 2019, 11:52 a.m. OK PyPy 2 TESTS 36 140 512000 1000
62556324 spartan911 B Oct. 14, 2019, 10:40 a.m. OK PyPy 2 TESTS 36 140 1331200 1000
68706218 aaa_bbb_ccc B Jan. 13, 2020, 11:23 a.m. OK PyPy 2 TESTS 36 155 0 1000
62768674 roaris B Oct. 17, 2019, 9:31 a.m. OK PyPy 3 TESTS 36 140 204800 1000
62531773 AppyFizz B Oct. 13, 2019, 7:42 p.m. OK PyPy 3 TESTS 36 140 204800 1000
63370231 vjudge1 B Oct. 25, 2019, 9:05 a.m. OK PyPy 3 TESTS 36 140 1843200 1000
63253843 suvashkumar B Oct. 23, 2019, 4:54 p.m. OK PyPy 3 TESTS 36 140 1843200 1000
64548381 johnpm B Nov. 8, 2019, 9:06 p.m. OK PyPy 3 TESTS 36 155 204800 1000
64539584 vjudge5 B Nov. 8, 2019, 6:08 p.m. OK PyPy 3 TESTS 36 155 204800 1000
63428032 Tsukasan B Oct. 26, 2019, 8:23 a.m. OK PyPy 3 TESTS 36 155 204800 1000
62523442 M1T B Oct. 13, 2019, 4:30 p.m. OK PyPy 3 TESTS 36 155 204800 1000
65220460 k0ndr B Nov. 16, 2019, 8:34 p.m. OK PyPy 3 TESTS 36 155 512000 1000
64077087 Iakovlev_Ivan B Nov. 2, 2019, 9:05 a.m. OK PyPy 3 TESTS 36 155 512000 1000
62644669 elistark B Oct. 15, 2019, 7:10 p.m. OK Python 2 TESTS 36 187 102400 1000
62566196 muhitsarwar B Oct. 14, 2019, 1:18 p.m. OK Python 2 TESTS 36 202 0 1000
62576673 GayathriVenkatesh B Oct. 14, 2019, 4:06 p.m. OK Python 2 TESTS 36 202 102400 1000
62686020 Luxo B Oct. 16, 2019, 2:05 p.m. OK Python 2 TESTS 36 202 204800 1000
62578109 bhishma B Oct. 14, 2019, 4:29 p.m. OK Python 2 TESTS 36 202 204800 1000
62643272 Madhur1906 B Oct. 15, 2019, 6:46 p.m. OK Python 2 TESTS 36 233 102400 1000
69061767 cs1g B Jan. 18, 2020, 4:49 p.m. OK Python 3 TESTS 36 109 0 1000
67770896 Zozulina_Nadezhda B Dec. 28, 2019, 6:44 a.m. OK Python 3 TESTS 36 109 0 1000
62975746 Abdal-rahman B Oct. 20, 2019, 8:31 a.m. OK Python 3 TESTS 36 109 0 1000
62969544 vishnutheerthep B Oct. 20, 2019, 6:22 a.m. OK Python 3 TESTS 36 109 0 1000
62839287 bob_y1 B Oct. 18, 2019, 1:24 a.m. OK Python 3 TESTS 36 109 0 1000
62773265 SAAV B Oct. 17, 2019, 10:59 a.m. OK Python 3 TESTS 36 109 0 1000
62679241 valera_god B Oct. 16, 2019, 12:21 p.m. OK Python 3 TESTS 36 109 0 1000
62666815 charlesmartino B Oct. 16, 2019, 8:06 a.m. OK Python 3 TESTS 36 109 0 1000
62636136 Hajymyrat_Ayydoff B Oct. 15, 2019, 4:52 p.m. OK Python 3 TESTS 36 109 0 1000
62607121 hkdl2468 B Oct. 15, 2019, 8:14 a.m. OK Python 3 TESTS 36 109 0 1000
62548678 Dawer B Oct. 14, 2019, 7:37 a.m. OK Rust TESTS 36 46 0 1000

remove filters

Back to search problems