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 |
---|---|---|---|---|---|---|
1699 | Codeforces Round 804 (Div. 2) | FINISHED | False | 7200 | 74877899 | July 4, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 24073 ) | A | The Third Three Number Problem | PROGRAMMING | constructive algorithms math |
B'You are given a positive integer n . Your task is to find any three integers a , b and c ( 0 <= a, b, c <= 10^9 ) for which (a oplus b)+(b oplus c)+(a oplus c)=n , or determine that there are no such integers. Here a oplus b denotes the bitwise XOR of a and b . For example, 2 oplus 4 = 6 and 3 oplus 1=2 . Each test contains multiple test cases. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The following lines contain the descriptions of the test cases. The only line of each test case contains a single integer n ( 1 <= n <= 10^9 ). For each test case, print any three integers a , b and c ( 0 <= a, b, c <= 10^9 ) for which (a oplus b)+(b oplus c)+(a oplus c)=n . If no such integers exist, print -1 . In the first test case, a=3 , b=3 , c=1 , so (3 oplus 3)+(3 oplus 1) + (3 oplus 1)=0+2+2=4 . In the second test case, there are no solutions. In the third test case, (2 oplus 4)+(4 oplus 6) + (2 oplus 6)=6+2+4=12 . '... |
Codeforces Round #804 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
162848328 | cloudcat233 | A | July 5, 2022, 4:12 a.m. | OK | Clang++17 Diagnostics | TESTS | 3 | 139 | 0 | ||
162848376 | cloudcat233 | A | July 5, 2022, 4:13 a.m. | OK | Clang++17 Diagnostics | TESTS | 3 | 156 | 0 | ||
162851279 | gla_201599020 | A | July 5, 2022, 5:05 a.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 109 | 0 | ||
162812580 | priangshu | A | July 4, 2022, 5:20 p.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 139 | 0 | ||
162852263 | gla_191530006 | A | July 5, 2022, 5:21 a.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 155 | 0 | ||
162852021 | gitesh1505 | A | July 5, 2022, 5:17 a.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 155 | 0 | ||
162851534 | gla_191540003 | A | July 5, 2022, 5:10 a.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 156 | 0 | ||
162833038 | uraniumcentipede | A | July 4, 2022, 10:46 p.m. | OK | D | TESTS | 3 | 15 | 0 | ||
162799156 | anusha_402 | A | July 4, 2022, 4:03 p.m. | OK | GNU C11 | TESTS | 3 | 31 | 0 | ||
162812253 | Mostafizz | A | July 4, 2022, 5:16 p.m. | OK | GNU C11 | TESTS | 3 | 46 | 0 | ||
162855030 | 0Kelvin | A | July 5, 2022, 6:01 a.m. | OK | GNU C11 | TESTS | 3 | 46 | 0 | ||
162850486 | ginkgas | A | July 5, 2022, 4:52 a.m. | OK | GNU C11 | TESTS | 3 | 46 | 0 | ||
162850390 | antuda | A | July 5, 2022, 4:50 a.m. | OK | GNU C11 | TESTS | 3 | 46 | 0 | ||
162849499 | shootoon | A | July 5, 2022, 4:35 a.m. | OK | GNU C11 | TESTS | 3 | 46 | 0 | ||
162822086 | Aryan_2021023 | A | July 4, 2022, 7:19 p.m. | OK | GNU C11 | TESTS | 3 | 46 | 0 | ||
162819146 | grazinggoat | A | July 4, 2022, 6:37 p.m. | OK | GNU C11 | TESTS | 3 | 46 | 0 | ||
162817805 | aryan_2021025 | A | July 4, 2022, 6:21 p.m. | OK | GNU C11 | TESTS | 3 | 46 | 0 | ||
162815465 | Ajoad_Islam_Nishat | A | July 4, 2022, 5:53 p.m. | OK | GNU C11 | TESTS | 3 | 46 | 0 | ||
162811430 | dr.stone_hack | A | July 4, 2022, 5:08 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
162855050 | abhishek.maheshwari_cs19 | A | July 5, 2022, 6:01 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
162851654 | Lin_YuHuai | A | July 5, 2022, 5:12 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
162840773 | mcuong1011 | A | July 5, 2022, 2:06 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
162838472 | unbecoming | A | July 5, 2022, 1:21 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
162835573 | Canace_HKF | A | July 5, 2022, 12:04 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
162833799 | ammar7018 | A | July 4, 2022, 11:08 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
162819574 | siddharth6780 | A | July 4, 2022, 6:43 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
162813525 | shivansh977 | A | July 4, 2022, 5:31 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
162809565 | imacoder999 | A | July 4, 2022, 4:55 p.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | ||
162841890 | arindam54321 | A | July 5, 2022, 2:27 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
162845194 | LakshitB086 | A | July 5, 2022, 3:20 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
162845241 | acwing_zzzgw | A | July 5, 2022, 3:21 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
162845811 | Hikarii1903 | A | July 5, 2022, 3:30 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
162846786 | xiaopa18 | A | July 5, 2022, 3:46 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
162847286 | soorajsrini | A | July 5, 2022, 3:54 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
162847722 | DiptoArchyes07 | A | July 5, 2022, 4:02 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
162850882 | VK57 | A | July 5, 2022, 4:59 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
162853980 | pdrasti47 | A | July 5, 2022, 5:47 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
162854647 | Mighty_CK | A | July 5, 2022, 5:56 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | ||
162851601 | Muly | A | July 5, 2022, 5:11 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
162848719 | OTTFF | A | July 5, 2022, 4:20 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
162847578 | Kashyap_09 | A | July 5, 2022, 3:59 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
162844278 | codevader13 | A | July 5, 2022, 3:07 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
162837681 | aimoe | A | July 5, 2022, 1:04 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
162837589 | hdm0922 | A | July 5, 2022, 1:01 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
162835283 | neyung_ | A | July 4, 2022, 11:55 p.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
162830868 | woonder | A | July 4, 2022, 9:49 p.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
162814690 | nit_ay03 | A | July 4, 2022, 5:44 p.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
162854638 | Bhavesh_gurnani | A | July 5, 2022, 5:56 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | ||
162845706 | AnonymousGuy12 | A | July 5, 2022, 3:29 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
162854822 | S_Neal | A | July 5, 2022, 5:58 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
162854274 | sarveshtiwari24 | A | July 5, 2022, 5:51 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
162853961 | ivan100sic | A | July 5, 2022, 5:46 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
162853074 | Denny.Cui | A | July 5, 2022, 5:33 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
162852820 | kelvin_0179 | A | July 5, 2022, 5:29 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
162851368 | wonderful_trip | A | July 5, 2022, 5:07 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
162851108 | MantavyaD | A | July 5, 2022, 5:03 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
162848058 | Leokkk17 | A | July 5, 2022, 4:08 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
162845718 | Siddharth2EEE | A | July 5, 2022, 3:29 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | ||
162807056 | paul_ss | A | July 4, 2022, 4:32 p.m. | OK | Go | TESTS | 3 | 31 | 614400 | ||
162799750 | manchik | A | July 4, 2022, 4:05 p.m. | OK | Go | TESTS | 3 | 343 | 409600 | ||
162830015 | NToneE | A | July 4, 2022, 9:32 p.m. | OK | Haskell | TESTS | 3 | 46 | 0 | ||
162822969 | tushar19280 | A | July 4, 2022, 7:32 p.m. | OK | Java 11 | TESTS | 3 | 186 | 0 | ||
162813131 | Hitesh_Ahuja | A | July 4, 2022, 5:26 p.m. | OK | Java 11 | TESTS | 3 | 186 | 0 | ||
162812261 | parth_13_ | A | July 4, 2022, 5:16 p.m. | OK | Java 11 | TESTS | 3 | 186 | 0 | ||
162826949 | dwoolley3 | A | July 4, 2022, 8:33 p.m. | OK | Java 11 | TESTS | 3 | 187 | 0 | ||
162810271 | ssd17 | A | July 4, 2022, 4:59 p.m. | OK | Java 11 | TESTS | 3 | 187 | 0 | ||
162797571 | IanISam | A | July 4, 2022, 3:57 p.m. | OK | Java 11 | TESTS | 3 | 202 | 0 | ||
162810435 | Deepak4466 | A | July 4, 2022, 5 p.m. | OK | Java 11 | TESTS | 3 | 202 | 0 | ||
162836685 | prac_123 | A | July 5, 2022, 12:39 a.m. | OK | Java 11 | TESTS | 3 | 217 | 0 | ||
162837755 | swift51385 | A | July 5, 2022, 1:06 a.m. | OK | Java 11 | TESTS | 3 | 218 | 0 | ||
162850678 | pranp_24 | A | July 5, 2022, 4:55 a.m. | OK | Java 11 | TESTS | 3 | 249 | 0 | ||
162852491 | Ahsan_Habib_Sowmik | A | July 5, 2022, 5:24 a.m. | OK | Java 17 | TESTS | 3 | 264 | 512000 | ||
162822782 | imvivekthakur | A | July 4, 2022, 7:30 p.m. | OK | Java 17 | TESTS | 3 | 296 | 1331200 | ||
162806453 | hemantsingh4774 | A | July 4, 2022, 4:30 p.m. | OK | Java 17 | TESTS | 3 | 343 | 307200 | ||
162836590 | MagentaCobra | A | July 5, 2022, 12:36 a.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
162819769 | Sussykin | A | July 4, 2022, 6:46 p.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | ||
162797272 | Do_not_Look_Back | A | July 4, 2022, 3:56 p.m. | OK | Java 8 | TESTS | 3 | 109 | 0 | ||
162849671 | MJ21 | A | July 5, 2022, 4:38 a.m. | OK | Java 8 | TESTS | 3 | 124 | 0 | ||
162797121 | akshaykumar200042 | A | July 4, 2022, 3:56 p.m. | OK | Java 8 | TESTS | 3 | 124 | 0 | ||
162846519 | hareeshkhs | A | July 5, 2022, 3:42 a.m. | OK | Java 8 | TESTS | 3 | 155 | 0 | ||
162824416 | coder_terror | A | July 4, 2022, 7:52 p.m. | OK | Java 8 | TESTS | 3 | 171 | 0 | ||
162813626 | T-error | A | July 4, 2022, 5:32 p.m. | OK | Java 8 | TESTS | 3 | 171 | 0 | ||
162812878 | SainiAayush | A | July 4, 2022, 5:23 p.m. | OK | Java 8 | TESTS | 3 | 186 | 0 | ||
162797144 | 0xRmQu | A | July 4, 2022, 3:56 p.m. | OK | Java 8 | TESTS | 3 | 186 | 0 | ||
162844377 | moly_hhh | A | July 5, 2022, 3:09 a.m. | OK | MS C++ 2017 | TESTS | 3 | 0 | 0 | ||
162848189 | Scvprogram | A | July 5, 2022, 4:10 a.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
162839271 | Killer_No.47 | A | July 5, 2022, 1:36 a.m. | OK | MS C++ 2017 | TESTS | 3 | 15 | 0 | ||
162849980 | lhfei | A | July 5, 2022, 4:43 a.m. | OK | MS C++ 2017 | TESTS | 3 | 46 | 0 | ||
162837857 | jkl2469_ | A | July 5, 2022, 1:08 a.m. | OK | MS C++ 2017 | TESTS | 3 | 46 | 0 | ||
162818029 | ahm.12ed.m | A | July 4, 2022, 6:24 p.m. | OK | MS C++ 2017 | TESTS | 3 | 46 | 0 | ||
162810302 | hdurina01 | A | July 4, 2022, 4:59 p.m. | OK | MS C++ 2017 | TESTS | 3 | 46 | 0 | ||
162802641 | hiro220214 | A | July 4, 2022, 4:16 p.m. | OK | MS C++ 2017 | TESTS | 3 | 46 | 102400 | ||
162846064 | M_zhi | A | July 5, 2022, 3:34 a.m. | OK | MS C++ 2017 | TESTS | 3 | 61 | 0 | ||
162817850 | RajneeshPrasad | A | July 4, 2022, 6:22 p.m. | OK | MS C++ 2017 | TESTS | 3 | 61 | 0 | ||
162811081 | 784 | A | July 4, 2022, 5:05 p.m. | OK | Perl | TESTS | 3 | 15 | 0 | ||
162811889 | 784 | A | July 4, 2022, 5:13 p.m. | OK | Perl | TESTS | 3 | 31 | 0 | ||
162848765 | nianhuahao | A | July 5, 2022, 4:21 a.m. | OK | PyPy 2 | TESTS | 3 | 639 | 7577600 | ||
162810370 | WalrusRamen21 | A | July 4, 2022, 5 p.m. | OK | PyPy 3 | TESTS | 3 | 92 | 2457600 | ||
162819890 | YashNandwana | A | July 4, 2022, 6:48 p.m. | OK | PyPy 3 | TESTS | 3 | 108 | 4812800 | ||
162842427 | jscn | A | July 5, 2022, 2:37 a.m. | OK | PyPy 3 | TESTS | 3 | 124 | 3891200 | ||
162821984 | zxcuser2 | A | July 4, 2022, 7:18 p.m. | OK | PyPy 3 | TESTS | 3 | 124 | 5836800 | ||
162802703 | brownie2332 | A | July 4, 2022, 4:16 p.m. | OK | PyPy 3 | TESTS | 3 | 186 | 7065600 | ||
162817753 | gotcoding124 | A | July 4, 2022, 6:20 p.m. | OK | PyPy 3 | TESTS | 3 | 264 | 8806400 | ||
162806548 | devjeeth1207 | A | July 4, 2022, 4:30 p.m. | OK | PyPy 3 | TESTS | 3 | 265 | 8806400 | ||
162819774 | aayush_chhabra | A | July 4, 2022, 6:46 p.m. | OK | PyPy 3 | TESTS | 3 | 280 | 7782400 | ||
162834659 | sohilkhanduja | A | July 4, 2022, 11:35 p.m. | OK | PyPy 3 | TESTS | 3 | 280 | 7884800 | ||
162820280 | AndreyPavlov | A | July 4, 2022, 6:55 p.m. | OK | PyPy 3 | TESTS | 3 | 280 | 7884800 | ||
162838457 | mwen | A | July 5, 2022, 1:20 a.m. | OK | PyPy 3-64 | TESTS | 3 | 93 | 2457600 | ||
162826082 | farrellbyu | A | July 4, 2022, 8:19 p.m. | OK | PyPy 3-64 | TESTS | 3 | 109 | 2560000 | ||
162843989 | rmsdud200 | A | July 5, 2022, 3:02 a.m. | OK | PyPy 3-64 | TESTS | 3 | 124 | 3174400 | ||
162844706 | bridgekiller | A | July 5, 2022, 3:14 a.m. | OK | PyPy 3-64 | TESTS | 3 | 139 | 3174400 | ||
162832526 | Ahmed_Turkman | A | July 4, 2022, 10:31 p.m. | OK | PyPy 3-64 | TESTS | 3 | 139 | 3276800 | ||
162811473 | Youarenotgood | A | July 4, 2022, 5:09 p.m. | OK | PyPy 3-64 | TESTS | 3 | 139 | 3276800 | ||
162812737 | _Frust | A | July 4, 2022, 5:21 p.m. | OK | PyPy 3-64 | TESTS | 3 | 140 | 2867200 | ||
162837926 | husnain | A | July 5, 2022, 1:09 a.m. | OK | PyPy 3-64 | TESTS | 3 | 155 | 3686400 | ||
162812603 | dunkin_shepherd | A | July 4, 2022, 5:20 p.m. | OK | PyPy 3-64 | TESTS | 3 | 186 | 5017600 | ||
162827857 | Navier_boltzmann | A | July 4, 2022, 8:49 p.m. | OK | PyPy 3-64 | TESTS | 3 | 186 | 5120000 | ||
162841731 | OLOGY | A | July 5, 2022, 2:24 a.m. | OK | Python 2 | TESTS | 3 | 31 | 409600 | ||
162809421 | H_Raja | A | July 4, 2022, 4:54 p.m. | OK | Python 3 | TESTS | 3 | 61 | 0 | ||
162811586 | Baibars | A | July 4, 2022, 5:10 p.m. | OK | Python 3 | TESTS | 3 | 77 | 0 | ||
162835243 | 18pa1a0477 | A | July 4, 2022, 11:54 p.m. | OK | Python 3 | TESTS | 3 | 77 | 204800 | ||
162822252 | CrazyCoder00 | A | July 4, 2022, 7:22 p.m. | OK | Python 3 | TESTS | 3 | 77 | 307200 | ||
162803164 | NickVodA | A | July 4, 2022, 4:18 p.m. | OK | Python 3 | TESTS | 3 | 77 | 307200 | ||
162797104 | filemon | A | July 4, 2022, 3:56 p.m. | OK | Python 3 | TESTS | 3 | 78 | 204800 | ||
162821049 | CrazyCoder00 | A | July 4, 2022, 7:06 p.m. | OK | Python 3 | TESTS | 3 | 78 | 307200 | ||
162851635 | Dead_End | A | July 5, 2022, 5:11 a.m. | OK | Python 3 | TESTS | 3 | 93 | 0 | ||
162816735 | Unn16 | A | July 4, 2022, 6:09 p.m. | OK | Python 3 | TESTS | 3 | 108 | 0 | ||
162810620 | AyuAnchor | A | July 4, 2022, 5:02 p.m. | OK | Python 3 | TESTS | 3 | 108 | 0 | ||
162812012 | Mur | A | July 4, 2022, 5:14 p.m. | OK | Ruby 3 | TESTS | 3 | 202 | 0 | ||
162848507 | Thallium54 | A | July 5, 2022, 4:16 a.m. | OK | Rust 2021 | TESTS | 3 | 0 | 204800 | ||
162845211 | obyethinking | A | July 5, 2022, 3:21 a.m. | OK | Rust 2021 | TESTS | 3 | 15 | 0 | ||
162817242 | liut | A | July 4, 2022, 6:14 p.m. | OK | Rust 2021 | TESTS | 3 | 62 | 0 | ||
162834586 | controllerOfWorlds | A | July 4, 2022, 11:33 p.m. | OK | Rust 2021 | TESTS | 3 | 77 | 0 | ||
162847509 | CaviarX | A | July 5, 2022, 3:58 a.m. | OK | Rust 2021 | TESTS | 3 | 93 | 0 |
Back to search problems