Codeforces Round 704 (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
1492 Codeforces Round 704 (Div. 2) FINISHED False 7200 123108863 Feb. 23, 2021, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6201 ) D Genius's Gambit PROGRAMMING bitmasks constructive algorithms math

B'You are given three integers a , b , k . Find two binary integers x and y ( x ge y ) such that The only line contains three integers a , b , and k ( 0 <= q a ; 1 <= q b ; 0 <= q k <= q a + b <= q 2 cdot 10^5 ) -- the number of zeroes, ones, and the number of ones in the result. If it 's possible to find two suitable integers, print "Yes" followed by x and y in base-2. Otherwise print "No". If there are multiple possible answers, print any of them. In the first example, x = 101000_2 = 2^5 + 2^3 = 40_{10} , y = 100001_2 = 2^5 + 2^0 = 33_{10} , 40_{10} - 33_{10} = 7_{10} = 2^2 + 2^1 + 2^0 = 111_{2} . Hence x-y has 3 ones in base-2. In the second example, x = 10100_2 = 2^4 + 2^2 = 20_{10} , y = 10010_2 = 2^4 + 2^1 = 18 , x - y = 20 - 18 = 2_{10} = 10_{2} . This is precisely one 1. In the third example, one may show, that it 's impossible to find an answer. '...

Tutorials

