Codeforces Round 817 (Div. 4)

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
1722 Codeforces Round 817 (Div. 4) FINISHED False 8100 75308963 Aug. 30, 2022, 2:50 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11903 ) G Even-Odd XOR PROGRAMMING bitmasks constructive algorithms greedy 1500

B'Given an integer n , find any array a of n distinct nonnegative integers less than 2^{31} such that the bitwise XOR of the elements on odd indices equals the bitwise XOR of the elements on even indices. The first line of the input contains an integer t ( 1 <= q t <= q 629 ) -- the number of test cases. Then t lines follow, each containing a single integer n (3 <= q n <= q 2 cdot10^5) -- the length of the array. It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case, output one line containing n distinct integers that satisfy the conditions. If there are multiple answers, you can output any of them. In the first test case the XOR on odd indices is 4 oplus 1 oplus 0 oplus 7 = 2 and the XOR on even indices is 2 oplus 5 oplus 6 oplus 3= 2 . '...

Tutorials

106478

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
170348461 bluemegane G Aug. 31, 2022, 5:38 a.m. OK C# 8 TESTS 10 140 13824000 1500
170377223 StringBoy G Aug. 31, 2022, 11:22 a.m. OK Clang++17 Diagnostics TESTS 10 608 0 1500
170390602 XiaoDou G Aug. 31, 2022, 1:24 p.m. OK GNU C11 TESTS 10 795 0 1500
170359663 vjudge1 G Aug. 31, 2022, 8:02 a.m. OK GNU C11 TESTS 10 795 0 1500
170378753 hemaaaa G Aug. 31, 2022, 11:36 a.m. OK GNU C11 TESTS 10 811 0 1500
170416517 GTrigger G Aug. 31, 2022, 6:06 p.m. OK GNU C11 TESTS 10 811 819200 1500
170382177 Gyanprakash456 G Aug. 31, 2022, 12:08 p.m. OK GNU C++14 TESTS 10 31 0 1500
170373413 caganyanmaz G Aug. 31, 2022, 10:43 a.m. OK GNU C++14 TESTS 10 31 0 1500
170426224 Moa234 G Aug. 31, 2022, 8:41 p.m. OK GNU C++14 TESTS 10 31 0 1500
170424810 alloush_wakkaf G Aug. 31, 2022, 8:15 p.m. OK GNU C++14 TESTS 10 31 0 1500
170417725 MechanicMistri G Aug. 31, 2022, 6:22 p.m. OK GNU C++14 TESTS 10 31 0 1500
170409004 Rohitkr G Aug. 31, 2022, 4:40 p.m. OK GNU C++14 TESTS 10 31 0 1500
170398178 2027ff G Aug. 31, 2022, 2:36 p.m. OK GNU C++14 TESTS 10 31 0 1500
170389335 maniacric G Aug. 31, 2022, 1:13 p.m. OK GNU C++14 TESTS 10 31 0 1500
170444768 woshiZS G Sept. 1, 2022, 5:08 a.m. OK GNU C++14 TESTS 10 31 0 1500
170427367 HagarSallam G Aug. 31, 2022, 9:04 p.m. OK GNU C++14 TESTS 10 31 0 1500
170372655 alitarekkk G Aug. 31, 2022, 10:35 a.m. OK GNU C++17 TESTS 10 30 0 1500
170359122 Soum_3010 G Aug. 31, 2022, 7:55 a.m. OK GNU C++17 TESTS 10 30 0 1500
170424971 Haidy_Yasser G Aug. 31, 2022, 8:17 p.m. OK GNU C++17 TESTS 10 30 0 1500
170425201 Haidy_Yasser G Aug. 31, 2022, 8:21 p.m. OK GNU C++17 TESTS 10 30 0 1500
170393927 Bharat_986 G Aug. 31, 2022, 1:54 p.m. OK GNU C++17 TESTS 10 30 0 1500
170383053 EmmaWatson G Aug. 31, 2022, 12:16 p.m. OK GNU C++17 TESTS 10 30 0 1500
170446256 CodeBugZero G Sept. 1, 2022, 5:36 a.m. OK GNU C++17 TESTS 10 31 0 1500
170431675 Pandemania G Aug. 31, 2022, 11:02 p.m. OK GNU C++17 TESTS 10 31 0 1500
170436487 DiptoArchyes07 G Sept. 1, 2022, 1:45 a.m. OK GNU C++17 TESTS 10 31 0 1500
170436701 LeonGymretzka G Sept. 1, 2022, 1:52 a.m. OK GNU C++17 TESTS 10 31 0 1500
170384953 Win_Handsome G Aug. 31, 2022, 12:33 p.m. OK GNU C++17 (64) TESTS 10 15 0 1500
170349258 Nutella3000 G Aug. 31, 2022, 5:49 a.m. OK GNU C++17 (64) TESTS 10 30 0 1500
170369602 _mikasa G Aug. 31, 2022, 10:05 a.m. OK GNU C++17 (64) TESTS 10 30 0 1500
170370176 paopaooux G Aug. 31, 2022, 10:10 a.m. OK GNU C++17 (64) TESTS 10 30 0 1500
170426052 Abd002 G Aug. 31, 2022, 8:38 p.m. OK GNU C++17 (64) TESTS 10 30 0 1500
170447080 wangzixin G Sept. 1, 2022, 5:51 a.m. OK GNU C++17 (64) TESTS 10 30 0 1500
170419895 dimss G Aug. 31, 2022, 6:51 p.m. OK GNU C++17 (64) TESTS 10 30 819200 1500
170350890 yeliuqiang1104 G Aug. 31, 2022, 6:12 a.m. OK GNU C++17 (64) TESTS 10 30 819200 1500
170432912 LZX_OVO G Aug. 31, 2022, 11:57 p.m. OK GNU C++17 (64) TESTS 10 30 1638400 1500
170418075 Somaditya02 G Aug. 31, 2022, 6:26 p.m. OK GNU C++17 (64) TESTS 10 30 1638400 1500
170441878 himanshuyadav2002 G Sept. 1, 2022, 4:03 a.m. OK GNU C++20 (64) TESTS 10 15 0 1500
170446175 Luna_Sakurakouji G Sept. 1, 2022, 5:34 a.m. OK GNU C++20 (64) TESTS 10 15 0 1500
170444280 broken_bad G Sept. 1, 2022, 4:58 a.m. OK GNU C++20 (64) TESTS 10 15 0 1500
170441280 buihuynhtay G Sept. 1, 2022, 3:49 a.m. OK GNU C++20 (64) TESTS 10 15 0 1500
170417485 ajstyle9373443 G Aug. 31, 2022, 6:18 p.m. OK GNU C++20 (64) TESTS 10 15 0 1500
170411182 denmonik G Aug. 31, 2022, 5:04 p.m. OK GNU C++20 (64) TESTS 10 15 0 1500
170406800 LuluOwO G Aug. 31, 2022, 4:14 p.m. OK GNU C++20 (64) TESTS 10 15 0 1500
170406226 Divy98 G Aug. 31, 2022, 4:07 p.m. OK GNU C++20 (64) TESTS 10 15 0 1500
170401199 sakura_orz G Aug. 31, 2022, 3:09 p.m. OK GNU C++20 (64) TESTS 10 15 0 1500
170401187 stunnerhash G Aug. 31, 2022, 3:09 p.m. OK GNU C++20 (64) TESTS 10 15 0 1500
170350325 0x3F G Aug. 31, 2022, 6:04 a.m. OK Go TESTS 10 31 1638400 1500
170423908 m.zamani1812 G Aug. 31, 2022, 7:58 p.m. OK Go TESTS 10 826 37683200 1500
170431379 codekhan29 G Aug. 31, 2022, 10:54 p.m. OK Java 11 TESTS 10 218 0 1500
170379979 Prime369 G Aug. 31, 2022, 11:48 a.m. OK Java 11 TESTS 10 218 0 1500
170408866 singhshivsm20001 G Aug. 31, 2022, 4:38 p.m. OK Java 11 TESTS 10 249 0 1500
170384558 dyxdxy G Aug. 31, 2022, 12:30 p.m. OK Java 11 TESTS 10 390 0 1500
170385734 alii.pz G Aug. 31, 2022, 12:40 p.m. OK Java 11 TESTS 10 858 0 1500
170411122 Bharat1612 G Aug. 31, 2022, 5:04 p.m. OK Java 11 TESTS 10 872 0 1500
170351478 rxgirlz G Aug. 31, 2022, 6:19 a.m. OK Java 17 TESTS 10 296 15462400 1500
170411752 brstplayer G Aug. 31, 2022, 5:12 p.m. OK Java 17 TESTS 10 311 307200 1500
170407964 poopoop G Aug. 31, 2022, 4:28 p.m. OK Java 8 TESTS 10 109 0 1500
170379500 Virendra115 G Aug. 31, 2022, 11:43 a.m. OK Java 8 TESTS 10 109 2355200 1500
170407388 Java_Programmer G Aug. 31, 2022, 4:21 p.m. OK Java 8 TESTS 10 109 2457600 1500
170382211 Diaa12360 G Aug. 31, 2022, 12:08 p.m. OK Java 8 TESTS 10 109 2457600 1500
170378730 Diaa12360 G Aug. 31, 2022, 11:36 a.m. OK Java 8 TESTS 10 109 2457600 1500
170412232 ganesh_6 G Aug. 31, 2022, 5:17 p.m. OK Java 8 TESTS 10 109 4710400 1500
170404783 yashpandey73 G Aug. 31, 2022, 3:50 p.m. OK Java 8 TESTS 10 124 0 1500
170372759 C_P_T_N G Aug. 31, 2022, 10:36 a.m. OK Java 8 TESTS 10 124 0 1500
170370875 Mohamed308 G Aug. 31, 2022, 10:17 a.m. OK Java 8 TESTS 10 124 0 1500
170380038 tharun.mokka564 G Aug. 31, 2022, 11:48 a.m. OK Java 8 TESTS 10 124 2457600 1500
170376932 Danbbler G Aug. 31, 2022, 11:19 a.m. OK MS C++ 2017 TESTS 10 78 0 1500
170390236 MrB0NAN G Aug. 31, 2022, 1:20 p.m. OK MS C++ 2017 TESTS 10 124 819200 1500
170443196 nguyuyen G Sept. 1, 2022, 4:35 a.m. OK MS C++ 2017 TESTS 10 140 0 1500
170393647 masterzzz G Aug. 31, 2022, 1:52 p.m. OK PyPy 3 TESTS 10 187 11673600 1500
170424594 why_am_I_cursed G Aug. 31, 2022, 8:11 p.m. OK PyPy 3 TESTS 10 233 11776000 1500
170380596 Su_123 G Aug. 31, 2022, 11:53 a.m. OK PyPy 3 TESTS 10 233 12595200 1500
170411507 raideva G Aug. 31, 2022, 5:08 p.m. OK PyPy 3 TESTS 10 249 14131200 1500
170444039 wzl1224413636 G Sept. 1, 2022, 4:53 a.m. OK PyPy 3-64 TESTS 10 62 8806400 1500
170407962 Kelk1 G Aug. 31, 2022, 4:28 p.m. OK PyPy 3-64 TESTS 10 77 8908800 1500
170361062 voicon G Aug. 31, 2022, 8:18 a.m. OK PyPy 3-64 TESTS 10 77 8908800 1500
170445183 TitaniumCube G Sept. 1, 2022, 5:16 a.m. OK PyPy 3-64 TESTS 10 92 7372800 1500
170444921 vetri G Sept. 1, 2022, 5:11 a.m. OK PyPy 3-64 TESTS 10 92 16281600 1500
170440379 wanglijie G Sept. 1, 2022, 3:28 a.m. OK PyPy 3-64 TESTS 10 93 16076800 1500
170415557 tomasnyberg G Aug. 31, 2022, 5:55 p.m. OK PyPy 3-64 TESTS 10 93 16076800 1500
170378212 biglunchdude G Aug. 31, 2022, 11:31 a.m. OK PyPy 3-64 TESTS 10 93 16076800 1500
170347613 FrozenKandy G Aug. 31, 2022, 5:25 a.m. OK PyPy 3-64 TESTS 10 93 16179200 1500
170421457 Skillful_Wanderer G Aug. 31, 2022, 7:15 p.m. OK PyPy 3-64 TESTS 10 108 14950400 1500
170378769 happywater G Aug. 31, 2022, 11:37 a.m. OK Python 3 TESTS 10 265 5120000 1500
170405109 qinqishuhua G Aug. 31, 2022, 3:54 p.m. OK Python 3 TESTS 10 265 5939200 1500
170446910 LogXx G Sept. 1, 2022, 5:48 a.m. OK Python 3 TESTS 10 311 5120000 1500
170444479 pratyanch_jain G Sept. 1, 2022, 5:02 a.m. OK Python 3 TESTS 10 358 14028800 1500
170428142 REDsea20 G Aug. 31, 2022, 9:22 p.m. OK Python 3 TESTS 10 420 13824000 1500
170390988 qinqishuhua G Aug. 31, 2022, 1:27 p.m. OK Python 3 TESTS 10 451 13824000 1500
170445996 Spheniscine G Sept. 1, 2022, 5:31 a.m. OK Rust 2021 TESTS 10 15 5939200 1500
170387494 lightsnowball04 G Aug. 31, 2022, 12:56 p.m. OK Rust 2021 TESTS 10 46 2355200 1500

remove filters

Back to search problems