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 |
---|---|---|---|---|---|---|
1474 | Codeforces Round 696 (Div. 2) | FINISHED | False | 7200 | 126285911 | Jan. 19, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 22697 ) | A | Puzzle From the Future | PROGRAMMING | greedy |
B"In the 2022 year, Mike found two binary integers a and b of length n (both of them are written only by digits 0 and 1 ) that can have leading zeroes. In order not to forget them, he wanted to construct integer d in the following way: Unfortunately, Mike lost integer a before he could calculate d himself. Now, to cheer him up, you want to find any binary integer a of length n such that d will be maximum possible as integer. Maximum possible as integer means that 102 > 21 , 012 < 101 , 021 = 21 and so on. The first line contains a single integer t ( 1 <= q t <= q 1000 ) -- the number of test cases. The first line of each test case contains the integer n ( 1 <= q n <= q 10^5 ) -- the length of a and b . The second line of each test case contains binary integer b of length n . The integer b consists only of digits 0 and 1 . It is guaranteed that the total sum of n over all t test cases doesn't exceed 10^5 . For each test case output one binary integer a of length n . Note, that a or b may have leading zeroes but must have the same length n . In the first test case, b = 0 and choosing a = 1 gives d = 1 as a result. In the second test case, b = 011 so: In the third test case, b = 110 . If you choose a = 100 , you'll get d = 210 and it's the maximum possible d . In the fourth test case, b = 111000 . If you choose a = 101101 , you'll get d = 212101 and it's maximum possible d . In the fifth test case, b = 001011 . If you choose a = 101110 , you'll get d = 102121 and it's maximum possible d . "... |
Codeforces Round #696 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
104866040 | TobiasJacob | A | Jan. 20, 2021, 3:27 a.m. | OK | Clang++17 Diagnostics | TESTS | 9 | 436 | 0 | ||
104858759 | VN.Kiet | A | Jan. 19, 2021, 11:44 p.m. | OK | FPC | TESTS | 9 | 31 | 921600 | ||
104839657 | ansonlam115 | A | Jan. 19, 2021, 5:23 p.m. | OK | GNU C11 | TESTS | 9 | 327 | 204800 | ||
104839487 | Arie123777 | A | Jan. 19, 2021, 5:22 p.m. | OK | GNU C11 | TESTS | 9 | 327 | 204800 | ||
104830737 | Asuramaru | A | Jan. 19, 2021, 4:22 p.m. | OK | GNU C11 | TESTS | 9 | 327 | 512000 | ||
104861305 | Dm_178 | A | Jan. 20, 2021, 1:21 a.m. | OK | GNU C11 | TESTS | 9 | 327 | 512000 | ||
104863109 | liduo_qul | A | Jan. 20, 2021, 2:17 a.m. | OK | GNU C11 | TESTS | 9 | 327 | 5017600 | ||
104868623 | Spicy. | A | Jan. 20, 2021, 4:23 a.m. | OK | GNU C11 | TESTS | 9 | 342 | 204800 | ||
104864860 | link_nlf | A | Jan. 20, 2021, 3 a.m. | OK | GNU C11 | TESTS | 9 | 343 | 512000 | ||
104842712 | coniferousdyer | A | Jan. 19, 2021, 5:49 p.m. | OK | GNU C11 | TESTS | 9 | 343 | 819200 | ||
104871612 | rajutsav1234 | A | Jan. 20, 2021, 5:16 a.m. | OK | GNU C11 | TESTS | 9 | 343 | 921600 | ||
104833278 | yeaonaiwohe | A | Jan. 19, 2021, 4:28 p.m. | OK | GNU C11 | TESTS | 9 | 343 | 921600 | ||
104831369 | xxxyd | A | Jan. 19, 2021, 4:23 p.m. | OK | GNU C++11 | TESTS | 9 | 15 | 0 | ||
104838148 | Rishabh_Abhishek | A | Jan. 19, 2021, 5:14 p.m. | OK | GNU C++11 | TESTS | 9 | 15 | 0 | ||
104865339 | qdnoip | A | Jan. 20, 2021, 3:12 a.m. | OK | GNU C++11 | TESTS | 9 | 15 | 0 | ||
104866462 | wefvdge | A | Jan. 20, 2021, 3:36 a.m. | OK | GNU C++11 | TESTS | 9 | 15 | 0 | ||
104870105 | wyh0410 | A | Jan. 20, 2021, 4:51 a.m. | OK | GNU C++11 | TESTS | 9 | 15 | 0 | ||
104870360 | Tsushima_ | A | Jan. 20, 2021, 4:56 a.m. | OK | GNU C++11 | TESTS | 9 | 15 | 102400 | ||
104871414 | vjudge4 | A | Jan. 20, 2021, 5:13 a.m. | OK | GNU C++11 | TESTS | 9 | 15 | 204800 | ||
104863864 | vjudge2 | A | Jan. 20, 2021, 2:35 a.m. | OK | GNU C++11 | TESTS | 9 | 15 | 204800 | ||
104868881 | Mau-D | A | Jan. 20, 2021, 4:28 a.m. | OK | GNU C++11 | TESTS | 9 | 15 | 409600 | ||
104871154 | jimmy | A | Jan. 20, 2021, 5:09 a.m. | OK | GNU C++11 | TESTS | 9 | 15 | 409600 | ||
104862115 | lzc_123 | A | Jan. 20, 2021, 1:47 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 102400 | ||
104873148 | mittal21 | A | Jan. 20, 2021, 5:38 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 307200 | ||
104844227 | M23102000 | A | Jan. 19, 2021, 6:05 p.m. | OK | GNU C++14 | TESTS | 9 | 15 | 307200 | ||
104871997 | gir0k | A | Jan. 20, 2021, 5:21 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 307200 | ||
104872102 | sirishgam001 | A | Jan. 20, 2021, 5:23 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 409600 | ||
104851303 | fancktol | A | Jan. 19, 2021, 7:56 p.m. | OK | GNU C++14 | TESTS | 9 | 15 | 409600 | ||
104860756 | Demon_22 | A | Jan. 20, 2021, 1:03 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 409600 | ||
104866110 | DouglasConnor | A | Jan. 20, 2021, 3:28 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 409600 | ||
104869298 | Yyh. | A | Jan. 20, 2021, 4:36 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 409600 | ||
104848938 | devdatta2512 | A | Jan. 19, 2021, 7:13 p.m. | OK | GNU C++14 | TESTS | 9 | 15 | 409600 | ||
104868615 | 1845589432 | A | Jan. 20, 2021, 4:23 a.m. | OK | GNU C++17 | TESTS | 9 | 15 | 204800 | ||
104858153 | mjhmjh1104 | A | Jan. 19, 2021, 11:20 p.m. | OK | GNU C++17 | TESTS | 9 | 15 | 204800 | ||
104864219 | trick_trick | A | Jan. 20, 2021, 2:43 a.m. | OK | GNU C++17 | TESTS | 9 | 15 | 307200 | ||
104873740 | pversusnp | A | Jan. 20, 2021, 5:47 a.m. | OK | GNU C++17 | TESTS | 9 | 15 | 307200 | ||
104868957 | _Sabib_ | A | Jan. 20, 2021, 4:29 a.m. | OK | GNU C++17 | TESTS | 9 | 15 | 307200 | ||
104858933 | Turgut | A | Jan. 19, 2021, 11:51 p.m. | OK | GNU C++17 | TESTS | 9 | 15 | 307200 | ||
104851508 | Carmel_Ab1 | A | Jan. 19, 2021, 8:01 p.m. | OK | GNU C++17 | TESTS | 9 | 15 | 307200 | ||
104848028 | MuhammadAl-Halaby | A | Jan. 19, 2021, 6:58 p.m. | OK | GNU C++17 | TESTS | 9 | 15 | 307200 | ||
104846298 | StefanSBC | A | Jan. 19, 2021, 6:32 p.m. | OK | GNU C++17 | TESTS | 9 | 15 | 307200 | ||
104845737 | vipulks | A | Jan. 19, 2021, 6:24 p.m. | OK | GNU C++17 | TESTS | 9 | 15 | 307200 | ||
104852410 | Sadly006 | A | Jan. 19, 2021, 8:19 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 15 | 307200 | ||
104859346 | akifpatel | A | Jan. 20, 2021, 12:08 a.m. | OK | GNU C++17 (64) | TESTS | 9 | 15 | 307200 | ||
104866065 | tohe41 | A | Jan. 20, 2021, 3:27 a.m. | OK | GNU C++17 (64) | TESTS | 9 | 15 | 307200 | ||
104867027 | hello_codeforces | A | Jan. 20, 2021, 3:49 a.m. | OK | GNU C++17 (64) | TESTS | 9 | 15 | 307200 | ||
104864044 | LethalPuppy | A | Jan. 20, 2021, 2:39 a.m. | OK | GNU C++17 (64) | TESTS | 9 | 15 | 409600 | ||
104868267 | DARK49 | A | Jan. 20, 2021, 4:16 a.m. | OK | GNU C++17 (64) | TESTS | 9 | 15 | 409600 | ||
104850702 | M-Manas-s | A | Jan. 19, 2021, 7:45 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 15 | 409600 | ||
104852034 | raynor30 | A | Jan. 19, 2021, 8:11 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 15 | 409600 | ||
104854669 | nevilparmar11 | A | Jan. 19, 2021, 9:17 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 15 | 409600 | ||
104858340 | Ehab_Fawzy | A | Jan. 19, 2021, 11:26 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 15 | 409600 | ||
104849432 | zenilharia26 | A | Jan. 19, 2021, 7:22 p.m. | OK | Java 11 | TESTS | 9 | 171 | 0 | ||
104874826 | kgcode | A | Jan. 20, 2021, 6:02 a.m. | OK | Java 11 | TESTS | 9 | 171 | 0 | ||
104869287 | mrprince88 | A | Jan. 20, 2021, 4:36 a.m. | OK | Java 11 | TESTS | 9 | 186 | 0 | ||
104868742 | pikachu_pika_pika | A | Jan. 20, 2021, 4:25 a.m. | OK | Java 11 | TESTS | 9 | 186 | 0 | ||
104863949 | balaramghosh | A | Jan. 20, 2021, 2:37 a.m. | OK | Java 11 | TESTS | 9 | 186 | 0 | ||
104853527 | josephtkim | A | Jan. 19, 2021, 8:45 p.m. | OK | Java 11 | TESTS | 9 | 186 | 0 | ||
104845348 | Monkey_de_Luffy | A | Jan. 19, 2021, 6:19 p.m. | OK | Java 11 | TESTS | 9 | 186 | 0 | ||
104842230 | gssakash | A | Jan. 19, 2021, 5:44 p.m. | OK | Java 11 | TESTS | 9 | 186 | 0 | ||
104838098 | HastaLaVistaLa | A | Jan. 19, 2021, 5:14 p.m. | OK | Java 11 | TESTS | 9 | 186 | 0 | ||
104867960 | anshum_it_is | A | Jan. 20, 2021, 4:09 a.m. | OK | Java 11 | TESTS | 9 | 187 | 0 | ||
104867533 | Dhananjay.07 | A | Jan. 20, 2021, 4 a.m. | OK | Java 8 | TESTS | 9 | 93 | 0 | ||
104842753 | rsingh3_be18 | A | Jan. 19, 2021, 5:49 p.m. | OK | Java 8 | TESTS | 9 | 108 | 0 | ||
104860984 | ramuked | A | Jan. 20, 2021, 1:10 a.m. | OK | Java 8 | TESTS | 9 | 109 | 0 | ||
104870565 | Akmal_developer | A | Jan. 20, 2021, 4:59 a.m. | OK | Java 8 | TESTS | 9 | 109 | 0 | ||
104867042 | akhiltaker | A | Jan. 20, 2021, 3:49 a.m. | OK | Java 8 | TESTS | 9 | 109 | 0 | ||
104850150 | Adi_7861 | A | Jan. 19, 2021, 7:35 p.m. | OK | Java 8 | TESTS | 9 | 124 | 0 | ||
104868646 | coder_terror | A | Jan. 20, 2021, 4:24 a.m. | OK | Java 8 | TESTS | 9 | 124 | 0 | ||
104867898 | Varun_25 | A | Jan. 20, 2021, 4:08 a.m. | OK | Java 8 | TESTS | 9 | 124 | 0 | ||
104865912 | B.Y. | A | Jan. 20, 2021, 3:24 a.m. | OK | Java 8 | TESTS | 9 | 124 | 0 | ||
104850333 | anunay469 | A | Jan. 19, 2021, 7:38 p.m. | OK | Java 8 | TESTS | 9 | 124 | 0 | ||
104857441 | Spheniscine | A | Jan. 19, 2021, 10:51 p.m. | OK | Kotlin | TESTS | 9 | 109 | 0 | ||
104838510 | Krantzy | A | Jan. 19, 2021, 5:16 p.m. | OK | Kotlin | TESTS | 9 | 139 | 0 | ||
104846617 | catforce | A | Jan. 19, 2021, 6:37 p.m. | OK | Kotlin | TESTS | 9 | 155 | 102400 | ||
104851549 | Azomi_al | A | Jan. 19, 2021, 8:02 p.m. | OK | Kotlin | TESTS | 9 | 420 | 0 | ||
104866303 | es19 | A | Jan. 20, 2021, 3:33 a.m. | OK | MS C++ | TESTS | 9 | 15 | 614400 | ||
104868149 | yyeshell | A | Jan. 20, 2021, 4:13 a.m. | OK | MS C++ | TESTS | 9 | 31 | 409600 | ||
104868094 | dheerajd5 | A | Jan. 20, 2021, 4:12 a.m. | OK | MS C++ 2017 | TESTS | 9 | 15 | 307200 | ||
104868551 | adm29aadi | A | Jan. 20, 2021, 4:21 a.m. | OK | MS C++ 2017 | TESTS | 9 | 31 | 307200 | ||
104838978 | gyanendrasingh | A | Jan. 19, 2021, 5:19 p.m. | OK | MS C++ 2017 | TESTS | 9 | 31 | 409600 | ||
104860937 | Moon4Ditch | A | Jan. 20, 2021, 1:09 a.m. | OK | MS C++ 2017 | TESTS | 9 | 46 | 307200 | ||
104846625 | gever_gever | A | Jan. 19, 2021, 6:37 p.m. | OK | MS C++ 2017 | TESTS | 9 | 46 | 409600 | ||
104833147 | almadoh | A | Jan. 19, 2021, 4:28 p.m. | OK | MS C++ 2017 | TESTS | 9 | 46 | 512000 | ||
104874070 | vjudge2 | A | Jan. 20, 2021, 5:51 a.m. | OK | MS C++ 2017 | TESTS | 9 | 46 | 716800 | ||
104867137 | Gleb_Dubosarskii | A | Jan. 20, 2021, 3:51 a.m. | OK | MS C++ 2017 | TESTS | 9 | 62 | 204800 | ||
104840708 | Ali1jaraa | A | Jan. 19, 2021, 5:31 p.m. | OK | MS C++ 2017 | TESTS | 9 | 62 | 204800 | ||
104867002 | jisuanji | A | Jan. 20, 2021, 3:48 a.m. | OK | MS C++ 2017 | TESTS | 9 | 62 | 921600 | ||
104844936 | mhmedwagih1324 | A | Jan. 19, 2021, 6:14 p.m. | OK | .NET Core C# | TESTS | 9 | 93 | 1638400 | ||
104872612 | Jakhongir | A | Jan. 20, 2021, 5:30 a.m. | OK | PHP | TESTS | 9 | 62 | 0 | ||
104843920 | maciaas | A | Jan. 19, 2021, 6:02 p.m. | OK | PyPy 2 | TESTS | 9 | 108 | 5222400 | ||
104847403 | sainad | A | Jan. 19, 2021, 6:49 p.m. | OK | PyPy 3 | TESTS | 9 | 124 | 3379200 | ||
104863031 | codicon | A | Jan. 20, 2021, 2:15 a.m. | OK | PyPy 3 | TESTS | 9 | 124 | 4608000 | ||
104853929 | dominator1234 | A | Jan. 19, 2021, 8:57 p.m. | OK | PyPy 3 | TESTS | 9 | 124 | 5222400 | ||
104841405 | not_tehlka | A | Jan. 19, 2021, 5:36 p.m. | OK | PyPy 3 | TESTS | 9 | 124 | 8192000 | ||
104851066 | clam | A | Jan. 19, 2021, 7:52 p.m. | OK | PyPy 3 | TESTS | 9 | 124 | 9113600 | ||
104851119 | clam | A | Jan. 19, 2021, 7:53 p.m. | OK | PyPy 3 | TESTS | 9 | 139 | 10854400 | ||
104841686 | bromanz | A | Jan. 19, 2021, 5:39 p.m. | OK | PyPy 3 | TESTS | 9 | 155 | 5529600 | ||
104867594 | Coding_RDX1 | A | Jan. 20, 2021, 4:01 a.m. | OK | PyPy 3 | TESTS | 9 | 155 | 8294400 | ||
104838238 | nhipata | A | Jan. 19, 2021, 5:14 p.m. | OK | PyPy 3 | TESTS | 9 | 155 | 10240000 | ||
104868800 | Ilsa | A | Jan. 20, 2021, 4:26 a.m. | OK | PyPy 3 | TESTS | 9 | 155 | 10444800 | ||
104862667 | ankan2526 | A | Jan. 20, 2021, 2:04 a.m. | OK | Python 3 | TESTS | 9 | 93 | 409600 | ||
104839739 | naman5811 | A | Jan. 19, 2021, 5:23 p.m. | OK | Python 3 | TESTS | 9 | 93 | 409600 | ||
104869001 | sk_loves_Ritika | A | Jan. 20, 2021, 4:30 a.m. | OK | Python 3 | TESTS | 9 | 93 | 614400 | ||
104868952 | sonu11134 | A | Jan. 20, 2021, 4:29 a.m. | OK | Python 3 | TESTS | 9 | 93 | 614400 | ||
104873109 | batyrbek.zhunis | A | Jan. 20, 2021, 5:37 a.m. | OK | Python 3 | TESTS | 9 | 93 | 716800 | ||
104837946 | ABhi_gyan | A | Jan. 19, 2021, 5:13 p.m. | OK | Python 3 | TESTS | 9 | 93 | 2764800 | ||
104839384 | Dibyendu123 | A | Jan. 19, 2021, 5:21 p.m. | OK | Python 3 | TESTS | 9 | 108 | 409600 | ||
104844008 | naman5811 | A | Jan. 19, 2021, 6:03 p.m. | OK | Python 3 | TESTS | 9 | 108 | 921600 | ||
104843604 | hacker_777 | A | Jan. 19, 2021, 5:58 p.m. | OK | Python 3 | TESTS | 9 | 109 | 409600 | ||
104867367 | red_sloth | A | Jan. 20, 2021, 3:56 a.m. | OK | Python 3 | TESTS | 9 | 109 | 716800 |
Back to search problems