Codeforces Round 562 (Div. 1)

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
1168 Codeforces Round 562 (Div. 1) FINISHED False 7200 172938299 May 26, 2019, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 378 ) E Xor Permutations PROGRAMMING constructive algorithms math 3100

B'Toad Mikhail has an array of 2^k integers a_1, a_2, ldots, a_{2^k} . Find two permutations p and q of integers 0, 1, ldots, 2^k-1 , such that a_i is equal to p_i oplus q_i for all possible i , or determine there are no such permutations. Here oplus denotes the bitwise XOR operation. The first line contains one integer k ( 2 <= q k <= q 12 ), denoting that the size of the array is 2^k . The next line contains 2^k space-separated integers a_1, a_2, ldots, a_{2^k} ( 0 <= q a_i < 2^k ) -- the elements of the given array. If the given array can 't be represented as element-wise XOR of two permutations of integers 0, 1, ldots, 2^k-1 , print "Fou". Otherwise, print "Shi" in the first line. The next two lines should contain the description of two suitable permutations. The first of these lines should contain 2^k space-separated distinct integers p_{1}, p_{2}, ldots, p_{2^k} , and the second line should contain 2^k space-separated distinct integers q_{1}, q_{2}, ldots, q_{2^k} . All elements of p and q should be between 0 and 2^k - 1 , inclusive; p_i oplus q_i should be equal to a_i for all i such that 1 <= q i <= q 2^k . If there are several possible solutions, you can print any. '...

Tutorials

Codeforces Round #562 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
54720107 rainboy E May 27, 2019, 4:57 p.m. OK GNU C11 TESTS 33 31 102400 3100
57846694 xumingyang E July 27, 2019, 11:28 a.m. OK GNU C++11 TESTS 33 30 102400 3100
57710014 py_ultron E July 24, 2019, 11 p.m. OK GNU C++11 TESTS 33 31 0 3100
55606472 ZhongJQ E June 16, 2019, 12:37 a.m. OK GNU C++11 TESTS 33 31 0 3100
57865817 lopare E July 27, 2019, 8:55 p.m. OK GNU C++11 TESTS 33 31 0 3100
57726535 AloneKnight E July 25, 2019, 7:20 a.m. OK GNU C++11 TESTS 33 31 102400 3100
55832590 liuzhangfeiabc E June 20, 2019, 1:51 p.m. OK GNU C++11 TESTS 33 31 102400 3100
54782172 daklqw E May 28, 2019, 11:20 p.m. OK GNU C++11 TESTS 33 31 102400 3100
64456502 vjudge3 E Nov. 7, 2019, 8:53 a.m. OK GNU C++11 TESTS 33 31 204800 3100
54705328 diamond_duke E May 27, 2019, 4:35 a.m. OK GNU C++11 TESTS 33 46 0 3100
54788259 xay5421 E May 29, 2019, 5:37 a.m. OK GNU C++11 TESTS 33 46 0 3100
54810050 krijgertje E May 29, 2019, 4:18 p.m. OK GNU C++14 TESTS 33 30 102400 3100
54799512 yasugongshang E May 29, 2019, 11:18 a.m. OK GNU C++14 TESTS 33 31 102400 3100
64089730 MinecraftFuns E Nov. 2, 2019, 12:17 p.m. OK GNU C++14 TESTS 33 31 102400 3100
63994497 hjc20032003 E Nov. 1, 2019, 2:10 p.m. OK GNU C++14 TESTS 33 31 102400 3100
60957026 _DYT E Sept. 21, 2019, 3:17 a.m. OK GNU C++14 TESTS 33 31 102400 3100
58217372 popovicirobert E Aug. 3, 2019, 11:16 a.m. OK GNU C++14 TESTS 33 31 102400 3100
55338595 jerome_wei E June 9, 2019, 2:41 p.m. OK GNU C++14 TESTS 33 31 102400 3100
55088654 Tommyr7 E June 4, 2019, 1:35 p.m. OK GNU C++14 TESTS 33 31 102400 3100
54738347 cz_xuyixuan E May 28, 2019, 6:23 a.m. OK GNU C++14 TESTS 33 31 102400 3100
54737419 cz_yixuanxu E May 28, 2019, 5:51 a.m. OK GNU C++14 TESTS 33 31 102400 3100
54696824 neal E May 26, 2019, 7:34 p.m. OK GNU C++17 TESTS 33 15 102400 3100
54854568 cerberus97 E May 30, 2019, 6:34 p.m. OK GNU C++17 TESTS 33 15 102400 3100
54852438 cerberus97 E May 30, 2019, 5:18 p.m. OK GNU C++17 TESTS 33 30 102400 3100
55598770 majk E June 15, 2019, 4:47 p.m. OK GNU C++17 TESTS 33 30 102400 3100
54696228 neal E May 26, 2019, 7:13 p.m. OK GNU C++17 TESTS 33 31 102400 3100
54695712 neal E May 26, 2019, 6:58 p.m. OK GNU C++17 TESTS 33 31 102400 3100
54752573 ainta E May 28, 2019, 1:32 p.m. OK GNU C++17 TESTS 33 31 102400 3100
66879761 mama5033 E Dec. 14, 2019, 4:07 p.m. OK GNU C++17 TESTS 33 31 102400 3100
63076316 hjk1030 E Oct. 21, 2019, 1:48 p.m. OK GNU C++17 TESTS 33 31 102400 3100
55610807 ReaLNero1 E June 16, 2019, 5:36 a.m. OK GNU C++17 TESTS 33 31 102400 3100
54826236 dalt E May 30, 2019, 6:36 a.m. OK Java 8 TESTS 33 124 0 3100
54720114 Dukkha E May 27, 2019, 4:57 p.m. OK Java 8 TESTS 33 124 0 3100
54754982 wretar E May 28, 2019, 2:35 p.m. OK Java 8 TESTS 33 139 0 3100

remove filters

Back to search problems