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 |
---|---|---|---|---|---|---|
1673 | Codeforces Round 785 (Div. 2) | FINISHED | False | 7200 | 85850663 | April 30, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 728 ) | E | Power or XOR? | PROGRAMMING | combinatorics math number theory |
B"The symbol wedge is quite ambiguous, especially when used without context. Sometimes it is used to denote a power ( a wedge b = a^b ) and sometimes it is used to denote the XOR operation ( a wedge b=a oplus b ). You have an ambiguous expression E=A_1 wedge A_2 wedge A_3 wedge ldots wedge A_n . You can replace each wedge symbol with either a texttt{Power} operation or a texttt{XOR} operation to get an unambiguous expression E' . The value of this expression E' is determined according to the following rules: You are given an array B of length n and an integer k . The array A is given by A_i=2^{B_i} and the expression E is given by E=A_1 wedge A_2 wedge A_3 wedge ldots wedge A_n . You need to find the XOR of the values of all possible unambiguous expressions E' which can be obtained from E and has at least k wedge symbols used as texttt{XOR} operation. Since the answer can be very large, you need to find it modulo 2^{2^{20}} . Since this number can also be very large, you need to print its binary representation without leading zeroes. If the answer is equal to 0 , print 0 . The first line of input contains two integers n and k (1 <= q n <= q 2^{20}, 0 <= q k < n) . The second line of input contains n integers B_1,B_2, ldots,B_n (1 <= q B_i < 2^{20}) . Print a single line containing a binary string without leading zeroes denoting the answer to the problem. If the answer is equal to 0 , print 0 . For each of the testcases 1 to 3 , A = {2^3,2^1,2^2 } = {8,2,4 } and E=8 wedge 2 wedge 4 . For the first testcase, there is only one possible valid unambiguous expression E' = 8 oplus 2 oplus 4 = 14 = (1110)_2 . For the second testcase, there are three possible valid unambiguous expressions E' : For the third testcase, there are four possible valid unambigu"... |
Codeforces Round #785 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
155461080 | Charbel | E | April 30, 2022, 9:56 p.m. | OK | GNU C++14 | TESTS | 100 | 264 | 8396800 | ||
155454064 | i_like_gyf | E | April 30, 2022, 7:13 p.m. | OK | GNU C++14 | TESTS | 100 | 280 | 27033600 | ||
155454104 | i_like_gyf | E | April 30, 2022, 7:13 p.m. | OK | GNU C++14 | TESTS | 100 | 296 | 27033600 | ||
155435435 | cwystc | E | April 30, 2022, 4:09 p.m. | OK | GNU C++14 | TESTS | 100 | 327 | 24064000 | ||
155474526 | _Erased | E | May 1, 2022, 4:26 a.m. | OK | GNU C++14 | TESTS | 100 | 342 | 10547200 | ||
155439771 | zusuyu | E | April 30, 2022, 4:26 p.m. | OK | GNU C++14 | TESTS | 100 | 342 | 20992000 | ||
155441432 | KrK | E | April 30, 2022, 4:32 p.m. | OK | GNU C++14 | TESTS | 100 | 343 | 6348800 | ||
155446071 | dlalswp25 | E | April 30, 2022, 5:20 p.m. | OK | GNU C++14 | TESTS | 100 | 358 | 114790400 | ||
155439692 | BARBARIANNNNN | E | April 30, 2022, 4:26 p.m. | OK | GNU C++14 | TESTS | 100 | 389 | 40038400 | ||
155437271 | MoonHalo | E | April 30, 2022, 4:17 p.m. | OK | GNU C++14 | TESTS | 100 | 405 | 10547200 | ||
155433491 | windy7926778 | E | April 30, 2022, 4:02 p.m. | OK | GNU C++17 | TESTS | 100 | 312 | 16793600 | ||
155468241 | RenaMoe | E | May 1, 2022, 1:59 a.m. | OK | GNU C++17 | TESTS | 100 | 327 | 12595200 | ||
155470291 | Nitil | E | May 1, 2022, 2:53 a.m. | OK | GNU C++17 | TESTS | 100 | 342 | 8806400 | ||
155433854 | xiaoziya | E | April 30, 2022, 4:03 p.m. | OK | GNU C++17 | TESTS | 100 | 342 | 16793600 | ||
155470409 | RefreshedCoder | E | May 1, 2022, 2:56 a.m. | OK | GNU C++17 | TESTS | 100 | 343 | 17920000 | ||
155443998 | lddlinan | E | April 30, 2022, 5 p.m. | OK | GNU C++17 | TESTS | 100 | 343 | 111308800 | ||
155477989 | Fatma_Abdelhamed | E | May 1, 2022, 5:27 a.m. | OK | GNU C++17 | TESTS | 100 | 358 | 8396800 | ||
155469060 | ButterCake | E | May 1, 2022, 2:22 a.m. | OK | GNU C++17 | TESTS | 100 | 358 | 8396800 | ||
155475028 | Tartarus | E | May 1, 2022, 4:36 a.m. | OK | GNU C++17 | TESTS | 100 | 358 | 16076800 | ||
155445025 | anodiebird | E | April 30, 2022, 5:08 p.m. | OK | GNU C++17 | TESTS | 100 | 373 | 8396800 | ||
155445210 | gs13031 | E | April 30, 2022, 5:10 p.m. | OK | GNU C++17 (64) | TESTS | 100 | 171 | 13414400 | ||
155433486 | LayCurse | E | April 30, 2022, 4:02 p.m. | OK | GNU C++17 (64) | TESTS | 100 | 186 | 136601600 | ||
155471443 | Terryjoy_fan | E | May 1, 2022, 3:21 a.m. | OK | GNU C++17 (64) | TESTS | 100 | 187 | 16076800 | ||
155454670 | MtSaka | E | April 30, 2022, 7:23 p.m. | OK | GNU C++17 (64) | TESTS | 100 | 218 | 8499200 | ||
155443310 | MateoCV | E | April 30, 2022, 4:56 p.m. | OK | GNU C++17 (64) | TESTS | 100 | 233 | 8499200 | ||
155471092 | Terryjoy_fan | E | May 1, 2022, 3:13 a.m. | OK | GNU C++17 (64) | TESTS | 100 | 233 | 16076800 | ||
155466005 | enslaved | E | May 1, 2022, 12:46 a.m. | OK | GNU C++17 (64) | TESTS | 100 | 249 | 13824000 | ||
155432404 | Kude | E | April 30, 2022, 3:58 p.m. | OK | GNU C++17 (64) | TESTS | 100 | 264 | 52633600 | ||
155478066 | wangyian2022 | E | May 1, 2022, 5:28 a.m. | OK | GNU C++17 (64) | TESTS | 100 | 265 | 8294400 | ||
155444297 | BLACK_HOLE_8 | E | April 30, 2022, 5:02 p.m. | OK | GNU C++17 (64) | TESTS | 100 | 296 | 10035200 | ||
155460449 | Bungmint | E | April 30, 2022, 9:38 p.m. | OK | GNU C++20 (64) | TESTS | 100 | 140 | 9216000 | ||
155440661 | S2speed | E | April 30, 2022, 4:30 p.m. | OK | GNU C++20 (64) | TESTS | 100 | 156 | 12902400 | ||
155463891 | czhang2718 | E | April 30, 2022, 11:31 p.m. | OK | GNU C++20 (64) | TESTS | 100 | 171 | 4300800 | ||
155457245 | smax | E | April 30, 2022, 8:17 p.m. | OK | GNU C++20 (64) | TESTS | 100 | 171 | 8396800 | ||
155454045 | quailty | E | April 30, 2022, 7:13 p.m. | OK | GNU C++20 (64) | TESTS | 100 | 171 | 12595200 | ||
155442389 | depresspotato | E | April 30, 2022, 4:34 p.m. | OK | GNU C++20 (64) | TESTS | 100 | 187 | 9420800 | ||
155470264 | DeadlyPillow | E | May 1, 2022, 2:53 a.m. | OK | GNU C++20 (64) | TESTS | 100 | 187 | 9523200 | ||
155472446 | ytkn | E | May 1, 2022, 3:45 a.m. | OK | GNU C++20 (64) | TESTS | 100 | 217 | 8396800 | ||
155434357 | Rubikun | E | April 30, 2022, 4:05 p.m. | OK | GNU C++20 (64) | TESTS | 100 | 217 | 35737600 | ||
155434806 | BalintR | E | April 30, 2022, 4:07 p.m. | OK | GNU C++20 (64) | TESTS | 100 | 218 | 7680000 | ||
155450965 | Dukkha | E | April 30, 2022, 6:19 p.m. | OK | Java 11 | TESTS | 100 | 1294 | 102400 | ||
155434844 | sansen | E | April 30, 2022, 4:07 p.m. | OK | Rust 2021 | TESTS | 100 | 577 | 27750400 |
Back to search problems