Codeforces Round 550 (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
1144 Codeforces Round 550 (Div. 3) FINISHED False 7200 177782099 March 31, 2019, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17149 ) B Parity Alternated Deletions PROGRAMMING greedy implementation sortings 1000

B"Polycarp has an array a consisting of n integers. He wants to play a game with this array. The game consists of several moves. On the first move he chooses any element and deletes it (after the first move the array contains n-1 elements). For each of the next moves he chooses any element with the only restriction: its parity should differ from the parity of the element deleted on the previous move. In other words, he alternates parities (even-odd-even-odd-... or odd-even-odd-even-...) of the removed elements. Polycarp stops if he can't make a move. Formally: Polycarp's goal is to minimize the sum of non-deleted elements of the array after end of the game. If Polycarp can delete the whole array, then the sum of non-deleted elements is zero. Help Polycarp find this value. The first line of the input contains one integer n ( 1 <= n <= 2000 ) -- the number of elements of a . The second line of the input contains n integers a_1, a_2, ... , a_n ( 0 <= a_i <= 10^6 ), where a_i is the i -th element of a . Print one integer -- the minimum possible sum of non-deleted elements of the array after end of the game. "...

Tutorials

66307

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56380559 vjudge3 B July 1, 2019, 8:18 a.m. OK Clang++17 Diagnostics TESTS 11 46 0 1000
56864603 Veyron404 B July 12, 2019, 2:10 a.m. OK Clang++17 Diagnostics TESTS 11 46 6348800 1000
56864633 vjudge2 B July 12, 2019, 2:11 a.m. OK Clang++17 Diagnostics TESTS 11 46 6348800 1000
52561829 vjudge2 B April 10, 2019, 10:50 a.m. OK Clang++17 Diagnostics TESTS 11 46 8396800 1000
52635300 harsh_thakur B April 12, 2019, 9:37 a.m. OK Clang++17 Diagnostics TESTS 11 46 8396800 1000
61033133 harshit36 B Sept. 21, 2019, 6:30 p.m. OK Clang++17 Diagnostics TESTS 11 62 8396800 1000
62385878 vjudge2 B Oct. 11, 2019, 9:20 p.m. OK Clang++17 Diagnostics TESTS 11 62 11571200 1000
64799209 Denor B Nov. 13, 2019, 1:59 p.m. OK Delphi TESTS 11 30 0 1000
52547264 Denor B April 9, 2019, 11:01 p.m. OK Delphi TESTS 11 31 0 1000
52224510 svbor2000 B April 2, 2019, 8:38 a.m. OK Delphi TESTS 11 31 102400 1000
52756651 ninjadoc0152 B April 14, 2019, 5:26 p.m. OK FPC TESTS 11 30 0 1000
55846850 kotichek B June 20, 2019, 10:23 p.m. OK FPC TESTS 11 30 0 1000
52220227 G.L B April 2, 2019, 6:07 a.m. OK FPC TESTS 11 30 0 1000
52744678 PhuongPeu B April 14, 2019, 11 a.m. OK FPC TESTS 11 30 204800 1000
52216873 phongan105 B April 2, 2019, 2:51 a.m. OK FPC TESTS 11 30 819200 1000
52426474 lfhnvjk B April 6, 2019, 7:35 p.m. OK FPC TESTS 11 31 0 1000
52447911 Kuzya2.0 B April 7, 2019, 8:38 a.m. OK FPC TESTS 11 31 0 1000
57327531 Meibisu B July 19, 2019, 12:46 p.m. OK FPC TESTS 11 31 3993600 1000
67601109 0202 B Dec. 25, 2019, 11:57 a.m. OK FPC TESTS 11 31 7987200 1000
67620213 0101 B Dec. 25, 2019, 6:26 p.m. OK FPC TESTS 11 31 40038400 1000
58834370 pranaykanjolia B Aug. 14, 2019, 7:44 p.m. OK GNU C11 TESTS 11 15 0 1000
54581541 SKrPl B May 25, 2019, 4:58 a.m. OK GNU C11 TESTS 11 15 0 1000
52238011 ullash0398 B April 2, 2019, 2:32 p.m. OK GNU C11 TESTS 11 15 0 1000
52370663 graveness B April 6, 2019, 6 a.m. OK GNU C11 TESTS 11 15 0 1000
53458132 rajunahidhasan0 B April 28, 2019, 5:05 a.m. OK GNU C11 TESTS 11 15 0 1000
56378467 vjudge2 B July 1, 2019, 7:30 a.m. OK GNU C11 TESTS 11 15 0 1000
52215058 kaiboy B April 2, 2019, 12:30 a.m. OK GNU C11 TESTS 11 15 0 1000
52225656 saira333 B April 2, 2019, 9:18 a.m. OK GNU C11 TESTS 11 15 0 1000
63209649 yigezhe B Oct. 23, 2019, 2:54 a.m. OK GNU C11 TESTS 11 15 0 1000
67785213 vjudge1 B Dec. 28, 2019, 12:30 p.m. OK GNU C11 TESTS 11 15 102400 1000
63646936 kazak B Oct. 28, 2019, 10:03 a.m. OK GNU C++11 TESTS 11 15 0 1000
69561682 vjudge4 B Jan. 26, 2020, 10:52 a.m. OK GNU C++11 TESTS 11 15 0 1000
68865441 Its_Easy B Jan. 15, 2020, 1:25 p.m. OK GNU C++11 TESTS 11 15 0 1000
68832603 _Kema_ B Jan. 15, 2020, 12:05 a.m. OK GNU C++11 TESTS 11 15 0 1000
68754167 vjudge1 B Jan. 14, 2020, 7:43 a.m. OK GNU C++11 TESTS 11 15 0 1000
68585380 vjudge5 B Jan. 11, 2020, 11:07 a.m. OK GNU C++11 TESTS 11 15 0 1000
68585357 vjudge5 B Jan. 11, 2020, 11:07 a.m. OK GNU C++11 TESTS 11 15 0 1000
68584487 vjudge2 B Jan. 11, 2020, 10:54 a.m. OK GNU C++11 TESTS 11 15 0 1000
64903534 Ifugao B Nov. 14, 2019, 8:12 p.m. OK GNU C++11 TESTS 11 15 0 1000
62037300 vjudge5 B Oct. 7, 2019, 4:28 a.m. OK GNU C++11 TESTS 11 15 0 1000
68323539 Risvy B Jan. 6, 2020, 3:55 p.m. OK GNU C++14 TESTS 11 15 0 1000
68390845 Scut82 B Jan. 8, 2020, 8:33 a.m. OK GNU C++14 TESTS 11 15 0 1000
68238771 KarimElghamry B Jan. 5, 2020, 12:01 p.m. OK GNU C++14 TESTS 11 15 0 1000
68213783 Niladree_Datta B Jan. 4, 2020, 9:04 p.m. OK GNU C++14 TESTS 11 15 0 1000
68390370 Scut82 B Jan. 8, 2020, 8:21 a.m. OK GNU C++14 TESTS 11 15 0 1000
68401510 Ahmed_Almohammed B Jan. 8, 2020, 1:20 p.m. OK GNU C++14 TESTS 11 15 0 1000
69263884 CoderAnshu B Jan. 21, 2020, 5:57 p.m. OK GNU C++14 TESTS 11 15 0 1000
69561668 BOBOS_10 B Jan. 26, 2020, 10:51 a.m. OK GNU C++14 TESTS 11 15 0 1000
69641930 vjudge5 B Jan. 27, 2020, 9:24 p.m. OK GNU C++14 TESTS 11 15 0 1000
69665822 Backbenchar11 B Jan. 28, 2020, 11:17 a.m. OK GNU C++14 TESTS 11 15 0 1000
68765240 Aarya_01 B Jan. 14, 2020, 9:40 a.m. OK GNU C++17 TESTS 11 15 0 1000
69885411 ruz B Jan. 31, 2020, 8:01 a.m. OK GNU C++17 TESTS 11 15 0 1000
69640802 aaabbbzzz B Jan. 27, 2020, 8:44 p.m. OK GNU C++17 TESTS 11 15 0 1000
69586930 ican6891 B Jan. 26, 2020, 7:59 p.m. OK GNU C++17 TESTS 11 15 0 1000
69383905 vjudge5 B Jan. 22, 2020, 8:58 p.m. OK GNU C++17 TESTS 11 15 0 1000
69293239 kill_or_be_killed B Jan. 22, 2020, 11:11 a.m. OK GNU C++17 TESTS 11 15 0 1000
69242670 mohamedkameha12360 B Jan. 21, 2020, 11:57 a.m. OK GNU C++17 TESTS 11 15 0 1000
68713268 S1NC B Jan. 13, 2020, 1:38 p.m. OK GNU C++17 TESTS 11 15 0 1000
68698015 vjudge5 B Jan. 13, 2020, 8:32 a.m. OK GNU C++17 TESTS 11 15 0 1000
68664304 ZA139 B Jan. 12, 2020, 2:37 p.m. OK GNU C++17 TESTS 11 15 0 1000
62085403 120405217 B Oct. 8, 2019, 1:15 a.m. OK Go TESTS 11 31 0 1000
62897292 sighduck B Oct. 19, 2019, 1:29 a.m. OK Go TESTS 11 31 0 1000
52661245 suryanshv23 B April 12, 2019, 11:16 p.m. OK Go TESTS 11 46 0 1000
54570351 tony_stark1 B May 24, 2019, 6:55 p.m. OK Go TESTS 11 62 0 1000
52495964 Fairuzi10 B April 8, 2019, 1:42 p.m. OK Go TESTS 11 62 0 1000
52225850 2012201208 B April 2, 2019, 9:24 a.m. OK Go TESTS 11 77 0 1000
57770581 jmazon B July 26, 2019, 12:22 a.m. OK Haskell TESTS 11 30 102400 1000
55416683 Russell_Emerine B June 11, 2019, 3:03 a.m. OK Haskell TESTS 11 31 102400 1000
52224838 dinkan B April 2, 2019, 8:49 a.m. OK Haskell TESTS 11 31 102400 1000
52793927 jedikni B April 15, 2019, 7:11 p.m. OK Haskell TESTS 11 46 102400 1000
52579232 davxoc B April 10, 2019, 6:03 p.m. OK Haskell TESTS 11 46 102400 1000
68143149 satya_p54 B Jan. 4, 2020, 1:28 a.m. OK Java 11 TESTS 11 171 0 1000
68234950 ash_pikachu B Jan. 5, 2020, 10:36 a.m. OK Java 11 TESTS 11 202 0 1000
52247559 GiantTornado B April 2, 2019, 8:08 p.m. OK Java 8 TESTS 11 93 0 1000
63052812 zabaldo B Oct. 21, 2019, 4 a.m. OK Java 8 TESTS 11 108 0 1000
56446984 swapnil9090 B July 2, 2019, 7:21 p.m. OK Java 8 TESTS 11 108 0 1000
56014925 insane_28 B June 24, 2019, 8:25 p.m. OK Java 8 TESTS 11 108 0 1000
54491071 jaynils B May 22, 2019, 3:27 p.m. OK Java 8 TESTS 11 108 0 1000
53307901 vivek_23 B April 26, 2019, 4:23 a.m. OK Java 8 TESTS 11 108 0 1000
52792224 o.radwan B April 15, 2019, 6:05 p.m. OK Java 8 TESTS 11 108 0 1000
52560187 mpsk7492 B April 10, 2019, 9:55 a.m. OK Java 8 TESTS 11 108 0 1000
52219988 vidhansharma01 B April 2, 2019, 5:57 a.m. OK Java 8 TESTS 11 108 0 1000
69441212 MahmoudJobeel B Jan. 23, 2020, 9:44 p.m. OK Java 8 TESTS 11 109 0 1000
53494393 I.A.K.O.V B April 29, 2019, 10:53 a.m. OK Kotlin TESTS 11 124 0 1000
53313580 exs B April 26, 2019, 8:40 a.m. OK Kotlin TESTS 11 124 307200 1000
52537767 RI7 B April 9, 2019, 4:29 p.m. OK Kotlin TESTS 11 139 0 1000
52481901 dyukha B April 8, 2019, 6:13 a.m. OK Kotlin TESTS 11 139 307200 1000
52461392 -arg B April 7, 2019, 1:36 p.m. OK Kotlin TESTS 11 155 409600 1000
52213932 alykov B April 1, 2019, 10:30 p.m. OK Kotlin TESTS 11 156 0 1000
58412726 Spheniscine B Aug. 7, 2019, 2:42 a.m. OK Kotlin TESTS 11 170 1433600 1000
52874667 Lishy2010 B April 16, 2019, 6:57 p.m. OK Kotlin TESTS 11 171 819200 1000
53323621 harryoooooooooo B April 26, 2019, 2:13 p.m. OK Kotlin TESTS 11 171 921600 1000
52629787 harryoooooooooo B April 12, 2019, 6:21 a.m. OK Kotlin TESTS 11 171 1433600 1000
54000191 og.kostya B May 11, 2019, 4:09 p.m. OK Mono C# TESTS 11 46 0 1000
52223300 Fess303 B April 2, 2019, 7:53 a.m. OK Mono C# TESTS 11 46 102400 1000
52798397 SantiC B April 15, 2019, 11:44 p.m. OK Mono C# TESTS 11 46 102400 1000
53531290 ivanidze.kirov B April 29, 2019, 8:33 p.m. OK Mono C# TESTS 11 46 102400 1000
57081072 treasuryonly B July 15, 2019, 7:14 a.m. OK Mono C# TESTS 11 46 204800 1000
53015841 NikolaySchepalov B April 19, 2019, 2:08 p.m. OK Mono C# TESTS 11 46 204800 1000
63609761 ilia.kot B Oct. 27, 2019, 4:41 p.m. OK Mono C# TESTS 11 46 3788800 1000
64826318 Zaheed B Nov. 13, 2019, 3:33 p.m. OK Mono C# TESTS 11 61 204800 1000
52679404 zazak B April 13, 2019, 11:30 a.m. OK Mono C# TESTS 11 61 3891200 1000
52473250 m1_k3 B April 7, 2019, 8:06 p.m. OK Mono C# TESTS 11 62 3686400 1000
62625100 vjudge4 B Oct. 15, 2019, 1:51 p.m. OK MS C++ TESTS 11 15 0 1000
68583333 vjudge1 B Jan. 11, 2020, 10:38 a.m. OK MS C++ TESTS 11 15 0 1000
68584399 vjudge3 B Jan. 11, 2020, 10:53 a.m. OK MS C++ TESTS 11 15 0 1000
68896571 vjudge4 B Jan. 16, 2020, 4:41 a.m. OK MS C++ TESTS 11 15 0 1000
69196110 vjudge3 B Jan. 20, 2020, 2:58 p.m. OK MS C++ TESTS 11 15 0 1000
60752894 vjudge1 B Sept. 18, 2019, 7:21 a.m. OK MS C++ TESTS 11 15 0 1000
62036901 vjudge3 B Oct. 7, 2019, 4:16 a.m. OK MS C++ TESTS 11 15 0 1000
59842163 DM1 B Sept. 1, 2019, 7:46 a.m. OK MS C++ TESTS 11 15 0 1000
56379585 vjudge2 B July 1, 2019, 7:54 a.m. OK MS C++ TESTS 11 15 0 1000
56378385 vjudge1 B July 1, 2019, 7:28 a.m. OK MS C++ TESTS 11 15 0 1000
52299937 Wsystem9350 B April 4, 2019, 8:27 a.m. OK MS C++ 2017 TESTS 11 15 0 1000
67855353 vjudge5 B Dec. 29, 2019, 5:50 a.m. OK MS C++ 2017 TESTS 11 15 0 1000
53865442 min99 B May 8, 2019, 3:07 a.m. OK MS C++ 2017 TESTS 11 15 0 1000
52277327 Artem0107 B April 3, 2019, 3:19 p.m. OK MS C++ 2017 TESTS 11 15 0 1000
67850614 vjudge3 B Dec. 29, 2019, 2:38 a.m. OK MS C++ 2017 TESTS 11 15 102400 1000
52353821 AleksanderBalobanov B April 5, 2019, 3:48 p.m. OK MS C++ 2017 TESTS 11 15 12083200 1000
68716205 vjudge4 B Jan. 13, 2020, 2:32 p.m. OK MS C++ 2017 TESTS 11 30 0 1000
67855198 vjudge3 B Dec. 29, 2019, 5:46 a.m. OK MS C++ 2017 TESTS 11 30 0 1000
68965373 vjudge2 B Jan. 17, 2020, 4:29 a.m. OK MS C++ 2017 TESTS 11 30 0 1000
67859938 vjudge3 B Dec. 29, 2019, 7:45 a.m. OK MS C++ 2017 TESTS 11 30 0 1000
52503515 m0r0z0v_d B April 8, 2019, 5:21 p.m. OK PascalABC.NET TESTS 11 186 0 1000
56006534 Gimber B June 24, 2019, 3:49 p.m. OK PascalABC.NET TESTS 11 187 0 1000
52447438 StepanovNic B April 7, 2019, 8:29 a.m. OK PascalABC.NET TESTS 11 187 0 1000
52500180 andrros3030 B April 8, 2019, 3:41 p.m. OK PascalABC.NET TESTS 11 202 0 1000
52542486 dv1580 B April 9, 2019, 6:51 p.m. OK PascalABC.NET TESTS 11 296 0 1000
52536574 VladKuz B April 9, 2019, 3:55 p.m. OK PascalABC.NET TESTS 11 296 0 1000
52468250 Nikita75 B April 7, 2019, 4:59 p.m. OK PascalABC.NET TESTS 11 296 0 1000
52468587 TheFirstDan B April 7, 2019, 5:11 p.m. OK PascalABC.NET TESTS 11 311 0 1000
52501675 Semenchuk B April 8, 2019, 4:25 p.m. OK PascalABC.NET TESTS 11 311 102400 1000
63618523 MrGrample B Oct. 27, 2019, 8:57 p.m. OK PascalABC.NET TESTS 11 327 4198400 1000
52210369 bertrandovide B April 1, 2019, 7:22 p.m. OK PyPy 2 TESTS 11 109 102400 1000
52938387 Cifko B April 18, 2019, 7:52 a.m. OK PyPy 2 TESTS 11 124 921600 1000
52647230 smunjal96 B April 12, 2019, 3:05 p.m. OK PyPy 2 TESTS 11 139 307200 1000
52371699 shehebe B April 6, 2019, 6:30 a.m. OK PyPy 2 TESTS 11 139 1536000 1000
52768500 raj1307 B April 15, 2019, 6:39 a.m. OK PyPy 2 TESTS 11 155 716800 1000
52288873 veryverybad B April 3, 2019, 10:27 p.m. OK PyPy 2 TESTS 11 155 9625600 1000
52544497 Quirinius B April 9, 2019, 8:13 p.m. OK PyPy 2 TESTS 11 187 102400 1000
52344451 gatsko B April 5, 2019, 12:05 p.m. OK PyPy 2 TESTS 11 202 7782400 1000
53322564 thenewguy39 B April 26, 2019, 1:39 p.m. OK PyPy 2 TESTS 11 218 7782400 1000
55050521 scambret B June 3, 2019, 4:25 p.m. OK PyPy 3 TESTS 11 124 307200 1000
54896011 Aidos B June 1, 2019, 2:48 a.m. OK PyPy 3 TESTS 11 124 307200 1000
52256334 evenharder B April 3, 2019, 5:57 a.m. OK PyPy 3 TESTS 11 124 307200 1000
52237850 mb97 B April 2, 2019, 2:28 p.m. OK PyPy 3 TESTS 11 124 307200 1000
59049895 danh07808 B Aug. 18, 2019, 5:01 p.m. OK PyPy 3 TESTS 11 124 1536000 1000
53220315 iamprayush B April 24, 2019, 11:30 a.m. OK PyPy 3 TESTS 11 139 307200 1000
52241295 Spelvin B April 2, 2019, 4 p.m. OK PyPy 3 TESTS 11 139 307200 1000
52516686 chengzi B April 9, 2019, 6 a.m. OK PyPy 3 TESTS 11 139 409600 1000
52319451 renjied B April 4, 2019, 6:51 p.m. OK PyPy 3 TESTS 11 139 1024000 1000
61074564 shall_not_pass B Sept. 22, 2019, 1:56 p.m. OK PyPy 3 TESTS 11 139 1433600 1000
56156468 anshuman16423 B June 27, 2019, 10:26 a.m. OK Python 2 TESTS 11 156 0 1000
52679725 blackscholar B April 13, 2019, 11:42 a.m. OK Python 2 TESTS 11 156 204800 1000
52804998 franckmy B April 16, 2019, 3:14 a.m. OK Python 2 TESTS 11 170 0 1000
52836063 c_demaster B April 16, 2019, 2:53 p.m. OK Python 2 TESTS 11 170 102400 1000
52434667 sy_chen B April 7, 2019, 2:28 a.m. OK Python 2 TESTS 11 170 102400 1000
52447955 SoSooding B April 7, 2019, 8:39 a.m. OK Python 2 TESTS 11 171 0 1000
52230284 odinson B April 2, 2019, 11:38 a.m. OK Python 2 TESTS 11 171 0 1000
58082281 bsr011 B July 31, 2019, 2:17 p.m. OK Python 2 TESTS 11 171 102400 1000
52235433 Nika86 B April 2, 2019, 1:34 p.m. OK Python 2 TESTS 11 186 102400 1000
60324474 mooseq B Sept. 9, 2019, 11:33 p.m. OK Python 2 TESTS 11 217 102400 1000
63945521 shailesh6 B Oct. 31, 2019, 6:48 p.m. OK Python 3 TESTS 11 93 307200 1000
55683782 spikerheado1234 B June 17, 2019, 2:25 p.m. OK Python 3 TESTS 11 93 307200 1000
54987253 markos_jabbour B June 2, 2019, 4:23 p.m. OK Python 3 TESTS 11 93 307200 1000
54634312 regoal3264128 B May 25, 2019, 4:06 p.m. OK Python 3 TESTS 11 93 307200 1000
53670295 Isha.Gupta B May 2, 2019, 12:48 p.m. OK Python 3 TESTS 11 93 307200 1000
53314953 uberman B April 26, 2019, 9:35 a.m. OK Python 3 TESTS 11 93 307200 1000
53291431 alicerod B April 25, 2019, 3:49 p.m. OK Python 3 TESTS 11 93 307200 1000
53105026 the_oathbreaker B April 21, 2019, 7:11 p.m. OK Python 3 TESTS 11 93 307200 1000
52983262 sharma_kunal B April 18, 2019, 6:11 p.m. OK Python 3 TESTS 11 93 307200 1000
52745663 Khody B April 14, 2019, 11:31 a.m. OK Python 3 TESTS 11 93 307200 1000
52523528 duanhv B April 9, 2019, 10:14 a.m. OK Ruby TESTS 11 46 102400 1000
55602993 kobae964 B June 15, 2019, 7:44 p.m. OK Rust TESTS 11 15 307200 1000
52223178 koka831 B April 2, 2019, 7:49 a.m. OK Rust TESTS 11 31 0 1000
52224159 nik-in-au B April 2, 2019, 8:26 a.m. OK Scala TESTS 11 452 0 1000

remove filters

Back to search problems