Codeforces Round 629 (Div. 3)

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
1328 Codeforces Round 629 (Div. 3) FINISHED False 7200 152119511 March 26, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3299 ) F Make k Equal PROGRAMMING dp greedy 2400

B'You are given the array a consisting of n elements and the integer k <= n . You want to obtain at least k equal elements in the array a . In one move, you can make one of the following two operations: Your task is to calculate the minimum number of moves required to obtain at least k equal elements in the array. The first line of the input contains two integers n and k ( 1 <= k <= n <= 2 cdot 10^5 ) -- the number of elements in a and the required number of equal elements. The second line of the input contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ), where a_i is the i -th element of a . Print one integer -- the minimum number of moves required to obtain at least k equal elements in the array. '...

Tutorials

75246

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
74537708 755352046 F March 27, 2020, 8:37 a.m. OK GNU C11 TESTS 94 93 1638400 2400
74496832 rainboy F March 26, 2020, 6:29 p.m. OK GNU C11 TESTS 94 93 3993600 2400
74516113 gavinleroy F March 27, 2020, 12:52 a.m. OK GNU C++11 TESTS 94 46 2457600 2400
74526134 froggyzhang F March 27, 2020, 4:58 a.m. OK GNU C++11 TESTS 94 46 3993600 2400
74540544 2018liuzhiyuan F March 27, 2020, 9:11 a.m. OK GNU C++11 TESTS 94 46 3993600 2400
74538297 Fuyuki F March 27, 2020, 8:45 a.m. OK GNU C++11 TESTS 94 46 4096000 2400
74516120 _DAG_ F March 27, 2020, 12:53 a.m. OK GNU C++11 TESTS 94 46 4812800 2400
74518328 DWAE86 F March 27, 2020, 1:59 a.m. OK GNU C++11 TESTS 94 46 4812800 2400
74538310 lyp_ F March 27, 2020, 8:45 a.m. OK GNU C++11 TESTS 94 46 5632000 2400
74516176 luogu_bot5 F March 27, 2020, 12:54 a.m. OK GNU C++11 TESTS 94 46 6451200 2400
74544407 mikoo F March 27, 2020, 9:56 a.m. OK GNU C++11 TESTS 94 46 8089600 2400
74516363 cjtcalc F March 27, 2020, 1:01 a.m. OK GNU C++11 TESTS 94 46 8704000 2400
74506533 readdsajib F March 26, 2020, 8:39 p.m. OK GNU C++14 TESTS 94 78 2457600 2400
74524981 szfck F March 27, 2020, 4:34 a.m. OK GNU C++14 TESTS 94 78 3993600 2400
74524047 XORCST F March 27, 2020, 4:14 a.m. OK GNU C++14 TESTS 94 78 3993600 2400
74577970 Luzivanlt F March 27, 2020, 4:10 p.m. OK GNU C++14 TESTS 94 78 3993600 2400
74570676 Muhammad_Hokimiyon F March 27, 2020, 2:51 p.m. OK GNU C++14 TESTS 94 78 3993600 2400
74504438 jupiro F March 26, 2020, 8:05 p.m. OK GNU C++14 TESTS 94 78 7168000 2400
74535261 Guendabiaani F March 27, 2020, 8:06 a.m. OK GNU C++14 TESTS 94 78 7987200 2400
74516372 st1vdy F March 27, 2020, 1:01 a.m. OK GNU C++14 TESTS 94 93 819200 2400
74516308 st1vdy F March 27, 2020, 12:59 a.m. OK GNU C++14 TESTS 94 93 819200 2400
74496747 yvedryno F March 26, 2020, 6:28 p.m. OK GNU C++14 TESTS 94 93 819200 2400
74533107 H1715925484 F March 27, 2020, 7 a.m. OK GNU C++17 TESTS 94 46 5120000 2400
74470746 cuibst2 F March 26, 2020, 4:15 p.m. OK GNU C++17 TESTS 94 62 4096000 2400
74536871 RSHS F March 27, 2020, 8:26 a.m. OK GNU C++17 TESTS 94 78 20070400 2400
74577503 vjudge5 F March 27, 2020, 4:04 p.m. OK GNU C++17 TESTS 94 78 20070400 2400
74488170 qfhy F March 26, 2020, 5:12 p.m. OK GNU C++17 TESTS 94 93 819200 2400
74556644 stArliGht F March 27, 2020, 12:24 p.m. OK GNU C++17 TESTS 94 93 819200 2400
74519868 iLovePKU_zbtxdy F March 27, 2020, 2:41 a.m. OK GNU C++17 TESTS 94 93 819200 2400
74533789 Kevin7Zz F March 27, 2020, 7:22 a.m. OK GNU C++17 TESTS 94 93 1638400 2400
74584464 SGHD F March 27, 2020, 5:27 p.m. OK GNU C++17 TESTS 94 93 1638400 2400
74577886 srikkanthr F March 27, 2020, 4:09 p.m. OK GNU C++17 TESTS 94 93 1638400 2400
74520020 iefnah06 F March 27, 2020, 2:45 a.m. OK GNU C++17 (64) TESTS 94 62 819200 2400
74505568 ecnerwala F March 26, 2020, 8:23 p.m. OK GNU C++17 (64) TESTS 94 62 1638400 2400
74491257 TselmegKh F March 26, 2020, 5:35 p.m. OK GNU C++17 (64) TESTS 94 62 2457600 2400
74539447 mishanya_stulov F March 27, 2020, 8:58 a.m. OK GNU C++17 (64) TESTS 94 62 4812800 2400
74485418 YouKn0wWho F March 26, 2020, 4:56 p.m. OK GNU C++17 (64) TESTS 94 77 1228800 2400
74520410 sugarrr F March 27, 2020, 2:54 a.m. OK GNU C++17 (64) TESTS 94 77 10137600 2400
74480779 RTnF F March 26, 2020, 4:32 p.m. OK GNU C++17 (64) TESTS 94 77 13209600 2400
74572978 tianyun F March 27, 2020, 3:15 p.m. OK GNU C++17 (64) TESTS 94 77 16076800 2400
74491896 Ernestico F March 26, 2020, 5:42 p.m. OK GNU C++17 (64) TESTS 94 78 2457600 2400
74571686 thtsshz_bgwrswh F March 27, 2020, 3:02 p.m. OK GNU C++17 (64) TESTS 94 93 3174400 2400
74478723 Jughead F March 26, 2020, 4:29 p.m. OK Go TESTS 94 140 9830400 2400
74586278 desp__beginner F March 27, 2020, 5:47 p.m. OK Java 11 TESTS 94 265 13414400 2400
74586646 desp__beginner F March 27, 2020, 5:51 p.m. OK Java 11 TESTS 94 342 13516800 2400
74593258 jaynils F March 27, 2020, 7:15 p.m. OK Java 11 TESTS 94 389 35737600 2400
74517833 AshrafEzz F March 27, 2020, 1:45 a.m. OK Java 11 TESTS 94 436 19456000 2400
74500425 Dukkha F March 26, 2020, 7:11 p.m. OK Java 11 TESTS 94 545 22425600 2400
74504073 polyakoff F March 26, 2020, 8 p.m. OK Java 11 TESTS 94 608 18944000 2400
74502076 In_The_Name_Of_Love F March 26, 2020, 7:33 p.m. OK Java 8 TESTS 94 140 0 2400
74563174 Jonathan1234 F March 27, 2020, 1:36 p.m. OK Java 8 TESTS 94 155 0 2400
74581718 desp__beginner F March 27, 2020, 4:55 p.m. OK Java 8 TESTS 94 202 16076800 2400
74586767 desp__beginner F March 27, 2020, 5:53 p.m. OK Java 8 TESTS 94 265 16076800 2400
74470029 aman28rwt F March 26, 2020, 4:14 p.m. OK Java 8 TESTS 94 389 17408000 2400
74563766 Elias F March 27, 2020, 1:42 p.m. OK Java 8 TESTS 94 514 5939200 2400
74595207 Monika.bit F March 27, 2020, 7:42 p.m. OK Java 8 TESTS 94 545 33894400 2400
74554993 Whiplash99 F March 27, 2020, 11:59 a.m. OK Java 8 TESTS 94 545 33894400 2400
74562108 manishsharmaa__ F March 27, 2020, 1:25 p.m. OK Java 8 TESTS 94 592 14438400 2400
74544735 bhautik_77 F March 27, 2020, 10 a.m. OK Java 8 TESTS 94 701 16179200 2400
74484974 tarattata1 F March 26, 2020, 4:54 p.m. OK MS C++ TESTS 94 171 14643200 2400
74469803 hrg0417 F March 26, 2020, 4:13 p.m. OK MS C++ TESTS 94 295 13414400 2400
74574130 vjudge3 F March 27, 2020, 3:27 p.m. OK MS C++ TESTS 94 405 17715200 2400
74562264 LeeLdler F March 27, 2020, 1:27 p.m. OK MS C++ 2017 TESTS 94 108 11264000 2400
74474243 Solt F March 26, 2020, 4:21 p.m. OK MS C++ 2017 TESTS 94 109 4812800 2400
74470607 Rwarazor F March 26, 2020, 4:15 p.m. OK MS C++ 2017 TESTS 94 218 3174400 2400
74503435 Gravekper F March 26, 2020, 7:50 p.m. OK MS C++ 2017 TESTS 94 218 3276800 2400
74472545 Solt F March 26, 2020, 4:18 p.m. OK MS C++ 2017 TESTS 94 249 4812800 2400
74537265 kupriyanov F March 27, 2020, 8:31 a.m. OK MS C++ 2017 TESTS 94 295 12902400 2400
74574107 vjudge3 F March 27, 2020, 3:27 p.m. OK MS C++ 2017 TESTS 94 312 15257600 2400
74505530 danilgrig F March 26, 2020, 8:23 p.m. OK MS C++ 2017 TESTS 94 327 9728000 2400
74574108 vjudge4 F March 27, 2020, 3:27 p.m. OK MS C++ 2017 TESTS 94 327 15257600 2400
74488402 CrashMaster F March 26, 2020, 5:13 p.m. OK MS C++ 2017 TESTS 94 420 16281600 2400
74518176 zack256 F March 27, 2020, 1:55 a.m. OK PyPy 3 TESTS 94 452 19251200 2400
74535772 dannyboy20031204 F March 27, 2020, 8:13 a.m. OK PyPy 3 TESTS 94 482 26214400 2400
74482760 Danish_love F March 26, 2020, 4:41 p.m. OK PyPy 3 TESTS 94 483 31129600 2400
74522786 nehan_der_thal F March 27, 2020, 3:47 a.m. OK PyPy 3 TESTS 94 514 37990400 2400
74566502 takakin F March 27, 2020, 2:09 p.m. OK PyPy 3 TESTS 94 701 44339200 2400
74548818 lucifer1004 F March 27, 2020, 10:43 a.m. OK PyPy 3 TESTS 94 764 50790400 2400
74476417 addammy F March 26, 2020, 4:25 p.m. OK PyPy 3 TESTS 94 779 72192000 2400
74588488 mkawa2 F March 27, 2020, 6:13 p.m. OK PyPy 3 TESTS 94 1029 103321600 2400
74484652 anagohirame F March 26, 2020, 4:52 p.m. OK PyPy 3 TESTS 94 1247 49049600 2400
74566893 lebron87 F March 27, 2020, 2:13 p.m. OK Python 2 TESTS 94 1418 48332800 2400
74489154 Dart-Xeyter F March 26, 2020, 5:18 p.m. OK Python 3 TESTS 94 1403 18329600 2400
74516920 kobae964 F March 27, 2020, 1:18 a.m. OK Rust TESTS 94 171 9830400 2400
74502981 limed F March 26, 2020, 7:44 p.m. OK Scala TESTS 94 1886 133222400 2400
74503317 limed F March 26, 2020, 7:48 p.m. OK Scala TESTS 94 1950 127795200 2400
74502565 limed F March 26, 2020, 7:39 p.m. OK Scala TESTS 94 1964 127692800 2400

remove filters

Back to search problems