Codeforces Round 717 (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
1516 Codeforces Round 717 (Div. 2) FINISHED False 7200 118167863 April 21, 2021, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12156 ) C Baby Ehab Partitions Again PROGRAMMING bitmasks constructive algorithms dp math

B"Baby Ehab was toying around with arrays. He has an array a of length n . He defines an array to be good if there's no way to partition it into 2 subsequences such that the sum of the elements in the first is equal to the sum of the elements in the second. Now he wants to remove the minimum number of elements in a so that it becomes a good array. Can you help him? A sequence b is a subsequence of an array a if b can be obtained from a by deleting some (possibly zero or all) elements. A partitioning of an array is a way to divide it into 2 subsequences such that every element belongs to exactly one subsequence, so you must use all the elements, and you can't share any elements. The first line contains an integer n ( 2 <= n <= 100 ) -- the length of the array a . The second line contains n integers a_1 , a_2 , ldots , a_{n} ( 1 <= a_i <= 2000 ) -- the elements of the array a . The first line should contain the minimum number of elements you need to remove. The second line should contain the indices of the elements you're removing, separated by spaces. We can show that an answer always exists. If there are multiple solutions, you can print any. In the first example, you can partition the array into [6,9] and [3,12] , so you must remove at least 1 element. Removing 3 is sufficient. In the second example, the array is already good, so you don't need to remove any elements. "...

Tutorials

