Codeforces Round 643 (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
1355 Codeforces Round 643 (Div. 2) FINISHED False 7200 142194299 May 16, 2020, 11:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18120 ) D Game With Array PROGRAMMING constructive algorithms math 1400

B'Petya and Vasya are competing with each other in a new interesting game as they always do. At the beginning of the game Petya has to come up with an array of N positive integers. Sum of all elements in his array should be equal to S . Then Petya has to select an integer K such that 0 <= q K <= q S . In order to win, Vasya has to find a non-empty subarray in Petya 's array such that the sum of all selected elements equals to either K or S - K . Otherwise Vasya loses. You are given integers N and S . You should determine if Petya can win, considering Vasya plays optimally. If Petya can win, help him to do that. The first line contains two integers N and S ( 1 <= q N <= q S <= q 10^{6} ) -- the required length of the array and the required sum of its elements. If Petya can win, print "YES" (without quotes) in the first line. Then print Petya 's array in the second line. The array should contain N positive integers with sum equal to S . In the third line print K . If there are many correct answers, you can print any of them. If Petya can 't win, print "NO" (without quotes). You can print each letter in any register (lowercase or uppercase). '...

Tutorials

Codeforces Round #643 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
81345139 vjudge5 D May 25, 2020, 3:55 a.m. OK Clang++17 Diagnostics TESTS 95 202 4198400 1400
81168706 BugLeave D May 24, 2020, 11 a.m. OK GNU C11 TESTS 95 31 0 1400
80426413 QScloud D May 17, 2020, 2:45 a.m. OK GNU C11 TESTS 95 31 3686400 1400
80446369 chowdhuryshashwoto D May 17, 2020, 7:52 a.m. OK GNU C11 TESTS 95 31 3686400 1400
81392141 ShofiqurRahman D May 25, 2020, 2:27 p.m. OK GNU C11 TESTS 95 202 0 1400
80733241 JoseTomas01 D May 20, 2020, 1:17 a.m. OK GNU C11 TESTS 95 218 0 1400
80414706 flayer_hunter D May 16, 2020, 8:41 p.m. OK GNU C11 TESTS 95 732 3686400 1400
80414932 flayer_hunter D May 16, 2020, 8:45 p.m. OK GNU C11 TESTS 95 732 10547200 1400
80389754 Israt_Jahan_Nahin D May 16, 2020, 3:46 p.m. OK GNU C11 TESTS 95 733 3686400 1400
80445906 chowdhuryshashwoto D May 17, 2020, 7:46 a.m. OK GNU C11 TESTS 95 748 3686400 1400
80415136 flayer_hunter D May 16, 2020, 8:49 p.m. OK GNU C11 TESTS 95 764 10649600 1400
80656755 luogu_bot3 D May 19, 2020, 5:32 a.m. OK GNU C++11 TESTS 95 31 0 1400
81068699 BeNoble D May 24, 2020, 4:52 a.m. OK GNU C++11 TESTS 95 31 0 1400
80928239 _BuGgY_ D May 22, 2020, 11:20 a.m. OK GNU C++11 TESTS 95 31 0 1400
80730883 bdcmd D May 19, 2020, 11:46 p.m. OK GNU C++11 TESTS 95 31 0 1400
80643885 xiazixi D May 18, 2020, 11:10 p.m. OK GNU C++11 TESTS 95 31 0 1400
80667833 theprof D May 19, 2020, 8:17 a.m. OK GNU C++11 TESTS 95 31 307200 1400
81375325 _zay D May 25, 2020, 11:06 a.m. OK GNU C++11 TESTS 95 31 1945600 1400
81360235 _zay D May 25, 2020, 7:58 a.m. OK GNU C++11 TESTS 95 31 1945600 1400
80714782 razdeep D May 19, 2020, 5:43 p.m. OK GNU C++11 TESTS 95 31 2252800 1400
81017751 dysyn1314 D May 23, 2020, 1:21 p.m. OK GNU C++11 TESTS 95 31 2355200 1400
80673156 Jeet_Karia D May 19, 2020, 9:29 a.m. OK GNU C++14 TESTS 95 31 0 1400
80400685 Jael D May 16, 2020, 5:32 p.m. OK GNU C++14 TESTS 95 31 3993600 1400
80390040 Best_Darius_VN D May 16, 2020, 3:49 p.m. OK GNU C++14 TESTS 95 31 3993600 1400
80412049 priyesh_coder D May 16, 2020, 7:55 p.m. OK GNU C++14 TESTS 95 31 3993600 1400
80394904 _plzzz D May 16, 2020, 4:33 p.m. OK GNU C++14 TESTS 95 31 3993600 1400
80421405 grass_lin D May 17, 2020, midnight OK GNU C++14 TESTS 95 31 7987200 1400
81357235 Heisenberg_333 D May 25, 2020, 7:16 a.m. OK GNU C++14 TESTS 95 46 0 1400
81383188 partha_paul D May 25, 2020, 12:38 p.m. OK GNU C++14 TESTS 95 46 0 1400
81411590 Dolonjahin D May 25, 2020, 6:27 p.m. OK GNU C++14 TESTS 95 46 0 1400
81447262 Lola0213 D May 26, 2020, 7:36 a.m. OK GNU C++14 TESTS 95 46 0 1400
80935642 Dany20 D May 22, 2020, 12:57 p.m. OK GNU C++17 TESTS 95 31 0 1400
80441888 _ck_ D May 17, 2020, 6:58 a.m. OK GNU C++17 TESTS 95 31 3686400 1400
80521591 ad12.go D May 17, 2020, 12:57 p.m. OK GNU C++17 TESTS 95 31 3686400 1400
80429219 yin12138 D May 17, 2020, 3:51 a.m. OK GNU C++17 TESTS 95 31 3686400 1400
80604745 bu_hridoy D May 18, 2020, 1:09 p.m. OK GNU C++17 TESTS 95 31 3686400 1400
80548298 Ahmad45123 D May 17, 2020, 6:53 p.m. OK GNU C++17 TESTS 95 31 3686400 1400
80429116 Saubhik_Pandey D May 17, 2020, 3:49 a.m. OK GNU C++17 TESTS 95 31 3686400 1400
80424508 20kra D May 17, 2020, 1:52 a.m. OK GNU C++17 TESTS 95 31 3686400 1400
80398354 rohitcode26 D May 16, 2020, 5:08 p.m. OK GNU C++17 TESTS 95 31 3686400 1400
80429866 piushcs D May 17, 2020, 4:06 a.m. OK GNU C++17 TESTS 95 31 3686400 1400
81022378 mraron D May 23, 2020, 2:32 p.m. OK GNU C++17 (64) TESTS 95 31 0 1400
81663755 rudro1152 D May 28, 2020, 2:23 a.m. OK GNU C++17 (64) TESTS 95 31 0 1400
80745755 f20180048 D May 20, 2020, 6:19 a.m. OK GNU C++17 (64) TESTS 95 31 0 1400
80725337 Phortox D May 19, 2020, 8:32 p.m. OK GNU C++17 (64) TESTS 95 31 0 1400
80663781 chen123456 D May 19, 2020, 7:18 a.m. OK GNU C++17 (64) TESTS 95 31 0 1400
80641944 petushara D May 18, 2020, 9:57 p.m. OK GNU C++17 (64) TESTS 95 31 0 1400
80630433 RUMAZIUS D May 18, 2020, 6:13 p.m. OK GNU C++17 (64) TESTS 95 31 0 1400
80539691 jacker0031 D May 17, 2020, 4:46 p.m. OK GNU C++17 (64) TESTS 95 31 4300800 1400
80545790 adi2710 D May 17, 2020, 6:15 p.m. OK GNU C++17 (64) TESTS 95 31 4300800 1400
80570668 zarif_2002 D May 18, 2020, 5:21 a.m. OK GNU C++17 (64) TESTS 95 31 4300800 1400
80428892 amarjeetanand D May 17, 2020, 3:44 a.m. OK Go TESTS 95 31 11571200 1400
80735053 darkMatter_00 D May 20, 2020, 2:22 a.m. OK Go TESTS 95 62 307200 1400
80403397 synapse D May 16, 2020, 6:04 p.m. OK Go TESTS 95 62 10649600 1400
80432454 Russell_Emerine D May 17, 2020, 4:56 a.m. OK Haskell TESTS 95 46 13926400 1400
81462463 p_unit D May 26, 2020, 11:02 a.m. OK Java 11 TESTS 95 186 0 1400
80811245 gargvibhor2012 D May 20, 2020, 11:42 p.m. OK Java 11 TESTS 95 186 0 1400
80411953 bckslsh03 D May 16, 2020, 7:54 p.m. OK Java 11 TESTS 95 186 23961600 1400
81562506 kadintang1 D May 26, 2020, 8:15 p.m. OK Java 11 TESTS 95 187 0 1400
80895548 GiantTornado D May 22, 2020, 2:14 a.m. OK Java 11 TESTS 95 187 0 1400
80809067 dauom D May 20, 2020, 10:06 p.m. OK Java 11 TESTS 95 187 0 1400
80733046 anhpp D May 20, 2020, 1:10 a.m. OK Java 11 TESTS 95 187 0 1400
80408927 ItsRj D May 16, 2020, 7:08 p.m. OK Java 11 TESTS 95 187 23859200 1400
80414829 Mann_27__ D May 16, 2020, 8:43 p.m. OK Java 11 TESTS 95 187 23961600 1400
80436512 nickleoden299 D May 17, 2020, 5:55 a.m. OK Java 11 TESTS 95 187 24064000 1400
80956244 Katushechka D May 22, 2020, 5:10 p.m. OK Java 8 TESTS 95 109 0 1400
81094041 cr777 D May 24, 2020, 5:34 a.m. OK Java 8 TESTS 95 109 0 1400
80772169 rv6023 D May 20, 2020, 12:30 p.m. OK Java 8 TESTS 95 109 0 1400
81041504 nidhigoel D May 23, 2020, 6:50 p.m. OK Java 8 TESTS 95 124 0 1400
81040042 The_Hidden_Man D May 23, 2020, 6:29 p.m. OK Java 8 TESTS 95 124 0 1400
81012932 poindexter_21 D May 23, 2020, 12:11 p.m. OK Java 8 TESTS 95 124 0 1400
80876870 nandit D May 21, 2020, 5:40 p.m. OK Java 8 TESTS 95 124 0 1400
81340348 Devil__ D May 25, 2020, 1:58 a.m. OK Java 8 TESTS 95 124 0 1400
81317319 partizan22 D May 24, 2020, 4:50 p.m. OK Java 8 TESTS 95 124 0 1400
81347140 AnandOza D May 25, 2020, 4:45 a.m. OK Java 8 TESTS 95 124 0 1400
80414833 DeadInsideOnTest993 D May 16, 2020, 8:43 p.m. OK Kotlin TESTS 95 139 20582400 1400
80422613 Tlatoani D May 17, 2020, 12:47 a.m. OK Kotlin TESTS 95 139 20992000 1400
80714268 razdeep D May 19, 2020, 5:37 p.m. OK Kotlin TESTS 95 140 0 1400
80965420 Fortin D May 22, 2020, 7:26 p.m. OK Kotlin TESTS 95 155 0 1400
80642850 speshuric D May 18, 2020, 10:29 p.m. OK Kotlin TESTS 95 155 716800 1400
81327341 Traduttore D May 24, 2020, 7:11 p.m. OK Kotlin TESTS 95 155 2355200 1400
80451504 jonas.havelka.42 D May 17, 2020, 8:50 a.m. OK Kotlin TESTS 95 155 21708800 1400
81024215 UD_xlinsist D May 23, 2020, 2:55 p.m. OK Kotlin TESTS 95 170 4812800 1400
81023349 IsTinG D May 23, 2020, 2:44 p.m. OK Kotlin TESTS 95 187 2150400 1400
81635790 TheConfessor D May 27, 2020, 3:49 p.m. OK Kotlin TESTS 95 187 2662400 1400
80388021 faxse D May 16, 2020, 3:33 p.m. OK Mono C# TESTS 95 108 21094400 1400
81317969 treasuryonly D May 24, 2020, 4:58 p.m. OK Mono C# TESTS 95 109 11673600 1400
81199851 nikitos111 D May 24, 2020, 12:56 p.m. OK Mono C# TESTS 95 701 0 1400
80940842 MrBear D May 22, 2020, 2:13 p.m. OK MS C++ TESTS 95 46 307200 1400
81020616 vjudge1 D May 23, 2020, 2:09 p.m. OK MS C++ TESTS 95 62 0 1400
80426112 Alanaxixi D May 17, 2020, 2:36 a.m. OK MS C++ TESTS 95 202 4096000 1400
81106533 immortalsman D May 24, 2020, 6:44 a.m. OK MS C++ 2017 TESTS 95 46 0 1400
81056520 jackcaptain D May 24, 2020, 2:46 a.m. OK MS C++ 2017 TESTS 95 46 0 1400
80917741 Alternek D May 22, 2020, 8:57 a.m. OK MS C++ 2017 TESTS 95 46 307200 1400
81330229 Tim2004 D May 24, 2020, 8:05 p.m. OK MS C++ 2017 TESTS 95 46 307200 1400
80944856 GeKa D May 22, 2020, 2:56 p.m. OK MS C++ 2017 TESTS 95 46 307200 1400
80744788 sriganeshr2001 D May 20, 2020, 6:05 a.m. OK MS C++ 2017 TESTS 95 46 307200 1400
80523126 Ancient_mage D May 17, 2020, 1:20 p.m. OK MS C++ 2017 TESTS 95 46 6041600 1400
81001297 vjudge1 D May 23, 2020, 9:30 a.m. OK MS C++ 2017 TESTS 95 61 307200 1400
80447930 15756211003 D May 17, 2020, 8:11 a.m. OK MS C++ 2017 TESTS 95 61 3686400 1400
81014715 vjudge1 D May 23, 2020, 12:36 p.m. OK MS C++ 2017 TESTS 95 62 307200 1400
80815947 beethoven97 D May 21, 2020, 2:47 a.m. OK PyPy 2 TESTS 95 124 6963200 1400
80831076 EM1NEM D May 21, 2020, 7:55 a.m. OK PyPy 2 TESTS 95 170 6860800 1400
80911106 yumtam D May 22, 2020, 7:26 a.m. OK PyPy 2 TESTS 95 171 16179200 1400
80419751 mir.panov D May 16, 2020, 10:54 p.m. OK PyPy 2 TESTS 95 218 51712000 1400
80419785 mir.panov D May 16, 2020, 10:55 p.m. OK PyPy 2 TESTS 95 218 51712000 1400
80419414 kit.shiron D May 16, 2020, 10:42 p.m. OK PyPy 2 TESTS 95 233 28774400 1400
80991632 adarshj322 D May 23, 2020, 7:03 a.m. OK PyPy 3 TESTS 95 171 5222400 1400
80759403 Raimkek D May 20, 2020, 9:42 a.m. OK PyPy 3 TESTS 95 171 5222400 1400
80844005 PracticeAccountICL D May 21, 2020, 10:54 a.m. OK PyPy 3 TESTS 95 171 11264000 1400
80548034 meme_lord D May 17, 2020, 6:49 p.m. OK PyPy 3 TESTS 95 171 25292800 1400
80401902 Punk_GTS D May 16, 2020, 5:46 p.m. OK PyPy 3 TESTS 95 171 27238400 1400
80495298 apoorvwatsky D May 17, 2020, 10:37 a.m. OK PyPy 3 TESTS 95 171 37068800 1400
80406493 tidu149 D May 16, 2020, 6:42 p.m. OK PyPy 3 TESTS 95 186 25292800 1400
80521425 thanuj7 D May 17, 2020, 12:54 p.m. OK PyPy 3 TESTS 95 186 25292800 1400
80444800 rishabh1889 D May 17, 2020, 7:34 a.m. OK PyPy 3 TESTS 95 186 25292800 1400
80402514 Arpanjain.g D May 16, 2020, 5:53 p.m. OK PyPy 3 TESTS 95 186 25292800 1400
80435634 ComptineDunAutreEte D May 17, 2020, 5:43 a.m. OK Python 2 TESTS 95 187 7372800 1400
80397354 bazzyadb D May 16, 2020, 4:58 p.m. OK Python 2 TESTS 95 311 14131200 1400
80437893 anshuman16423 D May 17, 2020, 6:12 a.m. OK Python 2 TESTS 95 312 6451200 1400
80397487 bazzyadb D May 16, 2020, 4:59 p.m. OK Python 2 TESTS 95 576 16179200 1400
80623683 Olimp_gamer D May 18, 2020, 4:41 p.m. OK Python 3 TESTS 95 109 2764800 1400
81654197 lakshyamittalaka D May 27, 2020, 8:29 p.m. OK Python 3 TESTS 95 109 2867200 1400
81141381 Complxr D May 24, 2020, 7:27 a.m. OK Python 3 TESTS 95 109 2867200 1400
80958240 Mohamad11 D May 22, 2020, 5:37 p.m. OK Python 3 TESTS 95 109 2867200 1400
80910630 saurabh6299 D May 22, 2020, 7:18 a.m. OK Python 3 TESTS 95 109 2867200 1400
80826887 ashu73 D May 21, 2020, 6:50 a.m. OK Python 3 TESTS 95 109 2867200 1400
80632884 LintuStorm D May 18, 2020, 6:49 p.m. OK Python 3 TESTS 95 109 2867200 1400
80795745 pratik1997 D May 20, 2020, 5:36 p.m. OK Python 3 TESTS 95 109 3072000 1400
80512261 bur14 D May 17, 2020, 11:20 a.m. OK Python 3 TESTS 95 109 9523200 1400
80449130 jainshubhi09 D May 17, 2020, 8:24 a.m. OK Python 3 TESTS 95 109 9523200 1400
81427831 LeoRiether D May 26, 2020, 1:02 a.m. OK Rust TESTS 95 217 13824000 1400
80725132 IvanDyachenko D May 19, 2020, 8:27 p.m. OK Scala TESTS 95 514 12492800 1400

remove filters

Back to search problems