Codeforces Round 492 (Div. 2) [Thanks, uDebug!]

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
996 Codeforces Round 492 (Div. 2) [Thanks, uDebug!] FINISHED False 7200 201965099 June 24, 2018, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9065 ) B World Cup PROGRAMMING binary search math 1300

B'Allen wants to enter a fan zone that occupies a round square and has n entrances. There already is a queue of a_i people in front of the i -th entrance. Each entrance allows one person from its queue to enter the fan zone in one minute. Allen uses the following strategy to enter the fan zone: Determine the entrance through which Allen will finally enter the fan zone. The first line contains a single integer n ( 2 <= n <= 10^5 ) -- the number of entrances. The second line contains n integers a_1, a_2, ldots, a_n ( 0 <= a_i <= 10^9 ) -- the number of people in queues. These numbers do not include Allen. Print a single integer -- the number of entrance that Allen will use. In the first example the number of people (not including Allen) changes as follows: [ textbf{2}, 3, 2, 0] to [1, textbf{2}, 1, 0] to [0, 1, textbf{0}, 0] . The number in bold is the queue Alles stands in. We see that he will enter the fan zone through the third entrance. In the second example the number of people (not including Allen) changes as follows: [ textbf{10}, 10] to [9, textbf{9}] to [ textbf{8}, 8] to [7, textbf{7}] to [ textbf{6}, 6] to [5, textbf{5}] to [ textbf{4}, 4] to [3, textbf{3}] to [ textbf{2}, 2] to [1, textbf{1}] to [ textbf{0}, 0] . In the third example the number of people (not including Allen) changes as follows: [ textbf{5}, 2, 6, 5, 7, 4] to [4, textbf{1}, 5, 4, 6, 3] to [3, 0, textbf{4}, 3, 5, 2] to [2, 0, 3, textbf{2}, 4, 1] to [1, 0, 2, 1, textbf{3}, 0] to [0, 0, 1, 0, 2, textbf{0}] . '...

Tutorials