Codeforces round #717 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
113827765 whn C April 22, 2021, 2:43 a.m. OK GNU C++11 TESTS 44 15 1228800
113800126 Nanako C April 21, 2021, 5:15 p.m. OK GNU C++11 TESTS 39 15 1638400
113787650 Dpedantry C April 21, 2021, 3:32 p.m. OK GNU C++11 TESTS 39 15 22835200
113828504 lanChe C April 22, 2021, 2:57 a.m. OK GNU C++11 TESTS 44 30 307200
113831523 srikkanthr C April 22, 2021, 3:50 a.m. OK GNU C++11 TESTS 44 30 409600
113823130 Doc_Di C April 22, 2021, 12:33 a.m. OK GNU C++11 TESTS 42 30 614400
113846463 SCAU_Lnn C April 22, 2021, 5:08 a.m. OK GNU C++11 TESTS 44 30 8089600
113825004 zengbiaojie C April 22, 2021, 1:29 a.m. OK GNU C++11 TESTS 43 30 8089600
113803071 Synthra C April 21, 2021, 5:52 p.m. OK GNU C++11 TESTS 40 30 10137600
113831958 Tommy0103 C April 22, 2021, 3:57 a.m. OK GNU C++11 TESTS 44 31 0
113830865 TiorK C April 22, 2021, 3:39 a.m. OK GNU C++14 TESTS 44 15 1228800
113793758 Fajr_lxh C April 21, 2021, 4:17 p.m. OK GNU C++14 TESTS 39 15 1638400
113792636 piCoder314 C April 21, 2021, 4:11 p.m. OK GNU C++14 TESTS 39 30 102400
113824421 BaThUn C April 22, 2021, 1:11 a.m. OK GNU C++14 TESTS 43 30 7987200
113846220 minato__namikaze__ C April 22, 2021, 5:04 a.m. OK GNU C++14 TESTS 44 30 20275200
113802778 shikamaru-_- C April 21, 2021, 5:48 p.m. OK GNU C++14 TESTS 40 31 0
113790603 flamestorm C April 21, 2021, 4:02 p.m. OK GNU C++14 TESTS 39 31 0
113848262 Apolis C April 22, 2021, 5:36 a.m. OK GNU C++14 TESTS 44 31 102400
113831997 VFX C April 22, 2021, 3:58 a.m. OK GNU C++14 TESTS 44 31 102400
113830222 CoderUSICT C April 22, 2021, 3:28 a.m. OK GNU C++14 TESTS 44 31 102400
113825389 dayuanx C April 22, 2021, 1:41 a.m. OK GNU C++17 TESTS 43 15 102400
113825876 Muphy C April 22, 2021, 1:57 a.m. OK GNU C++17 TESTS 43 15 819200
113826520 jamienguyen C April 22, 2021, 2:14 a.m. OK GNU C++17 TESTS 44 30 0
113847393 rakshitjain13 C April 22, 2021, 5:23 a.m. OK GNU C++17 TESTS 44 30 102400
113808835 byee2020 C April 21, 2021, 7:09 p.m. OK GNU C++17 TESTS 41 30 102400
113800116 __oOoOo__ C April 21, 2021, 5:15 p.m. OK GNU C++17 TESTS 39 30 102400
113799933 bonopo C April 21, 2021, 5:13 p.m. OK GNU C++17 TESTS 39 30 102400
113791676 eunho.ambition C April 21, 2021, 4:06 p.m. OK GNU C++17 TESTS 39 30 102400
113823979 BelGuTei.B C April 22, 2021, 12:57 a.m. OK GNU C++17 TESTS 43 30 204800
113823935 celesx C April 22, 2021, 12:56 a.m. OK GNU C++17 TESTS 43 30 204800
113798445 Vax C April 21, 2021, 4:57 p.m. OK GNU C++17 (64) TESTS 39 15 921600
113824920 timmyfeng C April 22, 2021, 1:27 a.m. OK GNU C++17 (64) TESTS 43 30 102400
113792653 Racer5x C April 21, 2021, 4:11 p.m. OK GNU C++17 (64) TESTS 39 30 102400
113793009 shashankk C April 21, 2021, 4:13 p.m. OK GNU C++17 (64) TESTS 39 30 204800
113795940 asakh C April 21, 2021, 4:34 p.m. OK GNU C++17 (64) TESTS 39 30 28876800
113828842 DRD C April 22, 2021, 3:03 a.m. OK GNU C++17 (64) TESTS 44 31 0
113816504 smax C April 21, 2021, 9:23 p.m. OK GNU C++17 (64) TESTS 42 31 0
113803270 spookywooky C April 21, 2021, 5:55 p.m. OK GNU C++17 (64) TESTS 40 31 0
113794546 mars4 C April 21, 2021, 4:23 p.m. OK GNU C++17 (64) TESTS 39 31 0
113793834 lolzzz C April 21, 2021, 4:18 p.m. OK GNU C++17 (64) TESTS 39 31 0
113801393 0x3F C April 21, 2021, 5:30 p.m. OK Go TESTS 40 46 102400
113803523 0x3F C April 21, 2021, 5:58 p.m. OK Go TESTS 40 46 512000
113802267 0x3F C April 21, 2021, 5:41 p.m. OK Go TESTS 40 46 614400
113803712 0x3F C April 21, 2021, 6:01 p.m. OK Go TESTS 40 46 2150400
113829800 SorryNaCN C April 22, 2021, 3:20 a.m. OK Go TESTS 44 77 819200
113798649 tushar_patil C April 21, 2021, 4:59 p.m. OK Java 11 TESTS 39 187 0
113795162 R3KT C April 21, 2021, 4:28 p.m. OK Java 11 TESTS 39 187 0
113815496 ETHANHUNTMI5 C April 21, 2021, 9:01 p.m. OK Java 11 TESTS 42 202 0
113808976 Andwerp C April 21, 2021, 7:11 p.m. OK Java 11 TESTS 41 202 0
113804019 Is2ac C April 21, 2021, 6:05 p.m. OK Java 11 TESTS 40 202 0
113797236 nirvana_rsc C April 21, 2021, 4:45 p.m. OK Java 11 TESTS 39 202 0
113848954 rachitagrawal1011 C April 22, 2021, 5:46 a.m. OK Java 11 TESTS 44 202 5632000
113807608 decoder_1671 C April 21, 2021, 6:52 p.m. OK Java 11 TESTS 41 202 10240000
113821507 procrastinate7 C April 21, 2021, 11:48 p.m. OK Java 11 TESTS 42 202 15462400
113811796 bittubittu C April 21, 2021, 7:53 p.m. OK Java 11 TESTS 42 202 71680000
113809135 bush117 C April 21, 2021, 7:13 p.m. OK Java 8 TESTS 41 124 0
113808114 gssakash C April 21, 2021, 6:59 p.m. OK Java 8 TESTS 41 124 0
113807604 gssakash C April 21, 2021, 6:52 p.m. OK Java 8 TESTS 41 124 0
113805299 guru1603 C April 21, 2021, 6:22 p.m. OK Java 8 TESTS 40 124 0
113793659 gagan_6730 C April 21, 2021, 4:17 p.m. OK Java 8 TESTS 39 124 0
113791255 Agnimandur C April 21, 2021, 4:04 p.m. OK Java 8 TESTS 39 124 0
113814023 Dstoical C April 21, 2021, 8:32 p.m. OK Java 8 TESTS 42 139 0
113848876 grivarvicky C April 22, 2021, 5:44 a.m. OK Java 8 TESTS 44 140 0
113816568 hu_tao C April 21, 2021, 9:24 p.m. OK Java 8 TESTS 42 140 0
113814563 brikri C April 21, 2021, 8:42 p.m. OK Java 8 TESTS 42 140 0
113803829 koper C April 21, 2021, 6:02 p.m. OK Kotlin TESTS 40 140 0
113787763 lifran C April 21, 2021, 3:33 p.m. OK Kotlin TESTS 39 483 2048000
113813574 SevagD C April 21, 2021, 8:24 p.m. OK MS C++ TESTS 42 140 40652800
113810216 darijan2002 C April 21, 2021, 7:28 p.m. OK MS C++ 2017 TESTS 41 31 102400
113798390 UnHingedFrog C April 21, 2021, 4:56 p.m. OK MS C++ 2017 TESTS 39 31 3788800
113847145 Archie98 C April 22, 2021, 5:20 a.m. OK MS C++ 2017 TESTS 44 77 82022400
113798317 TayaGl C April 21, 2021, 4:56 p.m. OK MS C++ 2017 TESTS 39 78 307200
113794280 qing_lin C April 21, 2021, 4:21 p.m. OK MS C++ 2017 TESTS 39 78 1843200
113796914 sky C April 21, 2021, 4:42 p.m. OK Node.js TESTS 39 452 4505600
113848367 dolphinigle C April 22, 2021, 5:38 a.m. OK PyPy 2 TESTS 44 186 41676800
113846943 Saucemaster102 C April 22, 2021, 5:17 a.m. OK PyPy 2 TESTS 44 436 106496000
113846491 Saucemaster102 C April 22, 2021, 5:09 a.m. OK PyPy 2 TESTS 44 436 106496000
113848589 dhwanipatel18 C April 22, 2021, 5:41 a.m. OK PyPy 3 TESTS 44 108 102400
113811275 damirych C April 21, 2021, 7:44 p.m. OK PyPy 3 TESTS 42 108 102400
113790834 ryo_n C April 21, 2021, 4:02 p.m. OK PyPy 3 TESTS 39 109 1638400
113813634 JAMES-CODER C April 21, 2021, 8:25 p.m. OK PyPy 3 TESTS 42 124 1638400
113845135 jitendra_joshi3112000 C April 22, 2021, 4:47 a.m. OK PyPy 3 TESTS 44 124 1740800
113832751 g_anes_h C April 22, 2021, 4:09 a.m. OK PyPy 3 TESTS 44 124 1740800
113824998 MassimoG C April 22, 2021, 1:29 a.m. OK PyPy 3 TESTS 43 124 1740800
113828556 lucifer1004 C April 22, 2021, 2:58 a.m. OK PyPy 3 TESTS 44 124 1843200
113794253 reddevil100 C April 21, 2021, 4:21 p.m. OK PyPy 3 TESTS 39 140 2355200
113795594 PiKa_PiKaa_chuuu C April 21, 2021, 4:31 p.m. OK PyPy 3 TESTS 39 140 9728000
113832075 h8191 C April 22, 2021, 3:59 a.m. OK Python 3 TESTS 44 62 307200
113818326 newbie00 C April 21, 2021, 10:12 p.m. OK Python 3 TESTS 42 77 307200
113798967 manohar24 C April 21, 2021, 5:02 p.m. OK Python 3 TESTS 39 1154 204800
113789242 azurel C April 21, 2021, 3:34 p.m. OK Python 3 TESTS 39 1154 2150400
113831641 siddharthsngh C April 22, 2021, 3:52 a.m. OK Python 3 TESTS 44 1372 79769600
113832689 h8191 C April 22, 2021, 4:08 a.m. OK Python 3 TESTS 44 1747 819200
113814815 ssvb C April 21, 2021, 8:47 p.m. OK Ruby 3 TESTS 42 794 19968000
113814886 ssvb C April 21, 2021, 8:49 p.m. OK Ruby 3 TESTS 42 811 19865600

remove filters

Back to search problems