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 |
---|---|---|---|---|---|---|
1401 | Codeforces Round 665 (Div. 2) | FINISHED | False | 7200 | 139332311 | Aug. 21, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1787 ) | F | Reverse and Swap | PROGRAMMING | binary search bitmasks data structures divide and conquer |
B'You are given an array a of length 2^n . You should process q queries on it. Each query has one of the following 4 types: Write a program that can quickly process given queries. The first line contains two integers n , q ( 0 <= n <= 18 ; 1 <= q <= 10^5 ) -- the length of array a and the number of queries. The second line contains 2^n integers a_1, a_2, ldots, a_{2^n} ( 0 <= a_i <= 10^9 ). Next q lines contains queries -- one per line. Each query has one of 4 types: It is guaranteed that there is at least one Sum query. Print the answer for each Sum query. In the first sample, initially, the array a is equal to {7,4,9,9 } . After processing the first query. the array a becomes {7,8,9,9 } . After processing the second query, the array a_i becomes {9,9,7,8 } Therefore, the answer to the third query is 9+7+8=24 . In the second sample, initially, the array a is equal to {7,0,8,8,7,1,5,2 } . What happens next is: '... |
Codeforces Round #665 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
91063185 | simran145 | F | Aug. 26, 2020, 2:35 p.m. | OK | GNU C11 | TESTS | 62 | 530 | 4198400 | ||
91613993 | TsReaper | F | Sept. 2, 2020, 5:38 a.m. | OK | GNU C11 | TESTS | 62 | 530 | 9420800 | ||
91607329 | hjh | F | Sept. 2, 2020, 2:58 a.m. | OK | GNU C++11 | TESTS | 62 | 93 | 9420800 | ||
90814312 | Tian_Xing | F | Aug. 24, 2020, 9:57 a.m. | OK | GNU C++11 | TESTS | 62 | 93 | 21913600 | ||
90812928 | YHHxBULIATANIA | F | Aug. 24, 2020, 9:35 a.m. | OK | GNU C++11 | TESTS | 62 | 108 | 20172800 | ||
91612734 | S-X-Y | F | Sept. 2, 2020, 5:15 a.m. | OK | GNU C++11 | TESTS | 62 | 108 | 21606400 | ||
91562777 | Feng | F | Sept. 1, 2020, 12:01 p.m. | OK | GNU C++11 | TESTS | 62 | 108 | 54988800 | ||
91607307 | luogu_bot3 | F | Sept. 2, 2020, 2:57 a.m. | OK | GNU C++11 | TESTS | 62 | 109 | 9420800 | ||
91611422 | S-X-Y | F | Sept. 2, 2020, 4:49 a.m. | OK | GNU C++11 | TESTS | 62 | 109 | 21606400 | ||
90890314 | pbrinotwyh | F | Aug. 25, 2020, 10:26 a.m. | OK | GNU C++11 | TESTS | 62 | 124 | 11059200 | ||
90836702 | yuanyuxuan | F | Aug. 24, 2020, 2:56 p.m. | OK | GNU C++11 | TESTS | 62 | 124 | 20684800 | ||
91548804 | AutumnKite | F | Sept. 1, 2020, 8:29 a.m. | OK | GNU C++11 | TESTS | 62 | 124 | 28364800 | ||
91298476 | SidneySun | F | Aug. 29, 2020, 4:16 p.m. | OK | GNU C++14 | TESTS | 62 | 155 | 9420800 | ||
91242126 | Solenoid555 | F | Aug. 28, 2020, 8:10 p.m. | OK | GNU C++14 | TESTS | 62 | 171 | 19251200 | ||
91187671 | 6_Star_CC_and_Pupil_CF | F | Aug. 28, 2020, 7:26 a.m. | OK | GNU C++14 | TESTS | 62 | 187 | 4198400 | ||
91032516 | kapibar | F | Aug. 26, 2020, 8:32 a.m. | OK | GNU C++14 | TESTS | 62 | 187 | 8396800 | ||
91024558 | dahoon46 | F | Aug. 26, 2020, 6:39 a.m. | OK | GNU C++14 | TESTS | 62 | 202 | 8396800 | ||
91045317 | cfxuser | F | Aug. 26, 2020, 11:25 a.m. | OK | GNU C++14 | TESTS | 62 | 217 | 4198400 | ||
91241020 | krijgertje | F | Aug. 28, 2020, 7:47 p.m. | OK | GNU C++14 | TESTS | 62 | 217 | 8089600 | ||
91199950 | K0u1e | F | Aug. 28, 2020, 10:39 a.m. | OK | GNU C++14 | TESTS | 62 | 217 | 12083200 | ||
91432621 | random_codeforces_user | F | Aug. 30, 2020, 6:58 p.m. | OK | GNU C++14 | TESTS | 62 | 218 | 7987200 | ||
91247863 | Paradox512 | F | Aug. 28, 2020, 11:25 p.m. | OK | GNU C++14 | TESTS | 62 | 233 | 9523200 | ||
90988659 | Nachia | F | Aug. 25, 2020, 5:06 p.m. | OK | GNU C++17 | TESTS | 62 | 187 | 4198400 | ||
91445505 | beginner1010 | F | Aug. 31, 2020, 12:46 a.m. | OK | GNU C++17 | TESTS | 62 | 187 | 21811200 | ||
91531999 | swust5120177231 | F | Sept. 1, 2020, 2:46 a.m. | OK | GNU C++17 | TESTS | 62 | 202 | 12595200 | ||
91028000 | Libra_Glow | F | Aug. 26, 2020, 7:23 a.m. | OK | GNU C++17 | TESTS | 62 | 202 | 72396800 | ||
91067439 | zaher__ | F | Aug. 26, 2020, 3:15 p.m. | OK | GNU C++17 | TESTS | 62 | 217 | 5427200 | ||
91494834 | _Clouder | F | Aug. 31, 2020, 1:29 p.m. | OK | GNU C++17 | TESTS | 62 | 217 | 9420800 | ||
91194715 | gaurav172 | F | Aug. 28, 2020, 9:12 a.m. | OK | GNU C++17 | TESTS | 62 | 217 | 10547200 | ||
90818110 | ikbal | F | Aug. 24, 2020, 10:53 a.m. | OK | GNU C++17 | TESTS | 62 | 218 | 7987200 | ||
91116541 | IulianOleniuc | F | Aug. 27, 2020, 8:32 a.m. | OK | GNU C++17 | TESTS | 62 | 218 | 9420800 | ||
90995908 | eyad001_ | F | Aug. 25, 2020, 6:33 p.m. | OK | GNU C++17 | TESTS | 62 | 218 | 12288000 | ||
91468248 | Pred | F | Aug. 31, 2020, 7:28 a.m. | OK | GNU C++17 (64) | TESTS | 62 | 139 | 12288000 | ||
91081188 | wwdd | F | Aug. 26, 2020, 5:45 p.m. | OK | GNU C++17 (64) | TESTS | 62 | 140 | 8396800 | ||
90905050 | ksun48 | F | Aug. 25, 2020, 1:55 p.m. | OK | GNU C++17 (64) | TESTS | 62 | 155 | 4198400 | ||
91137154 | antguz | F | Aug. 27, 2020, 1:35 p.m. | OK | GNU C++17 (64) | TESTS | 62 | 155 | 5222400 | ||
90814815 | kessido | F | Aug. 24, 2020, 10:04 a.m. | OK | GNU C++17 (64) | TESTS | 62 | 155 | 10649600 | ||
91095061 | Bekh | F | Aug. 27, 2020, 12:01 a.m. | OK | GNU C++17 (64) | TESTS | 62 | 171 | 9523200 | ||
91249557 | Bekh | F | Aug. 29, 2020, 1:03 a.m. | OK | GNU C++17 (64) | TESTS | 62 | 171 | 9523200 | ||
90847175 | Kirill22 | F | Aug. 24, 2020, 5:05 p.m. | OK | GNU C++17 (64) | TESTS | 62 | 171 | 10547200 | ||
91090944 | Bekh | F | Aug. 26, 2020, 9 p.m. | OK | GNU C++17 (64) | TESTS | 62 | 187 | 9523200 | ||
91488272 | Mangooste | F | Aug. 31, 2020, 12:04 p.m. | OK | GNU C++17 (64) | TESTS | 62 | 202 | 8499200 | ||
91459952 | WangJialei | F | Aug. 31, 2020, 5:42 a.m. | OK | Go | TESTS | 62 | 810 | 41164800 | ||
91185894 | zhupeijun | F | Aug. 28, 2020, 6:55 a.m. | OK | Java 11 | TESTS | 62 | 436 | 4096000 | ||
91011012 | idk321 | F | Aug. 26, 2020, 2:29 a.m. | OK | Java 11 | TESTS | 62 | 451 | 17510400 | ||
91088010 | MagentaCobra | F | Aug. 26, 2020, 7:46 p.m. | OK | Java 8 | TESTS | 62 | 358 | 12902400 | ||
91048905 | MartyByrde | F | Aug. 26, 2020, 12:11 p.m. | OK | Java 8 | TESTS | 62 | 358 | 17920000 | ||
91243477 | kulmak41 | F | Aug. 28, 2020, 8:43 p.m. | OK | MS C++ 2017 | TESTS | 62 | 546 | 5529600 | ||
91244544 | EMBailey | F | Aug. 28, 2020, 9:12 p.m. | OK | MS C++ 2017 | TESTS | 62 | 951 | 4198400 | ||
91115080 | masterwater | F | Aug. 27, 2020, 8:09 a.m. | OK | MS C++ 2017 | TESTS | 62 | 1013 | 134656000 | ||
91111534 | Saketh_Nandn | F | Aug. 27, 2020, 7:17 a.m. | OK | PyPy 3 | TESTS | 62 | 951 | 34918400 | ||
91500259 | kuchanpriyanka | F | Aug. 31, 2020, 2:35 p.m. | OK | PyPy 3 | TESTS | 62 | 966 | 36966400 | ||
90812471 | mkawa2 | F | Aug. 24, 2020, 9:28 a.m. | OK | PyPy 3 | TESTS | 62 | 1122 | 52940800 | ||
91271186 | Chipe1 | F | Aug. 29, 2020, 9:09 a.m. | OK | Rust | TESTS | 62 | 1045 | 16896000 |
Back to search problems