Codeforces Round 646 (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
1363 Codeforces Round 646 (Div. 2) FINISHED False 7200 146244263 May 31, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 36672 ) A Odd Selection PROGRAMMING brute force implementation math 1200

B'Shubham has an array a of size n , and wants to select exactly x elements from it, such that their sum is odd. These elements do not have to be consecutive. The elements of the array are not guaranteed to be distinct. Tell him whether he can do so. The first line of the input contains a single integer t (1 <= t <= 100) -- the number of test cases. The description of the test cases follows. The first line of each test case contains two integers n and x (1 <= x <= n <= 1000) -- the length of the array and the number of elements you need to choose. The next line of each test case contains n integers a_1, a_2, ... , a_n (1 <= a_i <= 1000) -- elements of the array. For each test case, print "Yes" or "No" depending on whether it is possible to choose x elements such that their sum is odd. You may print every letter in any case you want. For 1 st case: We must select element 999 , and the sum is odd. For 2 nd case: We must select element 1000 , so overall sum is not odd. For 3 rd case: We can select element 51 . For 4 th case: We must select both elements 50 and 51 -- so overall sum is odd. For 5 th case: We must select all elements -- but overall sum is not odd. '...

Tutorials

78202

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
82190801 Aditya_99 A June 1, 2020, 7:44 a.m. OK Clang++17 Diagnostics TESTS 27 358 1843200 1200
82192676 AdiReddy A June 1, 2020, 8:05 a.m. OK Clang++17 Diagnostics TESTS 27 358 12595200 1200
82361213 ijk13 A June 3, 2020, 5:05 a.m. OK Clang++17 Diagnostics TESTS 28 374 0 1200
82357381 tul.matvey A June 3, 2020, 3:41 a.m. OK Clang++17 Diagnostics TESTS 28 374 0 1200
82168036 vjudge3 A June 1, 2020, 12:56 a.m. OK Clang++17 Diagnostics TESTS 24 389 0 1200
82212538 tulindanil A June 1, 2020, 11:48 a.m. OK Clang++17 Diagnostics TESTS 27 389 0 1200
82327246 eric.bryan2001 A June 2, 2020, 4:17 p.m. OK Clang++17 Diagnostics TESTS 28 436 0 1200
82169078 Pk000 A June 1, 2020, 1:34 a.m. OK Clang++17 Diagnostics TESTS 24 529 0 1200
82150314 Arteni_Cristi A May 31, 2020, 6:12 p.m. OK FPC TESTS 24 46 0 1200
82150478 SUNNY24 A May 31, 2020, 6:14 p.m. OK GNU C11 TESTS 24 31 0 1200
82363953 dongri A June 3, 2020, 5:52 a.m. OK GNU C11 TESTS 28 31 0 1200
82328376 enthusiast A June 2, 2020, 4:30 p.m. OK GNU C11 TESTS 28 31 0 1200
82325451 enthusiast A June 2, 2020, 3:57 p.m. OK GNU C11 TESTS 28 31 0 1200
82318370 akshay14patwal A June 2, 2020, 2:39 p.m. OK GNU C11 TESTS 28 31 0 1200
82226270 RED2724 A June 1, 2020, 2:23 p.m. OK GNU C11 TESTS 27 31 0 1200
82175882 Shahed_955 A June 1, 2020, 4:19 a.m. OK GNU C11 TESTS 24 31 0 1200
82175173 juluo A June 1, 2020, 4:06 a.m. OK GNU C11 TESTS 24 31 0 1200
82175067 Redoy_Kumar A June 1, 2020, 4:04 a.m. OK GNU C11 TESTS 24 31 0 1200
82153400 Lazy_ishtiak A May 31, 2020, 6:45 p.m. OK GNU C11 TESTS 24 31 0 1200
82226883 yuanyuxuan A June 1, 2020, 2:29 p.m. OK GNU C++11 TESTS 27 15 0 1200
82283654 scimoon A June 2, 2020, 8 a.m. OK GNU C++11 TESTS 27 30 0 1200
82394957 Thomasguo666 A June 3, 2020, 12:17 p.m. OK GNU C++11 TESTS 28 30 0 1200
82392527 sorrowful_fish A June 3, 2020, 11:47 a.m. OK GNU C++11 TESTS 28 30 0 1200
82203800 Werner_Yin A June 1, 2020, 10:12 a.m. OK GNU C++11 TESTS 27 30 204800 1200
82456424 master_rat1 A June 4, 2020, 7:03 a.m. OK GNU C++11 TESTS 28 31 0 1200
82446036 luogu_bot1 A June 4, 2020, 3:59 a.m. OK GNU C++11 TESTS 28 31 0 1200
82423094 ACMonster A June 3, 2020, 5:39 p.m. OK GNU C++11 TESTS 28 31 0 1200
82482144 Flash_plus A June 4, 2020, 12:33 p.m. OK GNU C++11 TESTS 28 31 0 1200
82459608 priyanshu_x A June 4, 2020, 7:45 a.m. OK GNU C++11 TESTS 28 31 0 1200
82394750 boxnos A June 3, 2020, 12:14 p.m. OK GNU C++14 TESTS 28 31 0 1200
82167878 Insister A June 1, 2020, 12:49 a.m. OK GNU C++14 TESTS 24 31 0 1200
82167183 Unview A June 1, 2020, 12:19 a.m. OK GNU C++14 TESTS 24 31 0 1200
82153021 Pawan123 A May 31, 2020, 6:41 p.m. OK GNU C++14 TESTS 24 31 0 1200
82151163 Ashes47 A May 31, 2020, 6:21 p.m. OK GNU C++14 TESTS 24 31 0 1200
82149459 Believe A May 31, 2020, 6:03 p.m. OK GNU C++14 TESTS 24 31 0 1200
82147995 Priyank A May 31, 2020, 5:51 p.m. OK GNU C++14 TESTS 24 31 0 1200
82254552 Whiclips A June 1, 2020, 8:38 p.m. OK GNU C++14 TESTS 27 31 204800 1200
82159778 justAmanGupta A May 31, 2020, 8:21 p.m. OK GNU C++14 TESTS 24 31 204800 1200
82170807 edward_zenner A June 1, 2020, 2:26 a.m. OK GNU C++14 TESTS 24 31 307200 1200
82284153 Mint_Choco A June 2, 2020, 8:06 a.m. OK GNU C++17 TESTS 27 31 0 1200
82169797 dsjong A June 1, 2020, 1:56 a.m. OK GNU C++17 TESTS 24 31 0 1200
82173597 wangmx A June 1, 2020, 3:31 a.m. OK GNU C++17 TESTS 24 31 0 1200
82153313 flayer_hunter A May 31, 2020, 6:44 p.m. OK GNU C++17 TESTS 24 31 204800 1200
82150181 avgguy A May 31, 2020, 6:11 p.m. OK GNU C++17 TESTS 24 31 204800 1200
82150437 global_const A May 31, 2020, 6:13 p.m. OK GNU C++17 TESTS 24 31 204800 1200
82223683 raja_ A June 1, 2020, 1:56 p.m. OK GNU C++17 TESTS 27 31 307200 1200
82322305 Billyshuai A June 2, 2020, 3:21 p.m. OK GNU C++17 TESTS 28 31 307200 1200
82173002 NSPS A June 1, 2020, 3:17 a.m. OK GNU C++17 TESTS 24 31 307200 1200
82182789 anushka1309 A June 1, 2020, 6:07 a.m. OK GNU C++17 TESTS 24 31 307200 1200
82268441 ...I_am_Kira... A June 2, 2020, 4:24 a.m. OK GNU C++17 (64) TESTS 27 31 0 1200
82383453 aeiou1 A June 3, 2020, 9:57 a.m. OK GNU C++17 (64) TESTS 28 31 0 1200
82352537 aryan005 A June 3, 2020, 1:37 a.m. OK GNU C++17 (64) TESTS 28 31 0 1200
82351835 errorgorn A June 3, 2020, 1:10 a.m. OK GNU C++17 (64) TESTS 28 31 0 1200
82348252 bmu A June 2, 2020, 10:28 p.m. OK GNU C++17 (64) TESTS 28 31 0 1200
82341050 cadugomes A June 2, 2020, 7:17 p.m. OK GNU C++17 (64) TESTS 28 31 0 1200
82314244 otera A June 2, 2020, 1:54 p.m. OK GNU C++17 (64) TESTS 28 31 0 1200
82308436 vjudge2 A June 2, 2020, 12:50 p.m. OK GNU C++17 (64) TESTS 28 31 0 1200
82304216 cheissmart A June 2, 2020, 12:02 p.m. OK GNU C++17 (64) TESTS 28 31 0 1200
82303211 vjudge1 A June 2, 2020, 11:50 a.m. OK GNU C++17 (64) TESTS 28 31 0 1200
82425915 takezawa A June 3, 2020, 6:18 p.m. OK Go TESTS 28 46 307200 1200
82423829 takezawa A June 3, 2020, 5:49 p.m. OK Go TESTS 28 46 307200 1200
82215820 maguroguma A June 1, 2020, 12:26 p.m. OK Go TESTS 27 61 307200 1200
82172643 dblokhin A June 1, 2020, 3:10 a.m. OK Go TESTS 24 77 0 1200
82202658 synapse A June 1, 2020, 9:59 a.m. OK Go TESTS 27 77 307200 1200
82150419 nsaeki A May 31, 2020, 6:13 p.m. OK Go TESTS 24 77 307200 1200
82145673 nsaeki A May 31, 2020, 5:35 p.m. OK Go TESTS 24 77 307200 1200
82166323 BugLeave A May 31, 2020, 11:49 p.m. OK Go TESTS 24 78 0 1200
82172565 dblokhin A June 1, 2020, 3:09 a.m. OK Go TESTS 24 78 102400 1200
82166274 clyring A May 31, 2020, 11:46 p.m. OK Haskell TESTS 24 31 102400 1200
82365191 Demo7 A June 3, 2020, 6:10 a.m. OK Java 11 TESTS 28 171 0 1200
82348192 jakejase2 A June 2, 2020, 10:25 p.m. OK Java 11 TESTS 28 171 0 1200
82176122 maheshwari29 A June 1, 2020, 4:24 a.m. OK Java 11 TESTS 24 171 0 1200
82331441 MAVabjb A June 2, 2020, 5:05 p.m. OK Java 11 TESTS 28 186 0 1200
82195655 zenlyj A June 1, 2020, 8:38 a.m. OK Java 11 TESTS 27 186 0 1200
82144686 saikaushik333 A May 31, 2020, 5:30 p.m. OK Java 11 TESTS 24 186 0 1200
82312736 urjarock A June 2, 2020, 1:37 p.m. OK Java 11 TESTS 28 187 0 1200
82275219 rish1124 A June 2, 2020, 6:14 a.m. OK Java 11 TESTS 27 187 0 1200
82265819 rajparekh2024 A June 2, 2020, 3:21 a.m. OK Java 11 TESTS 27 187 0 1200
82256432 devanshjsr A June 1, 2020, 9:30 p.m. OK Java 11 TESTS 27 187 0 1200
82234233 cis_pie A June 1, 2020, 3:41 p.m. OK Java 8 TESTS 27 109 0 1200
82451884 kunalkatiyar9 A June 4, 2020, 6:01 a.m. OK Java 8 TESTS 28 109 0 1200
82328579 labdhi A June 2, 2020, 4:32 p.m. OK Java 8 TESTS 28 109 0 1200
82294668 Vivek_Thota A June 2, 2020, 10:10 a.m. OK Java 8 TESTS 27 109 0 1200
82215612 Akash_kunwar A June 1, 2020, 12:23 p.m. OK Java 8 TESTS 27 109 0 1200
82199912 ashen.lily A June 1, 2020, 9:26 a.m. OK Java 8 TESTS 27 109 0 1200
82187560 mananparmar7042 A June 1, 2020, 7:07 a.m. OK Java 8 TESTS 27 109 0 1200
82173482 bohot_hard_123 A June 1, 2020, 3:29 a.m. OK Java 8 TESTS 24 109 0 1200
82155356 zekigurbuz A May 31, 2020, 7:10 p.m. OK Java 8 TESTS 24 109 0 1200
82477717 ritvik369 A June 4, 2020, 11:35 a.m. OK Java 8 TESTS 28 124 0 1200
82440491 Killua1 A June 4, 2020, 1:12 a.m. OK JavaScript TESTS 28 46 2662400 1200
82440706 Killua1 A June 4, 2020, 1:18 a.m. OK JavaScript TESTS 28 61 1536000 1200
82165074 Spheniscine A May 31, 2020, 10:49 p.m. OK Kotlin TESTS 24 139 0 1200
82311708 Ahmadjon A June 2, 2020, 1:26 p.m. OK Kotlin TESTS 28 140 0 1200
82395254 PugachAG A June 3, 2020, 12:21 p.m. OK Kotlin TESTS 28 140 0 1200
82145939 Tlatoani A May 31, 2020, 5:36 p.m. OK Kotlin TESTS 24 155 0 1200
82261235 josemgu91 A June 2, 2020, 12:58 a.m. OK Kotlin TESTS 27 171 0 1200
82401712 whiter4bbit A June 3, 2020, 1:41 p.m. OK Kotlin TESTS 28 187 0 1200
82385591 mishagam A June 3, 2020, 10:22 a.m. OK Kotlin TESTS 28 187 0 1200
82145197 agent-10 A May 31, 2020, 5:32 p.m. OK Kotlin TESTS 24 187 0 1200
82221442 Malozemova A June 1, 2020, 1:32 p.m. OK Mono C# TESTS 27 77 3072000 1200
82478835 xalton A June 4, 2020, 11:50 a.m. OK Mono C# TESTS 28 78 3072000 1200
82150038 TRR A May 31, 2020, 6:09 p.m. OK Mono C# TESTS 24 93 3072000 1200
82329952 koosmarci A June 2, 2020, 4:49 p.m. OK Mono C# TESTS 28 93 3072000 1200
82209859 ravinem1 A June 1, 2020, 11:20 a.m. OK Mono C# TESTS 27 93 6860800 1200
82393404 BowieD A June 3, 2020, 11:57 a.m. OK Mono C# TESTS 28 93 6860800 1200
82297406 _Trung_Nguyen A June 2, 2020, 10:44 a.m. OK Mono C# TESTS 28 93 6860800 1200
82271565 vjudge5 A June 2, 2020, 5:24 a.m. OK MS C++ TESTS 27 46 0 1200
82263271 vjudge1 A June 2, 2020, 2:11 a.m. OK MS C++ TESTS 27 46 0 1200
82262936 vjudge1 A June 2, 2020, 1:59 a.m. OK MS C++ TESTS 27 46 0 1200
82262349 vjudge4 A June 2, 2020, 1:39 a.m. OK MS C++ TESTS 27 46 0 1200
82263690 vjudge2 A June 2, 2020, 2:25 a.m. OK MS C++ TESTS 27 46 307200 1200
82268411 zengxy A June 2, 2020, 4:23 a.m. OK MS C++ TESTS 27 46 307200 1200
82307972 vjudge1 A June 2, 2020, 12:44 p.m. OK MS C++ TESTS 28 46 307200 1200
82306151 vjudge2 A June 2, 2020, 12:24 p.m. OK MS C++ TESTS 28 77 0 1200
82263047 vjudge1 A June 2, 2020, 2:03 a.m. OK MS C++ TESTS 27 78 0 1200
82310245 vjudge3 A June 2, 2020, 1:09 p.m. OK MS C++ 2017 TESTS 28 46 0 1200
82254161 metal4people A June 1, 2020, 8:29 p.m. OK MS C++ 2017 TESTS 27 46 102400 1200
82264267 leventa A June 2, 2020, 2:40 a.m. OK MS C++ 2017 TESTS 27 46 102400 1200
82291240 vjudge1 A June 2, 2020, 9:25 a.m. OK MS C++ 2017 TESTS 27 46 204800 1200
82264042 vjudge5 A June 2, 2020, 2:34 a.m. OK MS C++ 2017 TESTS 27 46 307200 1200
82382608 carber A June 3, 2020, 9:46 a.m. OK MS C++ 2017 TESTS 28 46 307200 1200
82263004 vjudge2 A June 2, 2020, 2:01 a.m. OK MS C++ 2017 TESTS 27 46 307200 1200
82262667 vjudge5 A June 2, 2020, 1:50 a.m. OK MS C++ 2017 TESTS 27 46 307200 1200
82246536 The.Cursed.Mage A June 1, 2020, 6:16 p.m. OK MS C++ 2017 TESTS 27 46 307200 1200
82266547 vjudge1 A June 2, 2020, 3:39 a.m. OK MS C++ 2017 TESTS 27 46 307200 1200
82152034 ilia_kh A May 31, 2020, 6:30 p.m. OK Node.js TESTS 24 108 4812800 1200
82177481 Mohamed_Fakhry A June 1, 2020, 4:50 a.m. OK Node.js TESTS 24 108 4812800 1200
82185763 FailBetterNextTime A June 1, 2020, 6:46 a.m. OK PyPy 2 TESTS 24 155 1433600 1200
82148140 bazzyadb A May 31, 2020, 5:52 p.m. OK PyPy 2 TESTS 24 155 1433600 1200
82305395 yumtam A June 2, 2020, 12:15 p.m. OK PyPy 2 TESTS 28 155 2150400 1200
82183519 mo-hit A June 1, 2020, 6:17 a.m. OK PyPy 2 TESTS 24 248 10547200 1200
82402688 snape_here A June 3, 2020, 1:52 p.m. OK PyPy 2 TESTS 28 265 7577600 1200
82467802 xicarik A June 4, 2020, 9:25 a.m. OK PyPy 3 TESTS 28 140 1945600 1200
82422602 UTMoonlight A June 3, 2020, 5:33 p.m. OK PyPy 3 TESTS 28 140 1945600 1200
82145778 Neotheprogrammer A May 31, 2020, 5:36 p.m. OK PyPy 3 TESTS 24 155 3584000 1200
82186216 servermonk A June 1, 2020, 6:51 a.m. OK PyPy 3 TESTS 27 156 2048000 1200
82146586 Rajdeep2k A May 31, 2020, 5:41 p.m. OK PyPy 3 TESTS 24 156 2867200 1200
82191413 THEarchitect A June 1, 2020, 7:51 a.m. OK PyPy 3 TESTS 27 171 2355200 1200
82150166 apoorvwatsky A May 31, 2020, 6:10 p.m. OK PyPy 3 TESTS 24 171 2764800 1200
82280969 dipta007 A June 2, 2020, 7:27 a.m. OK PyPy 3 TESTS 27 171 3481600 1200
82236206 tflave A June 1, 2020, 4:02 p.m. OK PyPy 3 TESTS 27 171 3481600 1200
82171414 Ultimate_darkmatter A June 1, 2020, 2:41 a.m. OK PyPy 3 TESTS 24 171 3584000 1200
82418818 tuxtux1 A June 3, 2020, 4:47 p.m. OK Python 2 TESTS 28 218 512000 1200
82172439 nandarustam A June 1, 2020, 3:06 a.m. OK Python 2 TESTS 24 218 512000 1200
82156182 shidi.zhao A May 31, 2020, 7:22 p.m. OK Python 2 TESTS 24 218 716800 1200
82156977 Liberator187 A May 31, 2020, 7:33 p.m. OK Python 3 TESTS 24 124 716800 1200
82151005 frankhannes A May 31, 2020, 6:19 p.m. OK Python 3 TESTS 24 124 716800 1200
82419232 goku_4580 A June 3, 2020, 4:52 p.m. OK Python 3 TESTS 28 124 819200 1200
82155688 yakorovka A May 31, 2020, 7:15 p.m. OK Python 3 TESTS 24 124 819200 1200
82262430 galexwong A June 2, 2020, 1:42 a.m. OK Python 3 TESTS 27 124 921600 1200
82230367 mkawa2 A June 1, 2020, 3:03 p.m. OK Python 3 TESTS 27 124 921600 1200
82186506 Arjunmnn A June 1, 2020, 6:55 a.m. OK Python 3 TESTS 27 124 921600 1200
82177578 vjudge1 A June 1, 2020, 4:51 a.m. OK Python 3 TESTS 24 124 921600 1200
82315709 i_am_on_a_break A June 2, 2020, 2:10 p.m. OK Python 3 TESTS 28 124 1024000 1200
82166037 ladyn A May 31, 2020, 11:34 p.m. OK Python 3 TESTS 24 124 1024000 1200
82153123 jankmet A May 31, 2020, 6:42 p.m. OK Ruby TESTS 24 108 1331200 1200
82257868 sachinam_1397 A June 1, 2020, 10:26 p.m. OK Ruby TESTS 27 109 1331200 1200
82352452 ternary A June 3, 2020, 1:34 a.m. OK Ruby TESTS 28 124 1331200 1200
82438788 Rara. A June 4, 2020, midnight OK Ruby TESTS 28 124 1536000 1200
82438777 TheStrange A June 3, 2020, 11:59 p.m. OK Ruby TESTS 28 124 1536000 1200
82471948 kobae964 A June 4, 2020, 10:19 a.m. OK Rust TESTS 28 46 307200 1200
82306193 pandrei A June 2, 2020, 12:24 p.m. OK Rust TESTS 28 46 716800 1200
82306141 pandrei A June 2, 2020, 12:24 p.m. OK Rust TESTS 28 46 716800 1200
82150531 mt1 A May 31, 2020, 6:14 p.m. OK Scala TESTS 24 483 0 1200

remove filters

Back to search problems