Codeforces Round 628 (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
1325 Codeforces Round 628 (Div. 2) FINISHED False 7200 153156311 March 14, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12299 ) D Ehab the Xorcist PROGRAMMING bitmasks constructive algorithms greedy number theory 1700

B'Given 2 integers u and v , find the shortest array such that bitwise-xor of its elements is u , and the sum of its elements is v . The only line contains 2 integers u and v (0 <= u,v <= 10^{18}) . If there 's no array that satisfies the condition, print "-1". Otherwise: The first line should contain one integer, n , representing the length of the desired array. The next line should contain n positive integers, the array itself. If there are multiple possible answers, print any. In the first sample, 3 oplus 1 = 2 and 3 + 1 = 4 . There is no valid array of smaller length. Notice that in the fourth sample the array is empty. '...

Tutorials

74235

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
73350276 aravind.nujella D March 15, 2020, 4:09 p.m. OK Clang++17 Diagnostics TESTS 61 46 0 1700
73267610 daut-dlang D March 14, 2020, 4:20 p.m. OK D TESTS 61 31 0 1700
73266680 TheHedgehog D March 14, 2020, 4:17 p.m. OK Delphi TESTS 61 46 0 1700
73449559 vjudge4 D March 17, 2020, 2:35 a.m. OK FPC TESTS 61 31 204800 1700
73286219 SUNNY24 D March 14, 2020, 8:18 p.m. OK GNU C11 TESTS 61 31 0 1700
73257515 rainboy D March 14, 2020, 3:46 p.m. OK GNU C11 TESTS 61 31 0 1700
73258689 pengin_2000 D March 14, 2020, 3:49 p.m. OK GNU C11 TESTS 61 31 0 1700
73380591 HWJkarry D March 16, 2020, 4:51 a.m. OK GNU C11 TESTS 61 31 0 1700
73295451 755352046 D March 15, 2020, 1:10 a.m. OK GNU C11 TESTS 61 31 0 1700
73295347 755352046 D March 15, 2020, 1:06 a.m. OK GNU C11 TESTS 61 31 0 1700
73310689 PoRain D March 15, 2020, 7:03 a.m. OK GNU C++11 TESTS 61 30 0 1700
73279212 CoolBANGstone D March 14, 2020, 6:32 p.m. OK GNU C++11 TESTS 61 30 0 1700
73272532 golder_ D March 14, 2020, 4:34 p.m. OK GNU C++11 TESTS 61 30 0 1700
73267716 spnooyseed D March 14, 2020, 4:20 p.m. OK GNU C++11 TESTS 61 30 0 1700
73266879 gheorghe_armand D March 14, 2020, 4:17 p.m. OK GNU C++11 TESTS 61 30 0 1700
73263688 lin_rany D March 14, 2020, 4:06 p.m. OK GNU C++11 TESTS 61 30 0 1700
73345058 OuDaRjA_17o3oo2 D March 15, 2020, 2:55 p.m. OK GNU C++11 TESTS 61 30 0 1700
73807245 violen D March 20, 2020, 3:35 p.m. OK GNU C++11 TESTS 61 31 0 1700
73828191 Average_brain D March 20, 2020, 7:30 p.m. OK GNU C++11 TESTS 61 31 0 1700
73797762 purple_rAin D March 20, 2020, 1:41 p.m. OK GNU C++11 TESTS 61 31 0 1700
73603539 s1d_garg D March 18, 2020, 7:26 p.m. OK GNU C++14 TESTS 61 15 0 1700
73471560 kardeepak D March 17, 2020, 9:59 a.m. OK GNU C++14 TESTS 61 15 0 1700
73424687 flybeyondclouds D March 16, 2020, 4:41 p.m. OK GNU C++14 TESTS 61 30 0 1700
73423016 theharshit3 D March 16, 2020, 4:17 p.m. OK GNU C++14 TESTS 61 30 0 1700
73578626 rachelmoore D March 18, 2020, 2:19 p.m. OK GNU C++14 TESTS 61 30 0 1700
73492232 Sinanck D March 17, 2020, 1:58 p.m. OK GNU C++14 TESTS 61 30 0 1700
73482549 tj-black D March 17, 2020, 12:19 p.m. OK GNU C++14 TESTS 61 30 0 1700
73456185 _one_noob D March 17, 2020, 5:53 a.m. OK GNU C++14 TESTS 61 30 0 1700
73429221 AOI2020 D March 16, 2020, 5:41 p.m. OK GNU C++14 TESTS 61 30 0 1700
73825070 Lazy_lad D March 20, 2020, 6:54 p.m. OK GNU C++14 TESTS 61 30 0 1700
73545174 ravik1 D March 18, 2020, 6:52 a.m. OK GNU C++17 TESTS 61 15 0 1700
73559815 zgsdr0620 D March 18, 2020, 10:25 a.m. OK GNU C++17 TESTS 61 15 0 1700
73618703 JujuMas AgustinM D March 19, 2020, 2:45 a.m. OK GNU C++17 TESTS 61 15 0 1700
73285328 DEKU_ D March 14, 2020, 8:02 p.m. OK GNU C++17 TESTS 61 15 204800 1700
73649875 Harshil_Goti_2209 D March 19, 2020, 11:56 a.m. OK GNU C++17 TESTS 61 30 0 1700
73790902 Vin__ar D March 20, 2020, 12:19 p.m. OK GNU C++17 TESTS 61 30 0 1700
73780887 DD_BOND D March 20, 2020, 10:02 a.m. OK GNU C++17 TESTS 61 30 0 1700
73773698 sahil990 D March 20, 2020, 8:21 a.m. OK GNU C++17 TESTS 61 30 0 1700
73651143 Domeanor D March 19, 2020, 12:14 p.m. OK GNU C++17 TESTS 61 30 0 1700
73616140 SmartyPants D March 19, 2020, 1:05 a.m. OK GNU C++17 TESTS 61 30 0 1700
73267835 Jughead D March 14, 2020, 4:20 p.m. OK Go TESTS 61 61 0 1700
73301203 Airflow D March 15, 2020, 4:18 a.m. OK Haskell TESTS 61 124 102400 1700
73529052 lightseba D March 17, 2020, 11:15 p.m. OK Java 11 TESTS 61 187 0 1700
73471981 pennyIsLove D March 17, 2020, 10:05 a.m. OK Java 11 TESTS 61 202 0 1700
73286681 dkcs D March 14, 2020, 8:27 p.m. OK Java 11 TESTS 61 202 0 1700
73277900 noahlewis.ca D March 14, 2020, 6:19 p.m. OK Java 11 TESTS 61 202 0 1700
73257420 lightseba D March 14, 2020, 3:45 p.m. OK Java 11 TESTS 61 202 0 1700
73445770 polyakoff D March 16, 2020, 11:54 p.m. OK Java 11 TESTS 61 217 0 1700
73372792 Kharouba D March 15, 2020, 11:21 p.m. OK Java 11 TESTS 61 217 0 1700
73282436 Kimo_Fathy D March 14, 2020, 7:15 p.m. OK Java 11 TESTS 61 217 0 1700
73547975 Azakarka D March 18, 2020, 7:33 a.m. OK Java 11 TESTS 61 218 0 1700
73373310 jenish9599 D March 15, 2020, 11:47 p.m. OK Java 11 TESTS 61 218 0 1700
73803623 sarthakmanna D March 20, 2020, 2:52 p.m. OK Java 8 TESTS 61 109 0 1700
73544168 codegeekabhi D March 18, 2020, 6:37 a.m. OK Java 8 TESTS 61 109 0 1700
73536501 18bce002 D March 18, 2020, 3:54 a.m. OK Java 8 TESTS 61 109 0 1700
73508630 dhiren_10 D March 17, 2020, 5:09 p.m. OK Java 8 TESTS 61 109 0 1700
73391703 Shaman_King D March 16, 2020, 8:34 a.m. OK Java 8 TESTS 61 109 0 1700
73381498 akash18tripathi D March 16, 2020, 5:14 a.m. OK Java 8 TESTS 61 109 0 1700
73338157 Jonathan1234 D March 15, 2020, 1:27 p.m. OK Java 8 TESTS 61 109 0 1700
73312180 adarsh000321 D March 15, 2020, 7:26 a.m. OK Java 8 TESTS 61 109 0 1700
73291763 yuruiyin D March 14, 2020, 10:37 p.m. OK Java 8 TESTS 61 109 0 1700
73287139 Ahmed_Diab D March 14, 2020, 8:37 p.m. OK Java 8 TESTS 61 109 0 1700
73406725 SlavaG D March 16, 2020, 12:24 p.m. OK Kotlin TESTS 61 140 0 1700
73407471 Spheniscine D March 16, 2020, 12:34 p.m. OK Kotlin TESTS 61 140 409600 1700
73388900 Spheniscine D March 16, 2020, 7:46 a.m. OK Kotlin TESTS 61 155 819200 1700
73258181 jonas.havelka.42 D March 14, 2020, 3:48 p.m. OK Kotlin TESTS 61 156 102400 1700
73453922 de_loo D March 17, 2020, 5:04 a.m. OK Mono C# TESTS 61 46 0 1700
73263723 sergmel D March 14, 2020, 4:06 p.m. OK Mono C# TESTS 61 62 0 1700
73270681 eki D March 14, 2020, 4:29 p.m. OK Mono C# TESTS 61 62 0 1700
73263465 fucking_man D March 14, 2020, 4:06 p.m. OK MS C++ TESTS 61 31 0 1700
73263230 tarattata1 D March 14, 2020, 4:05 p.m. OK MS C++ TESTS 61 31 0 1700
73560769 vjudge4 D March 18, 2020, 10:40 a.m. OK MS C++ TESTS 61 31 0 1700
73568055 vjudge2 D March 18, 2020, 12:17 p.m. OK MS C++ TESTS 61 31 0 1700
73464918 vjudge1 D March 17, 2020, 8:15 a.m. OK MS C++ TESTS 61 31 0 1700
73408361 vjudge4 D March 16, 2020, 12:47 p.m. OK MS C++ TESTS 61 31 0 1700
73379591 vjudge1 D March 16, 2020, 4:18 a.m. OK MS C++ TESTS 61 46 0 1700
73278735 vjudge5 D March 14, 2020, 6:27 p.m. OK MS C++ TESTS 61 46 0 1700
73391366 seh631638554 D March 16, 2020, 8:29 a.m. OK MS C++ TESTS 61 46 0 1700
73401721 vjudge4 D March 16, 2020, 11:14 a.m. OK MS C++ TESTS 61 46 819200 1700
73257531 15880711007 D March 14, 2020, 3:46 p.m. OK MS C++ 2017 TESTS 61 31 0 1700
73344793 salehsargolzaee D March 15, 2020, 2:52 p.m. OK MS C++ 2017 TESTS 61 31 0 1700
73297886 happy_cf D March 15, 2020, 2:37 a.m. OK MS C++ 2017 TESTS 61 31 0 1700
73271562 s1mp1e D March 14, 2020, 4:32 p.m. OK MS C++ 2017 TESTS 61 31 0 1700
73270354 0Mordecai0 D March 14, 2020, 4:29 p.m. OK MS C++ 2017 TESTS 61 31 0 1700
73259073 anon20016 D March 14, 2020, 3:51 p.m. OK MS C++ 2017 TESTS 61 31 0 1700
73491663 psb2942 D March 17, 2020, 1:51 p.m. OK MS C++ 2017 TESTS 61 31 307200 1700
73596514 kaustav1 D March 18, 2020, 5:50 p.m. OK MS C++ 2017 TESTS 61 31 307200 1700
73798671 UAV D March 20, 2020, 1:52 p.m. OK MS C++ 2017 TESTS 61 31 307200 1700
73509547 corat D March 17, 2020, 5:20 p.m. OK MS C++ 2017 TESTS 61 31 307200 1700
73440895 shivam1420 D March 16, 2020, 9:07 p.m. OK Node.js TESTS 61 186 1638400 1700
73309682 peijinz D March 15, 2020, 6:49 a.m. OK PyPy 2 TESTS 61 139 0 1700
73282169 raj1307 D March 14, 2020, 7:11 p.m. OK PyPy 2 TESTS 61 139 307200 1700
73278651 snape_here D March 14, 2020, 6:26 p.m. OK PyPy 2 TESTS 61 140 307200 1700
73411723 jolt.tks D March 16, 2020, 1:35 p.m. OK PyPy 2 TESTS 61 155 0 1700
73543915 yumtam D March 18, 2020, 6:34 a.m. OK PyPy 2 TESTS 61 171 102400 1700
73306807 Gaurav1 D March 15, 2020, 6:04 a.m. OK PyPy 2 TESTS 61 171 614400 1700
73271749 your_Daddy___ D March 14, 2020, 4:32 p.m. OK PyPy 2 TESTS 61 171 921600 1700
73262673 shehebe D March 14, 2020, 4:03 p.m. OK PyPy 2 TESTS 61 171 1228800 1700
73347988 ss7890 D March 15, 2020, 3:36 p.m. OK PyPy 3 TESTS 61 140 0 1700
73603033 aimbot D March 18, 2020, 7:18 p.m. OK PyPy 3 TESTS 61 140 0 1700
73574935 shelam D March 18, 2020, 1:37 p.m. OK PyPy 3 TESTS 61 140 0 1700
73563594 dinesh9547 D March 18, 2020, 11:20 a.m. OK PyPy 3 TESTS 61 140 0 1700
73473177 thekushalghosh D March 17, 2020, 10:24 a.m. OK PyPy 3 TESTS 61 140 0 1700
73456692 siddhantgarg11 D March 17, 2020, 6:02 a.m. OK PyPy 3 TESTS 61 140 0 1700
73436377 priyankrastogi14 D March 16, 2020, 7:33 p.m. OK PyPy 3 TESTS 61 140 0 1700
73395424 dhruva_shashi D March 16, 2020, 9:34 a.m. OK PyPy 3 TESTS 61 140 0 1700
73376000 twbbbb D March 16, 2020, 2 a.m. OK PyPy 3 TESTS 61 140 0 1700
73298380 Canoe D March 15, 2020, 2:52 a.m. OK PyPy 3 TESTS 61 140 0 1700
73308675 aniket11 D March 15, 2020, 6:34 a.m. OK Python 2 TESTS 61 186 0 1700
73429244 Amandio D March 16, 2020, 5:42 p.m. OK Python 2 TESTS 61 187 0 1700
73279606 bertrandovide D March 14, 2020, 6:37 p.m. OK Python 2 TESTS 61 187 0 1700
73270402 r.zay699 D March 14, 2020, 4:29 p.m. OK Python 2 TESTS 61 202 0 1700
73489910 BUCT_WynnLu D March 17, 2020, 1:31 p.m. OK Python 3 TESTS 61 109 0 1700
73417786 bhavik07 D March 16, 2020, 3:08 p.m. OK Python 3 TESTS 61 109 0 1700
73363879 aakarsh D March 15, 2020, 7:26 p.m. OK Python 3 TESTS 61 109 0 1700
73347022 m80126colin D March 15, 2020, 3:23 p.m. OK Python 3 TESTS 61 109 0 1700
73322518 _tool_ D March 15, 2020, 9:58 a.m. OK Python 3 TESTS 61 109 0 1700
73478105 blackscholar D March 17, 2020, 11:32 a.m. OK Python 3 TESTS 61 109 307200 1700
73453748 vegetablesandwich D March 17, 2020, 5 a.m. OK Python 3 TESTS 61 109 307200 1700
73451266 siddharthsngh D March 17, 2020, 3:37 a.m. OK Python 3 TESTS 61 109 307200 1700
73390560 krish237 D March 16, 2020, 8:15 a.m. OK Python 3 TESTS 61 109 307200 1700
73354495 mr_jt D March 15, 2020, 4:58 p.m. OK Python 3 TESTS 61 109 307200 1700
73270169 simanman D March 14, 2020, 4:28 p.m. OK Ruby TESTS 61 62 204800 1700
73484389 manta1130 D March 17, 2020, 12:34 p.m. OK Rust TESTS 61 31 0 1700
73444401 thescripter D March 16, 2020, 10:58 p.m. OK Rust TESTS 61 31 0 1700
73288770 rustafarian D March 14, 2020, 9:13 p.m. OK Rust TESTS 61 31 0 1700
73279112 toterpinguin D March 14, 2020, 6:31 p.m. OK Rust TESTS 61 31 0 1700
73621640 sansen D March 19, 2020, 4:22 a.m. OK Rust TESTS 61 46 0 1700
73304531 loujunjie D March 15, 2020, 5:28 a.m. OK Rust TESTS 61 46 0 1700
73571973 cotton100pc D March 18, 2020, 1:03 p.m. OK Rust TESTS 61 46 204800 1700
73287251 BadDuck D March 14, 2020, 8:39 p.m. OK Scala TESTS 61 468 0 1700

remove filters

Back to search problems