Codeforces Round 812 (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
1713 Codeforces Round 812 (Div. 2) FINISHED False 7200 72026699 Aug. 6, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 545 ) F Lost Array PROGRAMMING bitmasks combinatorics constructive algorithms dp math 2900

B'A long time ago, Spyofgame invented the famous array a ( 1 -indexed) of length n that contains information about the world and life. After that, he decided to convert it into the matrix b ( 0 -indexed) of size (n + 1) x (n + 1) which contains information about the world, life and beyond. Spyofgame converted a into b with the following rules. Here oplus denotes the bitwise XOR operation. Today, archaeologists have discovered the famous matrix b . However, many elements of the matrix has been lost. They only know the values of b_{i,n} for 1 <= q i <= q n (note that these are some elements of the last column, not the last row). The archaeologists want to know what a possible array of a is. Can you help them reconstruct any array that could be a ? The first line contains a single integer n ( 1 <= q n <= q 5 cdot 10^5 ). The second line contains n integers b_{1,n}, b_{2,n}, ldots, b_{n,n} ( 0 <= q b_{i,n} < 2^{30} ). If some array a is consistent with the information, print a line containing n integers a_1, a_2, ldots, a_n . If there are multiple solutions, output any. If such an array does not exist, output -1 instead. If we let a = [1,2,3] , then b will be: The values of b_{1,n}, b_{2,n}, ldots, b_{n,n} generated are [0,2,1] which is consistent with what the archaeologists have discovered. '...

Tutorials

Codeforces Round #812 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
167345887 Imot F Aug. 7, 2022, 3:49 a.m. OK GNU C++14 TESTS 18 234 7987200 2900
167343093 violet_sun F Aug. 7, 2022, 3:04 a.m. OK GNU C++14 TESTS 18 420 19251200 2900
167342885 violet_sun F Aug. 7, 2022, 3:01 a.m. OK GNU C++14 TESTS 18 452 14745600 2900
167344760 qazswedx2 F Aug. 7, 2022, 3:31 a.m. OK GNU C++17 TESTS 18 233 3993600 2900
167333101 Luscious_Lopez F Aug. 6, 2022, 11:12 p.m. OK GNU C++17 TESTS 18 233 3993600 2900
167347455 137_345_2814 F Aug. 7, 2022, 4:18 a.m. OK GNU C++17 TESTS 18 234 6348800 2900
167353244 H01yK_ F Aug. 7, 2022, 5:40 a.m. OK GNU C++17 TESTS 18 249 2048000 2900
167339737 yyhqwq F Aug. 7, 2022, 2:04 a.m. OK GNU C++17 TESTS 18 249 21401600 2900
167317900 SEGFAULTSEGFAULTSEGFAULT F Aug. 6, 2022, 7:03 p.m. OK GNU C++17 TESTS 18 295 10240000 2900
167327924 dean.menezes F Aug. 6, 2022, 9:11 p.m. OK GNU C++17 TESTS 18 919 2150400 2900
167327837 dean.menezes F Aug. 6, 2022, 9:10 p.m. OK GNU C++17 TESTS 18 951 6451200 2900
167339538 monstersqwq F Aug. 7, 2022, 2 a.m. OK GNU C++17 (64) TESTS 18 202 6348800 2900
167311922 hitonanode F Aug. 6, 2022, 6:18 p.m. OK GNU C++17 (64) TESTS 18 249 9932800 2900
167322508 Geothermal F Aug. 6, 2022, 7:53 p.m. OK GNU C++17 (64) TESTS 18 280 22323200 2900
167331389 mhq F Aug. 6, 2022, 10:23 p.m. OK GNU C++20 (64) TESTS 18 124 2150400 2900
167328013 A_G F Aug. 6, 2022, 9:13 p.m. OK GNU C++20 (64) TESTS 18 124 2150400 2900
167344858 YYYLLL2021 F Aug. 7, 2022, 3:32 a.m. OK GNU C++20 (64) TESTS 18 124 4403200 2900
167314088 trainwithoutpain F Aug. 6, 2022, 6:30 p.m. OK GNU C++20 (64) TESTS 18 139 2150400 2900
167317023 ecnerwala F Aug. 6, 2022, 6:55 p.m. OK GNU C++20 (64) TESTS 18 139 6144000 2900
167338447 BurnedChicken F Aug. 7, 2022, 1:35 a.m. OK GNU C++20 (64) TESTS 18 140 22118400 2900
167338829 oleh1421 F Aug. 7, 2022, 1:45 a.m. OK GNU C++20 (64) TESTS 18 140 39628800 2900
167344945 phantasmpika F Aug. 7, 2022, 3:34 a.m. OK GNU C++20 (64) TESTS 18 951 1945600 2900
167343214 lfc_andy26 F Aug. 7, 2022, 3:06 a.m. OK GNU C++20 (64) TESTS 18 951 10444800 2900
167331121 A_G F Aug. 6, 2022, 10:17 p.m. OK PyPy 3-64 TESTS 18 327 67993600 2900
167328509 A_G F Aug. 6, 2022, 9:22 p.m. OK PyPy 3-64 TESTS 18 342 66867200 2900
167331207 A_G F Aug. 6, 2022, 10:19 p.m. OK PyPy 3-64 TESTS 18 358 68096000 2900
167329336 A_G F Aug. 6, 2022, 9:37 p.m. OK PyPy 3-64 TESTS 18 374 67072000 2900
167330000 ArchUser84 F Aug. 6, 2022, 9:52 p.m. OK Rust 2021 TESTS 18 124 36352000 2900
167330175 ArchUser84 F Aug. 6, 2022, 9:55 p.m. OK Rust 2021 TESTS 18 139 36249600 2900

remove filters

Back to search problems