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 |
---|---|---|---|---|---|---|
1034 | Codeforces Round 511 (Div. 1) | FINISHED | False | 7200 | 199898687 | Sept. 21, 2018, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 655 ) | E | Little C Loves 3 III | PROGRAMMING | bitmasks dp math | 3200 |
B'Little C loves number xc2 xab3 xc2 xbb very much. He loves all things about it. Now he is interested in the following problem: There are two arrays of 2^n intergers a_0,a_1,...,a_{2^n-1} and b_0,b_1,...,b_{2^n-1} . The task is for each i (0 <= q i <= q 2^n-1) , to calculate c_i= sum a_j cdot b_k ( j|k=i and j &k=0 , where " | " denotes bitwise or operation and " & " denotes bitwise and operation). It 's amazing that it can be proved that there are exactly 3^n triples (i,j,k) , such that j|k=i , j &k=0 and 0 <= q i,j,k <= q 2^n-1 . So Little C wants to solve this excellent problem (because it 's well related to 3 ) excellently. Help him calculate all c_i . Little C loves 3 very much, so he only want to know each c_i & 3 . The first line contains one integer n (0 <= q n <= q 21) . The second line contains 2^n integers in [0,3] without spaces -- the i -th of them is a_{i-1} . The third line contains 2^n integers in [0,3] without spaces -- the i -th of them is b_{i-1} . Print one line contains 2^n integers in [0,3] without spaces -- the i -th of them is c_{i-1} &3 . (It 's obvious that c_{i} &3 is in [0,3] ). '... |
Codeforces Round #511 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
57868701 | lopare | E | July 27, 2019, 11:33 p.m. | OK | GNU C++11 | TESTS | 20 | 186 | 46080000 | 3200 | |
45094371 | luogu_bot3 | E | Oct. 30, 2018, 11:10 a.m. | OK | GNU C++11 | TESTS | 20 | 186 | 46080000 | 3200 | |
52806982 | _twilight | E | April 16, 2019, 5:38 a.m. | OK | GNU C++11 | TESTS | 20 | 187 | 44134400 | 3200 | |
49619041 | LJC00118 | E | Feb. 8, 2019, 8:11 a.m. | OK | GNU C++11 | TESTS | 20 | 187 | 44134400 | 3200 | |
55016610 | Ghastlcon | E | June 3, 2019, 12:39 p.m. | OK | GNU C++11 | TESTS | 20 | 187 | 58880000 | 3200 | |
50927024 | luogu_bot2 | E | March 7, 2019, 12:20 p.m. | OK | GNU C++11 | TESTS | 20 | 202 | 35737600 | 3200 | |
50927005 | daniel14311531 | E | March 7, 2019, 12:19 p.m. | OK | GNU C++11 | TESTS | 20 | 202 | 35737600 | 3200 | |
51081224 | Flod-rain | E | March 9, 2019, 11:22 a.m. | OK | GNU C++11 | TESTS | 20 | 202 | 39936000 | 3200 | |
46672240 | CMXRYNP | E | Dec. 6, 2018, 7:33 a.m. | OK | GNU C++11 | TESTS | 20 | 202 | 44953600 | 3200 | |
64467296 | ILSYT | E | Nov. 7, 2019, 12:05 p.m. | OK | GNU C++11 | TESTS | 20 | 202 | 50278400 | 3200 | |
51471882 | gtrhetr | E | March 19, 2019, 7:02 a.m. | OK | GNU C++14 | TESTS | 20 | 280 | 46284800 | 3200 | |
44063625 | Wearry | E | Oct. 10, 2018, 7:42 a.m. | OK | GNU C++14 | TESTS | 20 | 296 | 35737600 | 3200 | |
51373276 | mayaohua2003 | E | March 16, 2019, 1 p.m. | OK | GNU C++14 | TESTS | 20 | 296 | 46284800 | 3200 | |
43282537 | apiadu | E | Sept. 23, 2018, 6:22 a.m. | OK | GNU C++14 | TESTS | 20 | 311 | 41984000 | 3200 | |
50483216 | black_horse2014 | E | Feb. 25, 2019, 10:11 a.m. | OK | GNU C++14 | TESTS | 20 | 311 | 44032000 | 3200 | |
51824190 | mobu233 | E | March 25, 2019, 1:22 p.m. | OK | GNU C++14 | TESTS | 20 | 312 | 35737600 | 3200 | |
44018616 | asd123wwww | E | Oct. 9, 2018, 1:13 a.m. | OK | GNU C++14 | TESTS | 20 | 342 | 35737600 | 3200 | |
44018556 | asd123wwww | E | Oct. 9, 2018, 1:09 a.m. | OK | GNU C++14 | TESTS | 20 | 342 | 44236800 | 3200 | |
43279785 | consecutivelimit | E | Sept. 23, 2018, 4:14 a.m. | OK | GNU C++14 | TESTS | 20 | 342 | 46182400 | 3200 | |
44491309 | newbiegcz | E | Oct. 18, 2018, 2:34 p.m. | OK | GNU C++14 | TESTS | 20 | 342 | 52531200 | 3200 | |
44171435 | Trisolaris | E | Oct. 12, 2018, 6:09 a.m. | OK | GNU C++17 | TESTS | 20 | 186 | 37785600 | 3200 | |
43220461 | bmerry | E | Sept. 21, 2018, 6:42 p.m. | OK | GNU C++17 | TESTS | 20 | 280 | 44134400 | 3200 | |
48644991 | Shayan.P | E | Jan. 20, 2019, 5:01 p.m. | OK | GNU C++17 | TESTS | 20 | 280 | 44236800 | 3200 | |
43426374 | sheaf | E | Sept. 25, 2018, 8:31 p.m. | OK | GNU C++17 | TESTS | 20 | 280 | 50380800 | 3200 | |
50719435 | zhaimingshuzms | E | March 3, 2019, 8:12 a.m. | OK | GNU C++17 | TESTS | 20 | 295 | 40448000 | 3200 | |
55747535 | Nakagawa.Kanon | E | June 19, 2019, 10:52 a.m. | OK | GNU C++17 | TESTS | 20 | 295 | 46182400 | 3200 | |
53849444 | wwwxxxddd | E | May 7, 2019, 12:44 p.m. | OK | GNU C++17 | TESTS | 20 | 296 | 37785600 | 3200 | |
44114918 | FizzyDavid | E | Oct. 11, 2018, 1:39 p.m. | OK | GNU C++17 | TESTS | 20 | 312 | 42086400 | 3200 | |
67003733 | HyscereXD | E | Dec. 16, 2019, 7 a.m. | OK | GNU C++17 | TESTS | 20 | 327 | 37888000 | 3200 | |
43474410 | DOlaBMOon | E | Sept. 27, 2018, 1:55 a.m. | OK | GNU C++17 | TESTS | 20 | 327 | 46284800 | 3200 |
Back to search problems