Codeforces Round 649 (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
1364 Codeforces Round 649 (Div. 2) FINISHED False 7200 139762499 June 13, 2020, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13228 ) C Ehab and Prefix MEXs PROGRAMMING brute force constructive algorithms greedy 1600

B"Given an array a of length n , find another array, b , of length n such that: The MEX of a set of integers is the smallest non-negative integer that doesn't belong to this set. If such array doesn't exist, determine this. The first line contains an integer n ( 1 <= n <= 10^5 ) -- the length of the array a . The second line contains n integers a_1 , a_2 , ldots , a_n ( 0 <= a_i <= i ) -- the elements of the array a . It's guaranteed that a_i <= a_{i+1} for 1 <= i < n . If there's no such array, print a single line containing -1 . Otherwise, print a single line containing n integers b_1 , b_2 , ldots , b_n ( 0 <= b_i <= 10^6 ) If there are multiple answers, print any. In the second test case, other answers like [1,1,1,0] , for example, are valid. "...

Tutorials

Codeforces round #649 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
83654961 daut-dlang C June 13, 2020, 3:57 p.m. OK D TESTS 31 108 24371200 1600
83654171 TheHedgehog C June 13, 2020, 3:55 p.m. OK Delphi TESTS 31 62 11161600 1600
83668147 ruban C June 13, 2020, 4:28 p.m. OK Delphi TESTS 31 77 242585600 1600
83674561 yhc19990202 C June 13, 2020, 4:46 p.m. OK GNU C11 TESTS 31 421 41267200 1600
83667223 rainboy C June 13, 2020, 4:26 p.m. OK GNU C11 TESTS 31 436 512000 1600
83715420 ShuvoMalakar C June 14, 2020, 4:59 a.m. OK GNU C11 TESTS 31 436 4812800 1600
83661318 Wall_breaker C June 13, 2020, 4:11 p.m. OK GNU C++11 TESTS 31 31 2150400 1600
83648964 s_y_z_r_y C June 13, 2020, 3:45 p.m. OK GNU C++11 TESTS 31 46 614400 1600
83654843 hdu_daicon C June 13, 2020, 3:56 p.m. OK GNU C++11 TESTS 31 46 819200 1600
83659320 srijon51 C June 13, 2020, 4:06 p.m. OK GNU C++11 TESTS 31 46 819200 1600
83679521 blackbird137 C June 13, 2020, 4:58 p.m. OK GNU C++11 TESTS 31 46 819200 1600
83650375 tjj233333 C June 13, 2020, 3:48 p.m. OK GNU C++11 TESTS 31 46 921600 1600
83711813 froggyzhang ylcs C June 14, 2020, 3:47 a.m. OK GNU C++11 TESTS 31 46 1228800 1600
83663618 Angel_Demon C June 13, 2020, 4:16 p.m. OK GNU C++11 TESTS 31 46 1331200 1600
83670266 Facing_South C June 13, 2020, 4:34 p.m. OK GNU C++11 TESTS 31 46 1638400 1600
83652143 Alpha_Q C June 13, 2020, 3:51 p.m. OK GNU C++11 TESTS 31 46 1843200 1600
83700383 Linkus C June 13, 2020, 9:05 p.m. OK GNU C++14 TESTS 31 46 1843200 1600
83648095 nguyenxxxxxxx C June 13, 2020, 3:44 p.m. OK GNU C++14 TESTS 31 61 1228800 1600
83650032 Khongor C June 13, 2020, 3:47 p.m. OK GNU C++14 TESTS 31 61 1945600 1600
83663972 ritul_kr_singh C June 13, 2020, 4:17 p.m. OK GNU C++14 TESTS 31 61 2048000 1600
83651224 Yyh. C June 13, 2020, 3:49 p.m. OK GNU C++14 TESTS 31 61 2150400 1600
83663364 OfTheSharingan C June 13, 2020, 4:16 p.m. OK GNU C++14 TESTS 31 61 2252800 1600
83668651 anish_sofat C June 13, 2020, 4:30 p.m. OK GNU C++14 TESTS 31 61 2560000 1600
83681662 Jael C June 13, 2020, 5:03 p.m. OK GNU C++14 TESTS 31 61 9523200 1600
83667356 Dream.to C June 13, 2020, 4:26 p.m. OK GNU C++14 TESTS 31 62 512000 1600
83671274 Potassium C June 13, 2020, 4:37 p.m. OK GNU C++14 TESTS 31 62 819200 1600
83712580 coder_h C June 14, 2020, 4:03 a.m. OK GNU C++17 TESTS 31 46 12083200 1600
83657183 SoulAdor C June 13, 2020, 4:01 p.m. OK GNU C++17 TESTS 31 61 1024000 1600
83702460 sktt1Faker C June 13, 2020, 10:09 p.m. OK GNU C++17 TESTS 31 61 1024000 1600
83661029 MESSI10GOAT C June 13, 2020, 4:10 p.m. OK GNU C++17 TESTS 31 61 1126400 1600
83672964 ArcCCcp C June 13, 2020, 4:41 p.m. OK GNU C++17 TESTS 31 61 1126400 1600
83660287 ciaocbr C June 13, 2020, 4:08 p.m. OK GNU C++17 TESTS 31 61 1331200 1600
83655443 darthVader1010 C June 13, 2020, 3:58 p.m. OK GNU C++17 TESTS 31 61 1638400 1600
83662061 IUChichcpu C June 13, 2020, 4:12 p.m. OK GNU C++17 TESTS 31 61 1740800 1600
83719262 HU_Geek C June 14, 2020, 6:01 a.m. OK GNU C++17 TESTS 31 61 1843200 1600
83703713 Werner_Yin C June 13, 2020, 10:58 p.m. OK GNU C++17 TESTS 31 61 2048000 1600
83697995 sushkov.pv C June 13, 2020, 8:17 p.m. OK GNU C++17 (64) TESTS 31 46 819200 1600
83686877 pradnesh C June 13, 2020, 5:53 p.m. OK GNU C++17 (64) TESTS 31 46 819200 1600
83685284 ianahao C June 13, 2020, 5:42 p.m. OK GNU C++17 (64) TESTS 31 46 819200 1600
83681874 Shaitan_Machine C June 13, 2020, 5:03 p.m. OK GNU C++17 (64) TESTS 31 46 819200 1600
83652350 MatsuTaku C June 13, 2020, 3:51 p.m. OK GNU C++17 (64) TESTS 31 46 819200 1600
83670110 szechuan_sauce C June 13, 2020, 4:33 p.m. OK GNU C++17 (64) TESTS 31 46 921600 1600
83656358 cjj490168650 C June 13, 2020, 4 p.m. OK GNU C++17 (64) TESTS 31 46 1228800 1600
83670427 erray C June 13, 2020, 4:34 p.m. OK GNU C++17 (64) TESTS 31 46 1331200 1600
83655292 tyler C June 13, 2020, 3:57 p.m. OK GNU C++17 (64) TESTS 31 46 1331200 1600
83704528 zxcvbn15 C June 13, 2020, 11:33 p.m. OK GNU C++17 (64) TESTS 31 46 1331200 1600
83678982 maguroguma C June 13, 2020, 4:57 p.m. OK Go TESTS 31 93 14643200 1600
83659540 u1s1reallycai C June 13, 2020, 4:07 p.m. OK Go TESTS 31 109 5324800 1600
83671324 Laurens C June 13, 2020, 4:37 p.m. OK Haskell TESTS 31 249 13721600 1600
83660581 avijit_agarwal C June 13, 2020, 4:09 p.m. OK Java 11 TESTS 31 202 0 1600
83660605 nthistle C June 13, 2020, 4:09 p.m. OK Java 11 TESTS 31 218 0 1600
83660874 idk321 C June 13, 2020, 4:10 p.m. OK Java 11 TESTS 31 233 0 1600
83654647 BNL C June 13, 2020, 3:56 p.m. OK Java 11 TESTS 31 233 0 1600
83660366 14visheshjain C June 13, 2020, 4:08 p.m. OK Java 11 TESTS 31 249 0 1600
83715900 Raj9400 C June 14, 2020, 5:07 a.m. OK Java 11 TESTS 31 249 1945600 1600
83663294 nafiz6 C June 13, 2020, 4:16 p.m. OK Java 11 TESTS 31 249 3379200 1600
83684547 Piccadilly C June 13, 2020, 5:38 p.m. OK Java 11 TESTS 31 249 4608000 1600
83700616 Apass.Jack C June 13, 2020, 9:11 p.m. OK Java 11 TESTS 31 265 0 1600
83670164 sf14t C June 13, 2020, 4:34 p.m. OK Java 11 TESTS 31 265 4812800 1600
83713957 Me146 C June 14, 2020, 4:30 a.m. OK Java 8 TESTS 31 140 0 1600
83712493 Manan8686 C June 14, 2020, 4:01 a.m. OK Java 8 TESTS 31 140 0 1600
83689663 priyesh001 C June 13, 2020, 6:18 p.m. OK Java 8 TESTS 31 140 0 1600
83677780 RockStar_14 C June 13, 2020, 4:54 p.m. OK Java 8 TESTS 31 140 0 1600
83675047 out_of_the_box C June 13, 2020, 4:47 p.m. OK Java 8 TESTS 31 140 0 1600
83666645 amaturecoder C June 13, 2020, 4:24 p.m. OK Java 8 TESTS 31 140 0 1600
83665564 barakraganosungam C June 13, 2020, 4:21 p.m. OK Java 8 TESTS 31 140 0 1600
83697067 flyman3046 C June 13, 2020, 7:59 p.m. OK Java 8 TESTS 31 155 0 1600
83701701 ay_08 C June 13, 2020, 9:42 p.m. OK Java 8 TESTS 31 155 0 1600
83686961 bwang1008 C June 13, 2020, 5:53 p.m. OK Java 8 TESTS 31 155 0 1600
83660792 tagiev.stanislav C June 13, 2020, 4:09 p.m. OK JavaScript TESTS 31 109 20070400 1600
83647137 Hakiobo C June 13, 2020, 3:42 p.m. OK Kotlin TESTS 31 171 512000 1600
83647518 golions C June 13, 2020, 3:43 p.m. OK Kotlin TESTS 31 218 4505600 1600
83658802 koboshi C June 13, 2020, 4:05 p.m. OK Kotlin TESTS 31 233 3891200 1600
83678315 shivam1420 C June 13, 2020, 4:56 p.m. OK Kotlin TESTS 31 233 5632000 1600
83666257 yh1224 C June 13, 2020, 4:23 p.m. OK Kotlin TESTS 31 234 1126400 1600
83655327 elizarov C June 13, 2020, 3:57 p.m. OK Kotlin TESTS 31 249 3788800 1600
83673100 MikasaAckermann C June 13, 2020, 4:42 p.m. OK Kotlin TESTS 31 264 13926400 1600
83653869 abdukodir C June 13, 2020, 3:55 p.m. OK Kotlin TESTS 31 265 20480000 1600
83674569 batkhuyag C June 13, 2020, 4:46 p.m. OK Kotlin TESTS 31 280 10137600 1600
83647285 sylvyrfysh C June 13, 2020, 3:42 p.m. OK Kotlin TESTS 31 296 13721600 1600
83675081 Kolyanich C June 13, 2020, 4:47 p.m. OK Mono C# TESTS 31 124 15155200 1600
83668128 avtoruxadze C June 13, 2020, 4:28 p.m. OK Mono C# TESTS 31 124 17408000 1600
83653671 mban259 C June 13, 2020, 3:54 p.m. OK Mono C# TESTS 31 124 17817600 1600
83675118 teru C June 13, 2020, 4:47 p.m. OK Mono C# TESTS 31 124 19660800 1600
83647115 Yupiteru C June 13, 2020, 3:42 p.m. OK Mono C# TESTS 31 202 15462400 1600
83658383 kuuso C June 13, 2020, 4:04 p.m. OK Mono C# TESTS 31 202 16384000 1600
83656792 emelyan C June 13, 2020, 4:01 p.m. OK Mono C# TESTS 31 436 24064000 1600
83668358 skkuinkwan1205 C June 13, 2020, 4:29 p.m. OK MS C++ TESTS 31 124 4096000 1600
83676221 youx C June 13, 2020, 4:50 p.m. OK MS C++ 2017 TESTS 31 77 1024000 1600
83653276 tarattata1 C June 13, 2020, 3:53 p.m. OK MS C++ 2017 TESTS 31 77 2662400 1600
83675131 TMHazem C June 13, 2020, 4:47 p.m. OK MS C++ 2017 TESTS 31 78 3584000 1600
83673560 egardoz01 C June 13, 2020, 4:43 p.m. OK MS C++ 2017 TESTS 31 109 3993600 1600
83708167 Seyaua C June 14, 2020, 2:07 a.m. OK MS C++ 2017 TESTS 31 124 5017600 1600
83717739 Accelerating C June 14, 2020, 5:38 a.m. OK MS C++ 2017 TESTS 31 124 5324800 1600
83713705 jjimo C June 14, 2020, 4:26 a.m. OK MS C++ 2017 TESTS 31 140 1638400 1600
83661700 mmmmmiao C June 13, 2020, 4:12 p.m. OK MS C++ 2017 TESTS 31 140 1740800 1600
83668494 jackcaptain C June 13, 2020, 4:29 p.m. OK MS C++ 2017 TESTS 31 140 1945600 1600
83708153 llorvje C June 14, 2020, 2:06 a.m. OK MS C++ 2017 TESTS 31 140 2150400 1600
83647609 pajenegod C June 13, 2020, 3:43 p.m. OK PyPy 2 TESTS 31 171 15257600 1600
83645893 chris-md C June 13, 2020, 3:40 p.m. OK PyPy 2 TESTS 31 187 10240000 1600
83667823 bazzyadb C June 13, 2020, 4:27 p.m. OK PyPy 2 TESTS 31 187 10649600 1600
83686991 starkizard C June 13, 2020, 5:54 p.m. OK PyPy 2 TESTS 31 202 12595200 1600
83674736 wolffd C June 13, 2020, 4:46 p.m. OK PyPy 2 TESTS 31 202 17612800 1600
83678663 Mukundan314 C June 13, 2020, 4:56 p.m. OK PyPy 2 TESTS 31 218 13824000 1600
83645479 pa.n.ik C June 13, 2020, 3:39 p.m. OK PyPy 2 TESTS 31 233 15564800 1600
83678488 jay__0208 C June 13, 2020, 4:56 p.m. OK PyPy 2 TESTS 31 280 11059200 1600
83684449 realnimish C June 13, 2020, 5:38 p.m. OK PyPy 2 TESTS 31 280 12288000 1600
83687292 jay__0208 C June 13, 2020, 5:56 p.m. OK PyPy 2 TESTS 31 296 10649600 1600
83697113 manish.17 C June 13, 2020, 8 p.m. OK PyPy 3 TESTS 31 202 11366400 1600
83669138 nikeshthapa255 C June 13, 2020, 4:31 p.m. OK PyPy 3 TESTS 31 202 11776000 1600
83699107 Aestroix C June 13, 2020, 8:39 p.m. OK PyPy 3 TESTS 31 202 12083200 1600
83685054 PracticeAccountICL C June 13, 2020, 5:41 p.m. OK PyPy 3 TESTS 31 202 12185600 1600
83670795 Rajdeep2k C June 13, 2020, 4:35 p.m. OK PyPy 3 TESTS 31 218 12492800 1600
83672400 _apurv_ C June 13, 2020, 4:40 p.m. OK PyPy 3 TESTS 31 233 10649600 1600
83689515 tiwari0000 C June 13, 2020, 6:17 p.m. OK PyPy 3 TESTS 31 233 11673600 1600
83659605 aberent C June 13, 2020, 4:07 p.m. OK PyPy 3 TESTS 31 233 12595200 1600
83679135 gintoki_s C June 13, 2020, 4:58 p.m. OK PyPy 3 TESTS 31 233 15257600 1600
83652248 yuusanlondon C June 13, 2020, 3:51 p.m. OK PyPy 3 TESTS 31 234 13107200 1600
83690075 Ekinak C June 13, 2020, 6:23 p.m. OK Python 2 TESTS 31 296 11366400 1600
83659520 Hitikkumar C June 13, 2020, 4:07 p.m. OK Python 2 TESTS 31 342 6656000 1600
83717344 kartikay26 C June 14, 2020, 5:31 a.m. OK Python 3 TESTS 31 218 9523200 1600
83715276 Mahipalkeizer C June 14, 2020, 4:56 a.m. OK Python 3 TESTS 31 218 13926400 1600
83651465 r57shell C June 13, 2020, 3:50 p.m. OK Python 3 TESTS 31 264 10854400 1600
83659858 liteburn C June 13, 2020, 4:07 p.m. OK Python 3 TESTS 31 265 8704000 1600
83655593 Garvys C June 13, 2020, 3:58 p.m. OK Python 3 TESTS 31 265 12902400 1600
83681181 elzaralian C June 13, 2020, 5:02 p.m. OK Python 3 TESTS 31 280 9932800 1600
83687658 swathitomar C June 13, 2020, 5:59 p.m. OK Python 3 TESTS 31 311 7680000 1600
83687312 sh1194 C June 13, 2020, 5:56 p.m. OK Python 3 TESTS 31 311 7680000 1600
83691610 Mayank08 C June 13, 2020, 6:41 p.m. OK Python 3 TESTS 31 312 10752000 1600
83700470 PC_4299 C June 13, 2020, 9:07 p.m. OK Python 3 TESTS 31 327 7577600 1600
83659395 yoshrc C June 13, 2020, 4:06 p.m. OK Rust TESTS 31 61 3276800 1600
83676004 robostac C June 13, 2020, 4:50 p.m. OK Rust TESTS 31 61 6656000 1600
83708746 t-uchida C June 14, 2020, 2:27 a.m. OK Rust TESTS 31 62 2252800 1600
83660699 limed C June 13, 2020, 4:09 p.m. OK Scala TESTS 31 545 5529600 1600

remove filters

Back to search problems