Codeforces Round #704 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
108307751 ruban D Feb. 23, 2021, 2:03 p.m. OK Delphi TESTS 91 46 1228800
108351397 ndocx D Feb. 24, 2021, 3:08 a.m. OK FPC TESTS 92 1075 409600
108307835 ruban D Feb. 23, 2021, 2:04 p.m. OK FPC TESTS 91 1201 1228800
108320387 rainboy D Feb. 23, 2021, 4:04 p.m. OK GNU C11 TESTS 92 46 409600
108310260 linpawsivsasay D Feb. 23, 2021, 2:26 p.m. OK GNU C11 TESTS 92 1357 0
108308669 _Leaving_ D Feb. 23, 2021, 2:11 p.m. OK GNU C++11 TESTS 91 15 204800
108323456 lszxj D Feb. 23, 2021, 4:36 p.m. OK GNU C++11 TESTS 92 15 409600
108318469 sxseven D Feb. 23, 2021, 3:43 p.m. OK GNU C++11 TESTS 92 15 512000
108349367 zhuzhuqm D Feb. 24, 2021, 2:14 a.m. OK GNU C++11 TESTS 92 15 512000
108320187 weddew D Feb. 23, 2021, 4:01 p.m. OK GNU C++11 TESTS 92 15 819200
108322951 SovietPower_ D Feb. 23, 2021, 4:30 p.m. OK GNU C++11 TESTS 92 15 819200
108346936 PsephurusGladius D Feb. 24, 2021, 12:57 a.m. OK GNU C++11 TESTS 92 15 1433600
108305874 REOI D Feb. 23, 2021, 1:47 p.m. OK GNU C++11 TESTS 91 30 0
108301044 WDCnew D Feb. 23, 2021, 1:11 p.m. OK GNU C++11 TESTS 91 30 0
108345510 zhangrh D Feb. 23, 2021, 11:49 p.m. OK GNU C++11 TESTS 92 30 0
108303975 nitvjudge3 D Feb. 23, 2021, 1:33 p.m. OK GNU C++14 TESTS 91 31 0
108336462 ammmy758000 D Feb. 23, 2021, 6:56 p.m. OK GNU C++14 TESTS 92 31 0
108302401 Kal-El D Feb. 23, 2021, 1:20 p.m. OK GNU C++14 TESTS 91 31 204800
108301969 vishaaaal D Feb. 23, 2021, 1:17 p.m. OK GNU C++14 TESTS 91 31 204800
108304204 BY_KUTBILIM D Feb. 23, 2021, 1:34 p.m. OK GNU C++14 TESTS 91 31 204800
108358436 byteeplus D Feb. 24, 2021, 5:14 a.m. OK GNU C++14 TESTS 92 31 409600
108332338 lazymaverick D Feb. 23, 2021, 5:54 p.m. OK GNU C++14 TESTS 92 31 409600
108328801 CarlosS48 D Feb. 23, 2021, 5:08 p.m. OK GNU C++14 TESTS 92 31 409600
108321777 rkb_rd D Feb. 23, 2021, 4:18 p.m. OK GNU C++14 TESTS 92 31 409600
108358697 t98slider D Feb. 24, 2021, 5:17 a.m. OK GNU C++14 TESTS 92 31 409600
108337940 _Al_Amin D Feb. 23, 2021, 7:23 p.m. OK GNU C++17 TESTS 92 30 512000
108352015 monzaid D Feb. 24, 2021, 3:22 a.m. OK GNU C++17 TESTS 92 31 0
108350117 WeLaker D Feb. 24, 2021, 2:37 a.m. OK GNU C++17 TESTS 92 31 0
108336017 Dart-Xeyter D Feb. 23, 2021, 6:49 p.m. OK GNU C++17 TESTS 92 31 0
108331982 kumasento D Feb. 23, 2021, 5:50 p.m. OK GNU C++17 TESTS 92 31 0
108328633 shubham581075 D Feb. 23, 2021, 5:06 p.m. OK GNU C++17 TESTS 92 31 0
108316597 Sugarnya D Feb. 23, 2021, 3:23 p.m. OK GNU C++17 TESTS 92 31 0
108308339 Anatoly.ig D Feb. 23, 2021, 2:09 p.m. OK GNU C++17 TESTS 91 31 307200
108352493 GouenjiShuuya D Feb. 24, 2021, 3:34 a.m. OK GNU C++17 TESTS 92 31 409600
108348261 abc864197532 D Feb. 24, 2021, 1:42 a.m. OK GNU C++17 TESTS 92 31 409600
108335931 Ziware D Feb. 23, 2021, 6:48 p.m. OK GNU C++17 (64) TESTS 92 30 921600
108300742 dev_202 D Feb. 23, 2021, 1:09 p.m. OK GNU C++17 (64) TESTS 91 31 0
108313596 abcde34534 D Feb. 23, 2021, 2:56 p.m. OK GNU C++17 (64) TESTS 92 31 0
108347359 ScarletS D Feb. 24, 2021, 1:12 a.m. OK GNU C++17 (64) TESTS 92 31 204800
108340957 smax D Feb. 23, 2021, 8:32 p.m. OK GNU C++17 (64) TESTS 92 31 307200
108345002 shenmadongdong D Feb. 23, 2021, 11:19 p.m. OK GNU C++17 (64) TESTS 92 31 409600
108361119 PaliLo D Feb. 24, 2021, 5:44 a.m. OK GNU C++17 (64) TESTS 92 31 409600
108360423 Soumya1 D Feb. 24, 2021, 5:36 a.m. OK GNU C++17 (64) TESTS 92 31 409600
108343168 kevin D Feb. 23, 2021, 9:43 p.m. OK GNU C++17 (64) TESTS 92 31 409600
108338502 Clueless D Feb. 23, 2021, 7:34 p.m. OK GNU C++17 (64) TESTS 92 31 409600
108313506 0x3F D Feb. 23, 2021, 2:55 p.m. OK Go TESTS 92 31 512000
108302977 sersht D Feb. 23, 2021, 1:25 p.m. OK Go TESTS 91 31 512000
108310220 0x3F D Feb. 23, 2021, 2:25 p.m. OK Go TESTS 92 46 512000
108325956 nirvana_rsc D Feb. 23, 2021, 4:50 p.m. OK Java 11 TESTS 92 186 0
108324085 nirvana_rsc D Feb. 23, 2021, 4:43 p.m. OK Java 11 TESTS 92 186 0
108340991 mennafadali D Feb. 23, 2021, 8:33 p.m. OK Java 11 TESTS 92 187 0
108323036 vineet16 D Feb. 23, 2021, 4:31 p.m. OK Java 11 TESTS 92 202 0
108304296 lazyhash D Feb. 23, 2021, 1:35 p.m. OK Java 11 TESTS 91 217 0
108321084 Dukkha D Feb. 23, 2021, 4:11 p.m. OK Java 11 TESTS 92 217 102400
108310024 zoro_hiyori D Feb. 23, 2021, 2:23 p.m. OK Java 11 TESTS 92 217 204800
108334846 decoder_1671 D Feb. 23, 2021, 6:30 p.m. OK Java 11 TESTS 92 233 13312000
108312472 sedenion D Feb. 23, 2021, 2:46 p.m. OK Java 11 TESTS 92 264 819200
108309710 dante1 D Feb. 23, 2021, 2:21 p.m. OK Java 8 TESTS 92 124 0
108305712 InANutshell D Feb. 23, 2021, 1:45 p.m. OK Java 8 TESTS 91 124 0
108335517 pramit1998 D Feb. 23, 2021, 6:40 p.m. OK Java 8 TESTS 92 124 0
108314314 Jetman D Feb. 23, 2021, 3:02 p.m. OK Java 8 TESTS 92 124 0
108314219 Eurus7 D Feb. 23, 2021, 3:01 p.m. OK Java 8 TESTS 92 124 0
108310499 dante1 D Feb. 23, 2021, 2:28 p.m. OK Java 8 TESTS 92 124 0
108300305 Blowy D Feb. 23, 2021, 1:07 p.m. OK Java 8 TESTS 91 139 0
108320271 Agnimandur D Feb. 23, 2021, 4:02 p.m. OK Java 8 TESTS 92 140 0
108320522 cpslayer D Feb. 23, 2021, 4:05 p.m. OK Java 8 TESTS 92 140 0
108308658 ag157 D Feb. 23, 2021, 2:11 p.m. OK Java 8 TESTS 91 140 0
108315083 catforce D Feb. 23, 2021, 3:09 p.m. OK Kotlin TESTS 92 155 512000
108301405 yakamoto D Feb. 23, 2021, 1:13 p.m. OK Kotlin TESTS 91 171 2048000
108342714 DMN D Feb. 23, 2021, 9:26 p.m. OK Mono C# TESTS 92 234 209612800
108302239 wanwanjiuhao7744 D Feb. 23, 2021, 1:19 p.m. OK MS C++ 2017 TESTS 91 31 716800
108348987 vanloc1808 D Feb. 24, 2021, 2:03 a.m. OK MS C++ 2017 TESTS 92 31 921600
108312023 Gravekper D Feb. 23, 2021, 2:42 p.m. OK MS C++ 2017 TESTS 92 31 921600
108303619 kernel.bin D Feb. 23, 2021, 1:30 p.m. OK MS C++ 2017 TESTS 91 46 0
108307794 yhyu D Feb. 23, 2021, 2:04 p.m. OK MS C++ 2017 TESTS 91 46 307200
108321680 9j51d D Feb. 23, 2021, 4:17 p.m. OK MS C++ 2017 TESTS 92 61 307200
108321242 9j51d D Feb. 23, 2021, 4:13 p.m. OK MS C++ 2017 TESTS 92 62 307200
108318694 dingzhao777 D Feb. 23, 2021, 3:45 p.m. OK MS C++ 2017 TESTS 92 77 1843200
108307720 praying_cqf D Feb. 23, 2021, 2:03 p.m. OK MS C++ 2017 TESTS 91 78 3481600
108311985 qing_lin D Feb. 23, 2021, 2:42 p.m. OK MS C++ 2017 TESTS 92 187 2969600
108323552 Arnyev D Feb. 23, 2021, 4:37 p.m. OK .NET Core C# TESTS 92 717 6451200
108338333 sayan_india D Feb. 23, 2021, 7:31 p.m. OK PyPy 2 TESTS 92 78 3686400
108304081 Vosatorp D Feb. 23, 2021, 1:34 p.m. OK PyPy 3 TESTS 91 109 4096000
108337743 david-mm D Feb. 23, 2021, 7:19 p.m. OK PyPy 3 TESTS 92 124 1843200
108306850 marcus.li D Feb. 23, 2021, 1:56 p.m. OK PyPy 3 TESTS 91 124 1945600
108335020 Aldenys D Feb. 23, 2021, 6:33 p.m. OK PyPy 3 TESTS 92 124 2150400
108308712 Shisuko D Feb. 23, 2021, 2:12 p.m. OK PyPy 3 TESTS 91 124 2150400
108300460 ryo_n D Feb. 23, 2021, 1:08 p.m. OK PyPy 3 TESTS 91 124 2252800
108304177 reddevil100 D Feb. 23, 2021, 1:34 p.m. OK PyPy 3 TESTS 91 124 2662400
108360451 brimstone D Feb. 24, 2021, 5:37 a.m. OK PyPy 3 TESTS 92 139 11059200
108306009 silvertint D Feb. 23, 2021, 1:48 p.m. OK PyPy 3 TESTS 91 140 2048000
108317983 prd_xxx D Feb. 23, 2021, 3:38 p.m. OK PyPy 3 TESTS 92 140 4915200
108353735 Ravivek080 D Feb. 24, 2021, 4:04 a.m. OK Python 3 TESTS 92 62 1024000
108336931 andy920262 D Feb. 23, 2021, 7:04 p.m. OK Python 3 TESTS 92 62 1024000
108318522 Serzhan D Feb. 23, 2021, 3:43 p.m. OK Python 3 TESTS 92 62 1024000
108337833 sayan_india D Feb. 23, 2021, 7:20 p.m. OK Python 3 TESTS 92 62 1228800
108312163 NamelessOIer D Feb. 23, 2021, 2:43 p.m. OK Python 3 TESTS 92 77 1024000
108344573 iamsarvesh D Feb. 23, 2021, 10:51 p.m. OK Python 3 TESTS 92 77 1228800
108338739 god_gyeol D Feb. 23, 2021, 7:39 p.m. OK Python 3 TESTS 92 77 1433600
108329832 appmnit D Feb. 23, 2021, 5:21 p.m. OK Python 3 TESTS 92 77 1433600
108321589 sh1194 D Feb. 23, 2021, 4:16 p.m. OK Python 3 TESTS 92 77 1843200
108341758 abhishek.maletha2000 D Feb. 23, 2021, 8:56 p.m. OK Python 3 TESTS 92 139 1331200
108313076 kronos D Feb. 23, 2021, 2:51 p.m. OK Ruby 3 TESTS 92 311 1843200
108315914 apilat D Feb. 23, 2021, 3:17 p.m. OK Rust TESTS 92 31 1843200

remove filters

Back to search problems