Editorial for Codeforces Round #492 [Thanks u-Debug!]

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
39630919 manuchroma B June 24, 2018, 8:23 p.m. OK Clang++17 Diagnostics TESTS 60 998 21196800 1300
39820368 rr_ B July 1, 2018, 11:52 a.m. OK D TESTS 60 77 11571200 1300
43853509 erel B Oct. 5, 2018, 3:55 p.m. OK FPC TESTS 60 46 409600 1300
43897715 KietLe B Oct. 6, 2018, 11:28 a.m. OK FPC TESTS 60 46 409600 1300
39640893 Jarazorg B June 25, 2018, 6:56 a.m. OK FPC TESTS 60 46 409600 1300
41975667 TShT B Aug. 22, 2018, 6:35 p.m. OK FPC TESTS 60 46 819200 1300
44435198 chaorenhaha B Oct. 17, 2018, 9:37 a.m. OK FPC TESTS 60 46 819200 1300
44435297 chaorenhaha B Oct. 17, 2018, 9:40 a.m. OK FPC TESTS 60 46 7987200 1300
39618236 Ulanov_Victor B June 24, 2018, 5:17 p.m. OK FPC TESTS 60 46 40038400 1300
44435277 chaorenhaha B Oct. 17, 2018, 9:39 a.m. OK FPC TESTS 60 61 0 1300
44435214 chaorenhaha B Oct. 17, 2018, 9:38 a.m. OK FPC TESTS 60 61 1638400 1300
39624452 PAG B June 24, 2018, 6:02 p.m. OK FPC TESTS 60 62 409600 1300
39622982 naruto248 B June 24, 2018, 5:50 p.m. OK GNU C TESTS 60 31 409600 1300
41098592 Taj025 B Aug. 1, 2018, 10:04 p.m. OK GNU C TESTS 60 31 1228800 1300
41709599 Mahmud_Bhuiyan B Aug. 17, 2018, 3:47 p.m. OK GNU C TESTS 60 46 0 1300
41684301 AsadulHasan_Rasel B Aug. 17, 2018, 1:02 p.m. OK GNU C TESTS 60 46 0 1300
41674840 Aporajita_Dutta B Aug. 17, 2018, 7:28 a.m. OK GNU C TESTS 60 46 0 1300
41674703 Nayeemz B Aug. 17, 2018, 7:23 a.m. OK GNU C TESTS 60 46 0 1300
41673497 Abdullahdidar B Aug. 17, 2018, 6:44 a.m. OK GNU C TESTS 60 46 0 1300
41673129 nahidislamz B Aug. 17, 2018, 6:31 a.m. OK GNU C TESTS 60 46 0 1300
39650913 zhengfeng_L B June 25, 2018, 1:33 p.m. OK GNU C TESTS 60 46 0 1300
39646850 anirudhbansal B June 25, 2018, 10:48 a.m. OK GNU C TESTS 60 46 0 1300
39665220 Sooke B June 26, 2018, 4:31 a.m. OK GNU C++ TESTS 60 30 204800 1300
40597873 vjudge5 B July 21, 2018, 6:46 a.m. OK GNU C++ TESTS 60 31 0 1300
40931734 ReaLNero1 B July 30, 2018, 1:16 a.m. OK GNU C++ TESTS 60 31 204800 1300
40138561 vjudge2 B July 9, 2018, 4:57 p.m. OK GNU C++ TESTS 60 31 204800 1300
39665226 Sooke B June 26, 2018, 4:32 a.m. OK GNU C++ TESTS 60 31 204800 1300
40564127 vjudge1 B July 20, 2018, 3:42 a.m. OK GNU C++ TESTS 60 31 409600 1300
39662602 AAYES B June 26, 2018, 1:29 a.m. OK GNU C++ TESTS 60 31 409600 1300
39649384 ftx456789 B June 25, 2018, 12:29 p.m. OK GNU C++ TESTS 60 31 409600 1300
39637083 Position B June 25, 2018, 3:33 a.m. OK GNU C++ TESTS 60 31 819200 1300
39819887 ILLENIUM B July 1, 2018, 11:30 a.m. OK GNU C++ TESTS 60 31 1638400 1300
39644254 risu007 B June 25, 2018, 9:09 a.m. OK GNU C11 TESTS 60 46 0 1300
42614036 Akanik B Sept. 7, 2018, 12:44 p.m. OK GNU C11 TESTS 60 46 0 1300
51900078 NoSoul B March 27, 2019, 1:10 p.m. OK GNU C11 TESTS 60 46 0 1300
43746438 freyes B Oct. 3, 2018, 9:20 p.m. OK GNU C11 TESTS 60 46 0 1300
60461993 lehuhel B Sept. 12, 2019, 9:19 p.m. OK GNU C11 TESTS 60 46 409600 1300
60639213 anya12345 B Sept. 15, 2019, 2:56 p.m. OK GNU C11 TESTS 60 46 409600 1300
60647647 anya12345 B Sept. 15, 2019, 5:47 p.m. OK GNU C11 TESTS 60 46 409600 1300
60649457 anya12345 B Sept. 15, 2019, 6:31 p.m. OK GNU C11 TESTS 60 46 409600 1300
60647818 anya12345 B Sept. 15, 2019, 5:51 p.m. OK GNU C11 TESTS 60 46 409600 1300
60363326 anya12345 B Sept. 10, 2019, 7:22 p.m. OK GNU C11 TESTS 60 46 409600 1300
39694775 251 B June 27, 2018, 7:52 a.m. OK GNU C++11 TESTS 60 31 0 1300
39814294 menjiantong B July 1, 2018, 7:08 a.m. OK GNU C++11 TESTS 60 31 0 1300
39670932 cXs5 B June 26, 2018, 9:11 a.m. OK GNU C++11 TESTS 60 31 0 1300
39670841 cXs5 B June 26, 2018, 9:07 a.m. OK GNU C++11 TESTS 60 31 0 1300
46809512 vjudge1 B Dec. 9, 2018, 11:12 a.m. OK GNU C++11 TESTS 60 31 0 1300
45143900 luogu_bot2 B Oct. 31, 2018, 3:53 p.m. OK GNU C++11 TESTS 60 31 0 1300
40091421 AkaneSasu B July 8, 2018, 5:22 p.m. OK GNU C++11 TESTS 60 31 0 1300
45030249 luogu_bot4 B Oct. 29, 2018, 3:11 a.m. OK GNU C++11 TESTS 60 31 409600 1300
45030266 maximumhanyu B Oct. 29, 2018, 3:13 a.m. OK GNU C++11 TESTS 60 31 409600 1300
44186964 YuWenjue B Oct. 12, 2018, 1:30 p.m. OK GNU C++11 TESTS 60 31 409600 1300
39651639 iaNTU B June 25, 2018, 2 p.m. OK GNU C++14 TESTS 60 31 409600 1300
68430076 gargyash204 B Jan. 9, 2020, 6:23 a.m. OK GNU C++14 TESTS 60 46 0 1300
62616166 vjudge5 B Oct. 15, 2019, 11:30 a.m. OK GNU C++14 TESTS 60 46 0 1300
59085845 carbon24 B Aug. 19, 2019, 11:01 a.m. OK GNU C++14 TESTS 60 46 0 1300
52060149 AMnu B March 30, 2019, 11:37 p.m. OK GNU C++14 TESTS 60 46 0 1300
45697061 Kyugatsu B Nov. 14, 2018, 4:45 a.m. OK GNU C++14 TESTS 60 46 0 1300
43182680 KamilSL B Sept. 21, 2018, 2:03 p.m. OK GNU C++14 TESTS 60 46 0 1300
42324255 vjudge2 B Sept. 1, 2018, 2:46 a.m. OK GNU C++14 TESTS 60 46 0 1300
40890277 mostafa_thabet B July 28, 2018, 3:29 p.m. OK GNU C++14 TESTS 60 46 0 1300
41314338 pe4kin B Aug. 7, 2018, 6:22 p.m. OK GNU C++14 TESTS 60 46 0 1300
44429897 Jaihk662 B Oct. 17, 2018, 7:04 a.m. OK GNU C++17 TESTS 60 31 409600 1300
43031844 shuashuawan B Sept. 18, 2018, 12:02 p.m. OK GNU C++17 TESTS 60 31 11776000 1300
40921559 Playnext B July 29, 2018, 3:04 p.m. OK GNU C++17 TESTS 60 31 18124800 1300
64064277 Onkar98 B Nov. 2, 2019, 5:11 a.m. OK GNU C++17 TESTS 60 46 0 1300
66370063 yyp690 B Dec. 5, 2019, 9:31 p.m. OK GNU C++17 TESTS 60 46 0 1300
66592601 tjrac6017203257 B Dec. 10, 2019, 1:29 p.m. OK GNU C++17 TESTS 60 46 0 1300
67381339 vjudge3 B Dec. 21, 2019, 4:27 p.m. OK GNU C++17 TESTS 60 46 0 1300
69146338 nodgd B Jan. 19, 2020, 3:37 p.m. OK GNU C++17 TESTS 60 46 0 1300
62940475 FrontierOne B Oct. 19, 2019, 3:25 p.m. OK GNU C++17 TESTS 60 46 0 1300
63924804 fruitapple B Oct. 31, 2019, 12:45 p.m. OK GNU C++17 TESTS 60 46 0 1300
64186498 lalala179 B Nov. 4, 2019, 5:30 a.m. OK Go TESTS 60 61 0 1300
40492505 Marii B July 17, 2018, 10:24 p.m. OK Go TESTS 60 140 2150400 1300
39699117 HeavyDamage B June 27, 2018, 10:56 a.m. OK Haskell TESTS 60 514 40140800 1300
49892358 norty B Feb. 14, 2019, 4:56 a.m. OK Java 8 TESTS 60 124 2048000 1300
39635261 jonsnow7 B June 25, 2018, 1:29 a.m. OK Java 8 TESTS 60 139 0 1300
39631909 anishkk24 B June 24, 2018, 8:56 p.m. OK Java 8 TESTS 60 139 0 1300
46417913 szfck B Nov. 30, 2018, 8:26 p.m. OK Java 8 TESTS 60 139 1945600 1300
39764383 In_The_Name_Of_Love B June 29, 2018, 9:48 a.m. OK Java 8 TESTS 60 139 20377600 1300
48437624 Gr8tor B Jan. 15, 2019, 10:12 p.m. OK Java 8 TESTS 60 140 0 1300
59352219 garnacha B Aug. 23, 2019, 12:14 p.m. OK Java 8 TESTS 60 140 0 1300
56142012 Harbin B June 27, 2019, 3:58 a.m. OK Java 8 TESTS 60 140 0 1300
54516592 mufaddalnaya B May 23, 2019, 10:12 a.m. OK Java 8 TESTS 60 140 0 1300
47869930 saurabh0611 B Jan. 3, 2019, 12:15 p.m. OK Java 8 TESTS 60 140 0 1300
39698295 benjani B June 27, 2018, 10:20 a.m. OK JavaScript TESTS 60 140 17510400 1300
56608427 vasilenko.sn B July 6, 2019, 6:06 a.m. OK Kotlin TESTS 60 264 5836800 1300
55639811 og.kostya B June 16, 2019, 11:10 a.m. OK Mono C# TESTS 60 62 409600 1300
40113676 tienthieusac B July 9, 2018, 1:17 p.m. OK Mono C# TESTS 60 77 11468800 1300
39635921 muslim B June 25, 2018, 2:14 a.m. OK Mono C# TESTS 60 77 13209600 1300
39680171 vansang1706 B June 26, 2018, 3:55 p.m. OK Mono C# TESTS 60 77 14950400 1300
39619165 gonchenko B June 24, 2018, 5:22 p.m. OK Mono C# TESTS 60 93 11468800 1300
48185002 toysheeyeyraku B Jan. 10, 2019, 2:31 p.m. OK Mono C# TESTS 60 93 15769600 1300
39802181 zazak B June 30, 2018, 4:08 p.m. OK Mono C# TESTS 60 93 16076800 1300
39802217 zazak B June 30, 2018, 4:10 p.m. OK Mono C# TESTS 60 108 15974400 1300
41612861 Skndr801 B Aug. 15, 2018, 7:25 a.m. OK Mono C# TESTS 60 109 11468800 1300
51240297 nemars B March 12, 2019, 9:19 p.m. OK Mono C# TESTS 60 139 18534400 1300
47265309 vjudge3 B Dec. 19, 2018, 2:04 p.m. OK MS C++ TESTS 60 31 409600 1300
49301112 vjudge2 B Feb. 1, 2019, 3:04 a.m. OK MS C++ TESTS 60 46 0 1300
40399327 vjudge3 B July 16, 2018, 6:54 a.m. OK MS C++ TESTS 60 46 0 1300
40398975 vjudge2 B July 16, 2018, 6:45 a.m. OK MS C++ TESTS 60 46 0 1300
39792401 brutecoder99 B June 30, 2018, 8:52 a.m. OK MS C++ TESTS 60 46 0 1300
39677450 vjudge5 B June 26, 2018, 1:56 p.m. OK MS C++ TESTS 60 46 0 1300
47681173 vjudge3 B Dec. 29, 2018, 12:12 p.m. OK MS C++ TESTS 60 46 0 1300
63278959 vjudge1 B Oct. 24, 2019, 8:01 a.m. OK MS C++ TESTS 60 46 0 1300
42452435 vjudge2 B Sept. 4, 2018, 9:03 a.m. OK MS C++ TESTS 60 46 307200 1300
42658371 jprmoisakis B Sept. 8, 2018, 1:34 a.m. OK MS C++ TESTS 60 46 307200 1300
51071807 KKJYOvO B March 9, 2019, 7:57 a.m. OK MS C++ 2017 TESTS 60 46 409600 1300
62311800 vjudge5 B Oct. 10, 2019, 2:08 p.m. OK MS C++ 2017 TESTS 60 62 0 1300
56981164 vjudge3 B July 13, 2019, 1:57 p.m. OK MS C++ 2017 TESTS 60 62 409600 1300
69472137 vjudge1 B Jan. 24, 2020, 2:53 p.m. OK MS C++ 2017 TESTS 60 62 409600 1300
69814235 vjudge4 B Jan. 30, 2020, 5:34 a.m. OK MS C++ 2017 TESTS 60 62 819200 1300
69326738 vjudge3 B Jan. 22, 2020, 3:06 p.m. OK MS C++ 2017 TESTS 60 62 1638400 1300
62839075 Y_is_sunshine B Oct. 18, 2019, 1:14 a.m. OK MS C++ 2017 TESTS 60 109 0 1300
62839120 vjudge4 B Oct. 18, 2019, 1:16 a.m. OK MS C++ 2017 TESTS 60 109 0 1300
58413616 vjudge1 B Aug. 7, 2019, 3:14 a.m. OK MS C++ 2017 TESTS 60 109 409600 1300
68493517 1936173016 B Jan. 10, 2020, 12:34 p.m. OK MS C++ 2017 TESTS 60 124 0 1300
39680709 X_Bot B June 26, 2018, 4:18 p.m. OK PascalABC.NET TESTS 60 109 0 1300
39655623 fruha B June 25, 2018, 4:54 p.m. OK PascalABC.NET TESTS 60 124 3788800 1300
59250071 error0308 B Aug. 22, 2019, 3:10 a.m. OK PHP TESTS 60 61 10035200 1300
39754508 SamarQusai B June 28, 2018, 10:56 p.m. OK PHP TESTS 60 62 18432000 1300
39668097 mayakin B June 26, 2018, 7:10 a.m. OK PHP TESTS 60 77 10547200 1300
39630750 SerChirag B June 24, 2018, 8:19 p.m. OK PyPy 2 TESTS 60 124 7884800 1300
39631055 inishchith. B June 24, 2018, 8:27 p.m. OK PyPy 2 TESTS 60 124 10137600 1300
39692432 nealzane B June 27, 2018, 6:07 a.m. OK PyPy 2 TESTS 60 124 10342400 1300
39627986 rkstalker B June 24, 2018, 6:28 p.m. OK PyPy 2 TESTS 60 139 10444800 1300
39656142 abhigyank B June 25, 2018, 5:16 p.m. OK PyPy 2 TESTS 60 140 8089600 1300
39965769 vhnvn B July 4, 2018, 7:44 p.m. OK PyPy 2 TESTS 60 155 8089600 1300
59589429 raj1307 B Aug. 27, 2019, 7:35 p.m. OK PyPy 2 TESTS 60 186 9011200 1300
55391684 shafwanur010 B June 10, 2019, 10:01 a.m. OK PyPy 2 TESTS 60 187 10035200 1300
44342815 omarnvidia B Oct. 15, 2018, 5:05 a.m. OK PyPy 3 TESTS 60 202 15769600 1300
55663693 Honey_Badger B June 17, 2019, 12:51 a.m. OK PyPy 3 TESTS 60 202 16076800 1300
54527943 minimalizam B May 23, 2019, 3:29 p.m. OK PyPy 3 TESTS 60 202 16281600 1300
39733262 homoeconomicus B June 28, 2018, 5:29 a.m. OK PyPy 3 TESTS 60 202 16281600 1300
39684779 STommydx B June 26, 2018, 7:33 p.m. OK PyPy 3 TESTS 60 217 16281600 1300
55175881 X_ILYA_X B June 5, 2019, 6:39 p.m. OK PyPy 3 TESTS 60 218 15564800 1300
55663719 Honey_Badger B June 17, 2019, 12:54 a.m. OK PyPy 3 TESTS 60 218 15974400 1300
55663664 Honey_Badger B June 17, 2019, 12:49 a.m. OK PyPy 3 TESTS 60 218 15974400 1300
39655514 atharva456 B June 25, 2018, 4:50 p.m. OK PyPy 3 TESTS 60 218 15974400 1300
39622309 asvasil B June 24, 2018, 5:45 p.m. OK PyPy 3 TESTS 60 218 15974400 1300
39632154 wangkan2001 B June 24, 2018, 9:07 p.m. OK Python 2 TESTS 60 171 5734400 1300
39619757 Timon_Pumba B June 24, 2018, 5:26 p.m. OK Python 2 TESTS 60 186 5734400 1300
39661907 homie B June 26, 2018, 12:17 a.m. OK Python 2 TESTS 60 187 5632000 1300
39665990 bary B June 26, 2018, 5:16 a.m. OK Python 2 TESTS 60 202 5632000 1300
39665221 homie B June 26, 2018, 4:32 a.m. OK Python 2 TESTS 60 202 5632000 1300
39647750 __dangerous__ B June 25, 2018, 11:27 a.m. OK Python 2 TESTS 60 202 5734400 1300
39665005 aaarrrgggh B June 26, 2018, 4:16 a.m. OK Python 2 TESTS 60 217 7782400 1300
39679166 sainitejeshwar B June 26, 2018, 3:07 p.m. OK Python 2 TESTS 60 218 5734400 1300
39652543 aman_shahi2 B June 25, 2018, 2:37 p.m. OK Python 2 TESTS 60 218 5734400 1300
39633728 scott_wu B June 24, 2018, 10:49 p.m. OK Python 2 TESTS 60 218 5939200 1300
39693695 Vasiliy_48 B June 27, 2018, 7:10 a.m. OK Python 3 TESTS 60 139 8806400 1300
39621882 eugalt B June 24, 2018, 5:42 p.m. OK Python 3 TESTS 60 140 8089600 1300
39651880 xh286286 B June 25, 2018, 2:09 p.m. OK Python 3 TESTS 60 140 8806400 1300
39731217 orailly B June 28, 2018, 2:52 a.m. OK Python 3 TESTS 60 155 8089600 1300
45205377 Ooops_no B Nov. 2, 2018, 12:26 p.m. OK Python 3 TESTS 60 155 8806400 1300
39696408 wangzpeng B June 27, 2018, 9:01 a.m. OK Python 3 TESTS 60 155 8806400 1300
39679784 kvmsc221b B June 26, 2018, 3:36 p.m. OK Python 3 TESTS 60 155 8806400 1300
39656581 lakshya07 B June 25, 2018, 5:36 p.m. OK Python 3 TESTS 60 155 8806400 1300
39630967 ecnerwala B June 24, 2018, 8:24 p.m. OK Python 3 TESTS 60 155 8806400 1300
39669580 USYD_Yemengchen B June 26, 2018, 8:17 a.m. OK Python 3 TESTS 60 155 8908800 1300
41654405 betrue12 B Aug. 16, 2018, 1:39 p.m. OK Ruby TESTS 60 233 17100800 1300
42413329 shivamjain B Sept. 3, 2018, 4:51 a.m. OK Ruby TESTS 60 249 17100800 1300
39623370 8uk.8ak B June 24, 2018, 5:53 p.m. OK Rust TESTS 60 46 5734400 1300
39652503 hatoo B June 25, 2018, 2:36 p.m. OK Rust TESTS 60 46 37888000 1300
39617529 EnBee B June 24, 2018, 5:12 p.m. OK Scala TESTS 60 623 6963200 1300
39966953 zwarn B July 4, 2018, 8:59 p.m. OK Scala TESTS 60 654 7987200 1300
39621819 yeplastun B June 24, 2018, 5:41 p.m. OK Scala TESTS 60 686 6246400 1300

remove filters

Back to search problems