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 |
---|---|---|---|---|---|---|
1245 | Codeforces Round 597 (Div. 2) | FINISHED | False | 7200 | 164820287 | Nov. 1, 2019, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2024 ) | F | Daniel and Spring Cleaning | PROGRAMMING | bitmasks brute force combinatorics dp | 2300 |
B'While doing some spring cleaning, Daniel found an old calculator that he loves so much. However, it seems like it is broken. When he tries to compute 1 + 3 using the calculator, he gets 2 instead of 4 . But when he tries computing 1 + 4 , he gets the correct answer, 5 . Puzzled by this mystery, he opened up his calculator and found the answer to the riddle: the full adders became half adders! So, when he tries to compute the sum a + b using the calculator, he instead gets the xorsum a oplus b (read the definition by the link: https://en.wikipedia.org/wiki/Exclusive_or). As he saw earlier, the calculator sometimes gives the correct answer. And so, he wonders, given integers l and r , how many pairs of integers (a, b) satisfy the following conditions: a + b = a oplus b l <= q a <= q r l <= q b <= q r However, Daniel the Barman is going to the bar and will return in two hours. He tells you to solve the problem before he returns, or else you will have to enjoy being blocked. The first line contains a single integer t ( 1 <= t <= 100 ) -- the number of testcases. Then, t lines follow, each containing two space-separated integers l and r ( 0 <= l <= r <= 10^9 ). Print t integers, the i -th integer should be the answer to the i -th testcase. a oplus b denotes the bitwise XOR of a and b . For the first testcase, the pairs are: (1, 2) , (1, 4) , (2, 1) , (2, 4) , (3, 4) , (4, 1) , (4, 2) , and (4, 3) . '... |
Codeforces Round #597 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
64370927 | Evocation | F | Nov. 6, 2019, 2:17 p.m. | OK | Clang++17 Diagnostics | TESTS | 7 | 62 | 0 | 2300 | |
65599004 | jschr | F | Nov. 23, 2019, 5:07 p.m. | OK | GNU C11 | TESTS | 7 | 31 | 0 | 2300 | |
67615209 | skicean | F | Dec. 25, 2019, 4:57 p.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | 2300 | |
66961208 | Eganrak | F | Dec. 15, 2019, 10:52 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | 2300 | |
66819124 | Contna | F | Dec. 14, 2019, 6:51 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | 2300 | |
66660398 | Grafiore | F | Dec. 12, 2019, 4:03 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | 2300 | |
66549980 | King_Panda | F | Dec. 9, 2019, 2:31 p.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | 2300 | |
66549354 | King_Panda | F | Dec. 9, 2019, 2:18 p.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | 2300 | |
66209735 | DQ9911 | F | Dec. 3, 2019, 6 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | 2300 | |
69049891 | RKNO | F | Jan. 18, 2020, 12:20 p.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | 2300 | |
69881868 | vjudge3 | F | Jan. 31, 2020, 6:40 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | 2300 | |
68152475 | poaspoas | F | Jan. 4, 2020, 7:29 a.m. | OK | GNU C++11 | TESTS | 7 | 15 | 0 | 2300 | |
66774843 | Scut82 | F | Dec. 13, 2019, 9:32 a.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | 2300 | |
69810477 | vjudge5 | F | Jan. 30, 2020, 4:09 a.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | 2300 | |
69641945 | cypherop | F | Jan. 27, 2020, 9:24 p.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | 2300 | |
69009253 | ..vince | F | Jan. 18, 2020, 2:29 a.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | 2300 | |
68038433 | yogahmad77 | F | Jan. 1, 2020, 1:12 p.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | 2300 | |
67574197 | caoash | F | Dec. 24, 2019, 11:50 p.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | 2300 | |
67508504 | OMG_wc | F | Dec. 24, 2019, 8:18 a.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | 2300 | |
67503421 | cloudy_happy | F | Dec. 24, 2019, 6:02 a.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | 2300 | |
66775246 | Scut82 | F | Dec. 13, 2019, 9:44 a.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | 2300 | |
66774198 | Scut82 | F | Dec. 13, 2019, 9:15 a.m. | OK | GNU C++14 | TESTS | 7 | 15 | 0 | 2300 | |
69729438 | Trys_Like_Buffalo | F | Jan. 29, 2020, 1:09 p.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | 2300 | |
69662821 | shouhm | F | Jan. 28, 2020, 10:08 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | 2300 | |
69651849 | sudhanshu6324 | F | Jan. 28, 2020, 5:40 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | 2300 | |
69454905 | ImForbiddenToSayILoveYou | F | Jan. 24, 2020, 8:08 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | 2300 | |
68668701 | 3liAckerman | F | Jan. 12, 2020, 4:04 p.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | 2300 | |
68489406 | Jaydeep999997 | F | Jan. 10, 2020, 11:08 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | 2300 | |
68489294 | Jaydeep999997 | F | Jan. 10, 2020, 11:06 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | 2300 | |
68487822 | Jaydeep999997 | F | Jan. 10, 2020, 10:31 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | 2300 | |
68487070 | Jaydeep999997 | F | Jan. 10, 2020, 10:11 a.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | 2300 | |
69857793 | vjudge1 | F | Jan. 30, 2020, 5:31 p.m. | OK | GNU C++17 | TESTS | 7 | 15 | 0 | 2300 | |
65107828 | eidan | F | Nov. 15, 2019, 8:14 p.m. | OK | Haskell | TESTS | 7 | 140 | 102400 | 2300 | |
65110014 | eidan | F | Nov. 15, 2019, 9:39 p.m. | OK | Haskell | TESTS | 7 | 156 | 102400 | 2300 | |
65108802 | eidan | F | Nov. 15, 2019, 8:47 p.m. | OK | Haskell | TESTS | 7 | 202 | 102400 | 2300 | |
65108257 | eidan | F | Nov. 15, 2019, 8:27 p.m. | OK | Haskell | TESTS | 7 | 202 | 102400 | 2300 | |
65722629 | IslamTalipovTop | F | Nov. 25, 2019, 8:06 p.m. | OK | Java 11 | TESTS | 7 | 186 | 0 | 2300 | |
64161679 | TheSawan | F | Nov. 3, 2019, 2:44 p.m. | OK | Java 11 | TESTS | 7 | 186 | 0 | 2300 | |
64034898 | Dukkha | F | Nov. 1, 2019, 4:28 p.m. | OK | Java 11 | TESTS | 6 | 187 | 0 | 2300 | |
64618976 | satya26 | F | Nov. 10, 2019, 6:09 a.m. | OK | Java 8 | TESTS | 7 | 93 | 0 | 2300 | |
64045378 | Hemose | F | Nov. 1, 2019, 7:14 p.m. | OK | Java 8 | TESTS | 6 | 93 | 0 | 2300 | |
66613621 | Ahmad | F | Dec. 11, 2019, 1:07 a.m. | OK | Java 8 | TESTS | 7 | 108 | 0 | 2300 | |
66156134 | Ahmed_Hosssam | F | Dec. 1, 2019, 10:42 p.m. | OK | Java 8 | TESTS | 7 | 108 | 0 | 2300 | |
64670263 | Oopsimbad | F | Nov. 11, 2019, 5:28 a.m. | OK | Java 8 | TESTS | 7 | 108 | 0 | 2300 | |
64368110 | xodiac | F | Nov. 6, 2019, 1:33 p.m. | OK | Java 8 | TESTS | 7 | 108 | 0 | 2300 | |
64246820 | Nutella3000 | F | Nov. 4, 2019, 2:43 p.m. | OK | Java 8 | TESTS | 7 | 108 | 0 | 2300 | |
64098342 | phantom11 | F | Nov. 2, 2019, 2:37 p.m. | OK | Java 8 | TESTS | 7 | 108 | 0 | 2300 | |
64041781 | Suzukaze | F | Nov. 1, 2019, 6:06 p.m. | OK | Java 8 | TESTS | 6 | 108 | 0 | 2300 | |
65946295 | tmwilliamlin168 | F | Nov. 29, 2019, 8:48 a.m. | OK | Java 8 | TESTS | 7 | 108 | 19456000 | 2300 | |
64166655 | claw88 | F | Nov. 3, 2019, 4:33 p.m. | OK | Mono C# | TESTS | 7 | 46 | 307200 | 2300 | |
64278660 | camypaper | F | Nov. 4, 2019, 11:49 p.m. | OK | Mono C# | TESTS | 7 | 46 | 307200 | 2300 | |
64066100 | tarattata1 | F | Nov. 2, 2019, 5:50 a.m. | OK | MS C++ | TESTS | 7 | 15 | 0 | 2300 | |
69889405 | vjudge4 | F | Jan. 31, 2020, 9:27 a.m. | OK | MS C++ | TESTS | 7 | 30 | 0 | 2300 | |
64526931 | vjudge4 | F | Nov. 8, 2019, 2:05 p.m. | OK | MS C++ | TESTS | 7 | 31 | 0 | 2300 | |
69914616 | vjudge3 | F | Jan. 31, 2020, 4:25 p.m. | OK | MS C++ | TESTS | 7 | 31 | 0 | 2300 | |
69890141 | vjudge4 | F | Jan. 31, 2020, 9:42 a.m. | OK | MS C++ | TESTS | 7 | 31 | 0 | 2300 | |
64202217 | vjudge3 | F | Nov. 4, 2019, 11:48 a.m. | OK | MS C++ | TESTS | 7 | 46 | 0 | 2300 | |
68055444 | CygneNoir | F | Jan. 1, 2020, 10:05 p.m. | OK | MS C++ 2017 | TESTS | 7 | 15 | 102400 | 2300 | |
66287931 | Mr.Robot_28 | F | Dec. 4, 2019, 8:15 p.m. | OK | MS C++ 2017 | TESTS | 7 | 30 | 0 | 2300 | |
65936854 | vjudge3 | F | Nov. 29, 2019, 2:56 a.m. | OK | MS C++ 2017 | TESTS | 7 | 30 | 0 | 2300 | |
64323921 | efyjef | F | Nov. 5, 2019, 4:36 p.m. | OK | MS C++ 2017 | TESTS | 7 | 31 | 0 | 2300 | |
64040020 | ndhp2000 | F | Nov. 1, 2019, 5:42 p.m. | OK | MS C++ 2017 | TESTS | 6 | 31 | 102400 | 2300 | |
68055079 | CygneNoir | F | Jan. 1, 2020, 9:45 p.m. | OK | MS C++ 2017 | TESTS | 7 | 31 | 102400 | 2300 | |
64043359 | TAImatem | F | Nov. 1, 2019, 6:34 p.m. | OK | MS C++ 2017 | TESTS | 6 | 31 | 204800 | 2300 | |
64324393 | efyjef | F | Nov. 5, 2019, 4:45 p.m. | OK | MS C++ 2017 | TESTS | 7 | 31 | 307200 | 2300 | |
64033346 | pajenegod | F | Nov. 1, 2019, 4:22 p.m. | OK | PyPy 2 | TESTS | 6 | 389 | 8704000 | 2300 | |
64026973 | alexwice | F | Nov. 1, 2019, 3:58 p.m. | OK | PyPy 2 | TESTS | 6 | 1029 | 10956800 | 2300 | |
66272234 | sruthi_1729 | F | Dec. 4, 2019, 12:42 p.m. | OK | PyPy 3 | TESTS | 7 | 171 | 2969600 | 2300 | |
64057910 | yijan | F | Nov. 2, 2019, 2:23 a.m. | OK | PyPy 3 | TESTS | 7 | 171 | 2969600 | 2300 | |
64038758 | nagiss | F | Nov. 1, 2019, 5:30 p.m. | OK | PyPy 3 | TESTS | 6 | 186 | 2662400 | 2300 | |
64022045 | nwi | F | Nov. 1, 2019, 3:41 p.m. | OK | Python 2 | TESTS | 6 | 187 | 0 | 2300 | |
66870153 | sritha | F | Dec. 14, 2019, 1:20 p.m. | OK | Python 3 | TESTS | 7 | 139 | 0 | 2300 | |
64055840 | yijan | F | Nov. 2, 2019, 1:20 a.m. | OK | Python 3 | TESTS | 7 | 140 | 0 | 2300 | |
65951812 | deadmanalive059 | F | Nov. 29, 2019, 11:11 a.m. | OK | Python 3 | TESTS | 7 | 187 | 716800 | 2300 | |
64023789 | sansen | F | Nov. 1, 2019, 3:47 p.m. | OK | Rust | TESTS | 6 | 15 | 0 | 2300 | |
64627069 | kobae964 | F | Nov. 10, 2019, 8:53 a.m. | OK | Rust | TESTS | 7 | 30 | 307200 | 2300 | |
64199169 | yuya178 | F | Nov. 4, 2019, 10:53 a.m. | OK | Rust | TESTS | 7 | 31 | 204800 | 2300 | |
64204980 | yuya178 | F | Nov. 4, 2019, 12:36 p.m. | OK | Rust | TESTS | 7 | 46 | 102400 | 2300 | |
64021258 | yakamoto | F | Nov. 1, 2019, 3:39 p.m. | OK | Scala | TESTS | 6 | 452 | 0 | 2300 |
Back to search problems