Codeforces Round 435 (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
862 Codeforces Round 435 (Div. 2) FINISHED False 7200 225989699 Sept. 19, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4098 ) C Mahmoud and Ehab and the xor PROGRAMMING constructive algorithms 1800

B'Mahmoud and Ehab are on the third stage of their adventures now. As you know, Dr. Evil likes sets. This time he won 't show them any set from his large collection, but will ask them to create a new set to replenish his beautiful collection of sets. Dr. Evil has his favorite evil integer x. He asks Mahmoud and Ehab to find a set of n distinct non-negative integers such the bitwise-xor sum of the integers in it is exactly x. Dr. Evil doesn 't like big numbers, so any number in the set shouldn 't be greater than 106. The only line contains two integers n and x (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the number of elements in the set and the desired bitwise-xor, respectively. If there is no such set, print "NO" (without quotes). Otherwise, on the first line print "YES" (without quotes) and on the second line print n distinct integers, denoting the elements in the set is any order. If there are multiple solutions you can print any of them. You can read more about the bitwise-xor operation here: https://en.wikipedia.org/wiki/Bitwise_operation#XOR For the first sample . For the second sample . '...

Tutorials

Codeforces round #435 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
51612267 rr_ C March 21, 2019, 10:59 a.m. OK D TESTS 44 31 4198400 1800
56756333 LaSWeeG C July 9, 2019, 2:04 p.m. OK Delphi TESTS 44 46 0 1800
30524979 ruban C Sept. 19, 2017, 6 p.m. OK Delphi TESTS 44 46 32051200 1800
30956663 KagamiharaNadeshiko C Oct. 3, 2017, 3:06 a.m. OK FPC TESTS 44 171 409600 1800
30903469 Polzovatel C Oct. 1, 2017, 8:40 a.m. OK FPC TESTS 44 187 0 1800
30532712 Qambitions C Sept. 20, 2017, 2:20 a.m. OK FPC TESTS 44 202 0 1800
30524665 codemart786 C Sept. 19, 2017, 5:53 p.m. OK GNU C TESTS 44 31 0 1800
30513184 congmingyige C Sept. 19, 2017, 3:58 p.m. OK GNU C TESTS 44 31 0 1800
30547434 wzp233 C Sept. 20, 2017, 1:46 p.m. OK GNU C++ TESTS 44 15 0 1800
30548066 djq_cpp C Sept. 20, 2017, 2:07 p.m. OK GNU C++ TESTS 44 30 0 1800
30539392 vjudge5 C Sept. 20, 2017, 9:04 a.m. OK GNU C++ TESTS 44 30 0 1800
32287342 KMAASZRAA C Nov. 13, 2017, 2:50 p.m. OK GNU C++ TESTS 44 30 0 1800
30572249 GFZRZK C Sept. 21, 2017, 9:22 a.m. OK GNU C++ TESTS 44 30 102400 1800
30655750 mr_psns C Sept. 24, 2017, 2:45 a.m. OK GNU C++ TESTS 44 30 409600 1800
31295319 Scut82 C Oct. 14, 2017, 8:38 a.m. OK GNU C++ TESTS 44 30 819200 1800
31470540 Ozem C Oct. 18, 2017, 6:32 a.m. OK GNU C++ TESTS 44 30 1945600 1800
41417954 vjudge5 C Aug. 10, 2018, 5:39 a.m. OK GNU C++ TESTS 44 31 0 1800
32161842 vjudge5 C Nov. 9, 2017, 3:10 p.m. OK GNU C++ TESTS 44 31 0 1800
31535375 lxdlam C Oct. 20, 2017, 1:52 p.m. OK GNU C11 TESTS 44 452 1945600 1800
30514167 DeadMan C Sept. 19, 2017, 4:05 p.m. OK GNU C++11 TESTS 44 30 0 1800
30527904 nikola12345 C Sept. 19, 2017, 7:40 p.m. OK GNU C++11 TESTS 44 30 0 1800
30512019 mouse_wireless C Sept. 19, 2017, 3:51 p.m. OK GNU C++11 TESTS 44 30 204800 1800
30634493 Hacheylight C Sept. 23, 2017, 7:44 a.m. OK GNU C++11 TESTS 44 30 409600 1800
30513610 __math C Sept. 19, 2017, 4:01 p.m. OK GNU C++11 TESTS 44 30 1126400 1800
31575923 Toxel C Oct. 21, 2017, 1:29 p.m. OK GNU C++11 TESTS 44 30 2048000 1800
31386218 hitwhwu C Oct. 16, 2017, 9:01 a.m. OK GNU C++11 TESTS 44 30 3481600 1800
68857663 MengWH C Jan. 15, 2020, 11:07 a.m. OK GNU C++11 TESTS 44 31 0 1800
61583014 luogu_bot2 C Oct. 1, 2019, 3:11 a.m. OK GNU C++11 TESTS 44 31 0 1800
51928290 dummyummy C March 28, 2019, 8:56 a.m. OK GNU C++11 TESTS 44 31 0 1800
30727476 bonfire C Sept. 25, 2017, 1:57 p.m. OK GNU C++14 TESTS 44 15 0 1800
32110966 Verjok C Nov. 7, 2017, 6:22 a.m. OK GNU C++14 TESTS 44 15 0 1800
31735915 themsp C Oct. 26, 2017, 11:03 a.m. OK GNU C++14 TESTS 44 15 0 1800
31108966 Dmitriy.Belichenko C Oct. 7, 2017, 9:50 a.m. OK GNU C++14 TESTS 44 15 0 1800
31005342 gbuenoandrade C Oct. 5, 2017, 1:32 a.m. OK GNU C++14 TESTS 44 15 0 1800
30878008 md_08 C Sept. 30, 2017, 5:53 p.m. OK GNU C++14 TESTS 44 15 0 1800
30781612 Lucky__Boy C Sept. 27, 2017, 3:43 p.m. OK GNU C++14 TESTS 44 15 0 1800
30756153 nimom C Sept. 26, 2017, 4:02 p.m. OK GNU C++14 TESTS 44 15 0 1800
30624438 rustamkkk C Sept. 22, 2017, 7:43 p.m. OK GNU C++14 TESTS 44 15 0 1800
30600405 Rabahjamal C Sept. 21, 2017, 9:10 p.m. OK GNU C++14 TESTS 44 15 0 1800
68846670 vjudge2 C Jan. 15, 2020, 7:38 a.m. OK GNU C++17 TESTS 44 31 0 1800
68730184 Theaktis C Jan. 13, 2020, 7:42 p.m. OK GNU C++17 TESTS 44 31 0 1800
68207825 sohailk1999 C Jan. 4, 2020, 6:02 p.m. OK GNU C++17 TESTS 44 31 0 1800
66060140 yuhta C Nov. 30, 2019, 7:15 p.m. OK GNU C++17 TESTS 44 31 0 1800
61337352 kaizen_ C Sept. 26, 2019, 5:13 p.m. OK GNU C++17 TESTS 44 31 0 1800
55967075 hardikdua C June 23, 2019, 12:43 p.m. OK GNU C++17 TESTS 44 31 0 1800
51945510 BlueBlade C March 28, 2019, 4:42 p.m. OK GNU C++17 TESTS 44 31 0 1800
51353765 vjudge5 C March 16, 2019, 2:07 a.m. OK GNU C++17 TESTS 44 31 0 1800
49968205 Mohamed.Sobhy C Feb. 15, 2019, 10:40 p.m. OK GNU C++17 TESTS 44 31 0 1800
69217895 ST_C C Jan. 21, 2020, 2:29 a.m. OK GNU C++17 TESTS 44 31 0 1800
30525207 smalex69 C Sept. 19, 2017, 6:06 p.m. OK Go TESTS 44 31 24576000 1800
30525148 smalex69 C Sept. 19, 2017, 6:05 p.m. OK Go TESTS 44 31 28876800 1800
30525335 smalex69 C Sept. 19, 2017, 6:10 p.m. OK Go TESTS 44 78 27443200 1800
30525244 smalex69 C Sept. 19, 2017, 6:08 p.m. OK Go TESTS 44 93 19968000 1800
30523389 smalex69 C Sept. 19, 2017, 5:32 p.m. OK Go TESTS 44 93 28057600 1800
30523452 smalex69 C Sept. 19, 2017, 5:33 p.m. OK Go TESTS 44 108 28876800 1800
30913912 sl0th C Oct. 1, 2017, 4:26 p.m. OK Haskell TESTS 44 31 12800000 1800
47270799 tonychiang C Dec. 19, 2018, 4:33 p.m. OK Haskell TESTS 44 46 8499200 1800
30801055 rahulkhairwar C Sept. 28, 2017, 10:13 a.m. OK Java 8 TESTS 44 124 0 1800
59453324 mennafadali C Aug. 25, 2019, 2:43 p.m. OK Java 8 TESTS 44 124 0 1800
53211786 icpc_loser C April 24, 2019, 6:01 a.m. OK Java 8 TESTS 44 124 0 1800
31830120 gamezovladislav C Oct. 28, 2017, 9:07 a.m. OK Java 8 TESTS 44 124 0 1800
31150577 AnDDen C Oct. 8, 2017, 5:07 p.m. OK Java 8 TESTS 44 124 0 1800
30656867 coderbond007 C Sept. 24, 2017, 5:01 a.m. OK Java 8 TESTS 44 124 0 1800
30650760 Z_E_R_0 C Sept. 23, 2017, 6:07 p.m. OK Java 8 TESTS 44 124 0 1800
30624589 mezradiniz C Sept. 22, 2017, 7:54 p.m. OK Java 8 TESTS 44 124 0 1800
30578624 Lerto C Sept. 21, 2017, 1:13 p.m. OK Java 8 TESTS 44 124 0 1800
30565512 Psp_98 C Sept. 21, 2017, 2:01 a.m. OK Java 8 TESTS 44 124 0 1800
30598453 kasperskei C Sept. 21, 2017, 7:44 p.m. OK Kotlin TESTS 44 452 1024000 1800
30511449 riantkb C Sept. 19, 2017, 3:48 p.m. OK Mono C# TESTS 44 61 6144000 1800
30547178 kuuso C Sept. 20, 2017, 1:38 p.m. OK Mono C# TESTS 44 77 8601600 1800
30526430 og.kostya C Sept. 19, 2017, 6:45 p.m. OK MS C# TESTS 44 61 2969600 1800
30624089 leonidvasilyev C Sept. 22, 2017, 7:22 p.m. OK MS C# TESTS 44 62 8192000 1800
30689431 lionvs13 C Sept. 24, 2017, 7:48 p.m. OK MS C# TESTS 44 62 8704000 1800
30598464 leonidvasilyev C Sept. 21, 2017, 7:45 p.m. OK MS C# TESTS 44 77 8192000 1800
30625048 leonidvasilyev C Sept. 22, 2017, 8:22 p.m. OK MS C# TESTS 44 78 10547200 1800
30528982 AdMiRaLL C Sept. 19, 2017, 8:38 p.m. OK MS C# TESTS 44 78 12800000 1800
30523477 Zvigintsev C Sept. 19, 2017, 5:33 p.m. OK MS C# TESTS 44 233 3072000 1800
30638754 Crasher56 C Sept. 23, 2017, 10:52 a.m. OK MS C# TESTS 44 248 3993600 1800
30511475 Mithridat C Sept. 19, 2017, 3:48 p.m. OK MS C++ TESTS 44 31 0 1800
30615733 a19160293 C Sept. 22, 2017, 1:26 p.m. OK MS C++ TESTS 44 31 204800 1800
30540549 dmmmmmm C Sept. 20, 2017, 9:58 a.m. OK MS C++ TESTS 44 31 614400 1800
30578805 SmallSir C Sept. 21, 2017, 1:18 p.m. OK MS C++ TESTS 44 31 614400 1800
50278615 vjudge3 C Feb. 21, 2019, 11:35 a.m. OK MS C++ TESTS 44 31 1024000 1800
30610601 siscos C Sept. 22, 2017, 9:39 a.m. OK MS C++ TESTS 44 31 1433600 1800
30580817 jintian1529 C Sept. 21, 2017, 2:34 p.m. OK MS C++ TESTS 44 31 1740800 1800
35992787 32122 C March 6, 2018, 1:15 p.m. OK MS C++ TESTS 44 31 6041600 1800
68857691 vjudge2 C Jan. 15, 2020, 11:08 a.m. OK MS C++ TESTS 44 46 0 1800
54633062 ys1468362286 C May 25, 2019, 3:27 p.m. OK MS C++ TESTS 44 46 0 1800
30798440 s_p C Sept. 28, 2017, 8:10 a.m. OK Perl TESTS 44 77 11776000 1800
31936697 CyberZHG C Nov. 1, 2017, 2:21 a.m. OK PyPy 2 TESTS 44 77 3891200 1800
30605670 cchao C Sept. 22, 2017, 4:40 a.m. OK PyPy 2 TESTS 44 108 6860800 1800
30523867 derbaer C Sept. 19, 2017, 5:39 p.m. OK PyPy 2 TESTS 44 155 9523200 1800
56166445 raj1307 C June 27, 2019, 2:29 p.m. OK PyPy 2 TESTS 44 171 2150400 1800
56160925 raj1307 C June 27, 2019, 12:17 p.m. OK PyPy 2 TESTS 44 187 2150400 1800
31147112 shub.jain C Oct. 8, 2017, 2:42 p.m. OK PyPy 2 TESTS 44 685 614400 1800
34460278 SerChirag C Jan. 22, 2018, 8:50 p.m. OK PyPy 2 TESTS 44 701 23244800 1800
30514732 WileE.Coyote C Sept. 19, 2017, 4:09 p.m. OK PyPy 2 TESTS 44 764 28364800 1800
39681103 Ali_Pi C June 26, 2018, 4:36 p.m. OK PyPy 2 TESTS 44 889 13004800 1800
30695995 Marii C Sept. 25, 2017, 5:39 a.m. OK PyPy 3 TESTS 44 170 7372800 1800
30688655 cugel C Sept. 24, 2017, 7:15 p.m. OK PyPy 3 TESTS 44 171 10444800 1800
60352331 deadguy C Sept. 10, 2019, 2:46 p.m. OK PyPy 3 TESTS 44 202 7680000 1800
59872410 _rdv_ C Sept. 1, 2019, 8:10 p.m. OK PyPy 3 TESTS 44 202 8396800 1800
30540701 metamemelord C Sept. 20, 2017, 10:04 a.m. OK PyPy 3 TESTS 44 264 5836800 1800
30734887 fortmax120 C Sept. 25, 2017, 8:44 p.m. OK Python 2 TESTS 44 77 6041600 1800
30665400 songzy12 C Sept. 24, 2017, 12:14 p.m. OK Python 2 TESTS 44 108 1638400 1800
30515251 nwi C Sept. 19, 2017, 4:12 p.m. OK Python 2 TESTS 44 109 0 1800
30549238 EON_KID C Sept. 20, 2017, 2:46 p.m. OK Python 2 TESTS 44 109 3788800 1800
33449340 mngharbi C Dec. 20, 2017, 8:12 a.m. OK Python 2 TESTS 44 124 6348800 1800
30526756 ashashwat C Sept. 19, 2017, 6:57 p.m. OK Python 2 TESTS 44 139 7987200 1800
40829441 Djok216 C July 27, 2018, 5:03 a.m. OK Python 2 TESTS 44 218 8499200 1800
30523426 2390_ C Sept. 19, 2017, 5:33 p.m. OK Python 2 TESTS 44 343 31846400 1800
30524295 denny_sem C Sept. 19, 2017, 5:46 p.m. OK Python 3 TESTS 44 93 7065600 1800
30713766 yugle7 C Sept. 25, 2017, 11:34 a.m. OK Python 3 TESTS 44 93 8396800 1800
30516170 hahho C Sept. 19, 2017, 4:19 p.m. OK Python 3 TESTS 44 109 5120000 1800
30539704 dhruvsomani C Sept. 20, 2017, 9:20 a.m. OK Python 3 TESTS 44 109 7168000 1800
30516702 kwangg C Sept. 19, 2017, 4:23 p.m. OK Python 3 TESTS 44 109 7475200 1800
30717973 yugle7 C Sept. 25, 2017, 12:03 p.m. OK Python 3 TESTS 44 109 7987200 1800
33749421 waterfalls C Dec. 29, 2017, 3:29 a.m. OK Python 3 TESTS 44 109 13107200 1800
30535639 czsun C Sept. 20, 2017, 5:55 a.m. OK Python 3 TESTS 44 124 7065600 1800
31231506 Firepaw C Oct. 12, 2017, 3:40 a.m. OK Python 3 TESTS 44 124 7680000 1800
30602540 nns2009 C Sept. 21, 2017, 11:09 p.m. OK Python 3 TESTS 44 124 7680000 1800
30529044 ShJ C Sept. 19, 2017, 8:42 p.m. OK Ruby TESTS 44 124 0 1800
31156613 IvanDyachenko C Oct. 8, 2017, 11:27 p.m. OK Scala TESTS 44 499 3481600 1800

remove filters

Back to search problems