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 |
---|---|---|---|---|---|---|
1981 | Codeforces Round 949 (Div. 2) | FINISHED | False | 7200 | 20030063 | May 31, 2024, 10:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 14219 ) | B | Turtle and an Infinite Sequence | PROGRAMMING | bitmasks math |
B'There is a sequence a_0, a_1, a_2, ldots of infinite length. Initially a_i = i for every non-negative integer i . After every second, each element of the sequence will simultaneously change. a_i will change to a_{i - 1} mid a_i mid a_{i + 1} for every positive integer i . a_0 will change to a_0 mid a_1 . Here, | denotes bitwise OR. Turtle is asked to find the value of a_n after m seconds. In particular, if m = 0 , then he needs to find the initial value of a_n . He is tired of calculating so many values, so please help him! Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10^4 ). The description of the test cases follows. The first line of each test case contains two integers n, m ( 0 <= n, m <= 10^9 ). For each test case, output a single integer -- the value of a_n after m seconds. After 1 second, [a_0, a_1, a_2, a_3, a_4, a_5] will become [1, 3, 3, 7, 7, 7] . After 2 seconds, [a_0, a_1, a_2, a_3, a_4, a_5] will become [3, 3, 7, 7, 7, 7] . '... |
Simplified Chinese Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
263559407 | A1ternate | B | June 1, 2024, 12:47 a.m. | OK | C# 10 | TESTS | 9 | 108 | 3174400 | ||
263531096 | rahulprakash80022 | B | May 31, 2024, 5:11 p.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
263564132 | _l_j_y_ | B | June 1, 2024, 2:25 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
263558110 | Momo_114514 | B | June 1, 2024, 12:13 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
263703343 | sz_jinzikai01 | B | June 2, 2024, 5:37 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
263647467 | Day_Tao | B | June 1, 2024, 3:11 p.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
263628508 | yuyu666 | B | June 1, 2024, 12:25 p.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
263591187 | Rating_10101010 | B | June 1, 2024, 7:23 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
263574234 | Momo_114514 | B | June 1, 2024, 4:41 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 0 | ||
263578441 | cppcppcpp3 | B | June 1, 2024, 5:31 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 46 | 1024000 | ||
263593422 | OPEC | B | June 1, 2024, 7:43 a.m. | OK | C++14 (GCC 6-32) | TESTS | 9 | 61 | 0 | ||
263664480 | REZo03 | B | June 1, 2024, 5:36 p.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
263655649 | abdelrhmanezzat | B | June 1, 2024, 4:21 p.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
263699095 | K_sakkary | B | June 2, 2024, 4:39 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
263698697 | bhavyammodi | B | June 2, 2024, 4:32 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
263698086 | samarthgattu | B | June 2, 2024, 4:21 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
263692160 | MrPerson | B | June 2, 2024, 2:25 a.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
263683875 | fedimser | B | June 1, 2024, 10:12 p.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
263675512 | asmitdeb | B | June 1, 2024, 7:32 p.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
263672557 | Titan_2003 | B | June 1, 2024, 6:55 p.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
263662385 | The_Hallak | B | June 1, 2024, 5:16 p.m. | OK | C++17 (GCC 7-32) | TESTS | 9 | 46 | 0 | ||
263693280 | zzuliLLL | B | June 2, 2024, 2:50 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
263704773 | rxlfd314 | B | June 2, 2024, 5:54 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
263700415 | desrtswim | B | June 2, 2024, 4:59 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
263699281 | desrtswim | B | June 2, 2024, 4:42 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
263695225 | m_nature | B | June 2, 2024, 3:30 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
263694323 | AboRady | B | June 2, 2024, 3:11 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
263693777 | SirBappiGorilla | B | June 2, 2024, 3 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
263693360 | Fr1nGeLove | B | June 2, 2024, 2:51 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
263692496 | AboRady | B | June 2, 2024, 2:33 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
263691942 | pk_prakash | B | June 2, 2024, 2:21 a.m. | OK | C++20 (GCC 13-64) | TESTS | 9 | 46 | 0 | ||
263630562 | bluemegane | B | June 1, 2024, 12:44 p.m. | OK | C# 8 | TESTS | 9 | 124 | 2355200 | ||
263616691 | bluemegane | B | June 1, 2024, 10:55 a.m. | OK | C# 8 | TESTS | 9 | 140 | 2355200 | ||
263555321 | eugalt | B | May 31, 2024, 10:53 p.m. | OK | GNU C11 | TESTS | 9 | 46 | 0 | ||
263554932 | eugalt | B | May 31, 2024, 10:42 p.m. | OK | GNU C11 | TESTS | 9 | 46 | 102400 | ||
263555503 | eugalt | B | May 31, 2024, 10:57 p.m. | OK | GNU C11 | TESTS | 9 | 62 | 102400 | ||
263519327 | Szzzp | B | May 31, 2024, 3:28 p.m. | OK | GNU C11 | TESTS | 9 | 92 | 102400 | ||
263536669 | TheFOOL17 | B | May 31, 2024, 6:01 p.m. | OK | GNU C11 | TESTS | 9 | 93 | 102400 | ||
263535247 | Willump1 | B | May 31, 2024, 5:48 p.m. | OK | GNU C11 | TESTS | 9 | 108 | 102400 | ||
263606658 | sparshsinha11 | B | June 1, 2024, 9:31 a.m. | OK | GNU C11 | TESTS | 9 | 108 | 921600 | ||
263658866 | nguyenquocthao00 | B | June 1, 2024, 4:46 p.m. | OK | Go | TESTS | 9 | 62 | 819200 | ||
263591641 | 0x3F | B | June 1, 2024, 7:27 a.m. | OK | Go | TESTS | 9 | 77 | 409600 | ||
263609410 | crapcode | B | June 1, 2024, 9:55 a.m. | OK | Go | TESTS | 9 | 93 | 512000 | ||
263590531 | BishtCoder | B | June 1, 2024, 7:18 a.m. | OK | Java 21 | TESTS | 9 | 234 | 512000 | ||
263518871 | priyaroy3370 | B | May 31, 2024, 3:24 p.m. | OK | Java 21 | TESTS | 9 | 249 | 512000 | ||
263604422 | yang_wei | B | June 1, 2024, 9:13 a.m. | OK | Java 21 | TESTS | 9 | 249 | 512000 | ||
263562062 | amit_roy | B | June 1, 2024, 1:49 a.m. | OK | Java 21 | TESTS | 9 | 249 | 512000 | ||
263535803 | himneesh9 | B | May 31, 2024, 5:53 p.m. | OK | Java 21 | TESTS | 9 | 264 | 614400 | ||
263548320 | ankush9140 | B | May 31, 2024, 8:24 p.m. | OK | Java 21 | TESTS | 9 | 265 | 307200 | ||
263534731 | SD125 | B | May 31, 2024, 5:43 p.m. | OK | Java 21 | TESTS | 9 | 265 | 409600 | ||
263504467 | dineshchandran311 | B | May 31, 2024, 1:24 p.m. | OK | Java 21 | TESTS | 9 | 265 | 512000 | ||
263528312 | ItsLever | B | May 31, 2024, 4:47 p.m. | OK | Java 21 | TESTS | 9 | 265 | 819200 | ||
263551921 | powervic08 | B | May 31, 2024, 9:28 p.m. | OK | Java 21 | TESTS | 9 | 280 | 204800 | ||
263641464 | tutjae | B | June 1, 2024, 2:20 p.m. | OK | Java 8 | TESTS | 9 | 171 | 0 | ||
263522353 | dark_knight_5656 | B | May 31, 2024, 3:54 p.m. | OK | Java 8 | TESTS | 9 | 171 | 0 | ||
263501531 | 1091857051 | B | May 31, 2024, 12:59 p.m. | OK | Java 8 | TESTS | 9 | 171 | 0 | ||
263498727 | Safawt | B | May 31, 2024, 12:39 p.m. | OK | Java 8 | TESTS | 9 | 171 | 0 | ||
263502960 | wat2 | B | May 31, 2024, 1:11 p.m. | OK | Java 8 | TESTS | 9 | 171 | 6553600 | ||
263499864 | safarisoul | B | May 31, 2024, 12:47 p.m. | OK | Java 8 | TESTS | 9 | 186 | 0 | ||
263498800 | Blue_BEE | B | May 31, 2024, 12:40 p.m. | OK | Java 8 | TESTS | 9 | 186 | 0 | ||
263532475 | PlayDate | B | May 31, 2024, 5:24 p.m. | OK | Java 8 | TESTS | 9 | 202 | 0 | ||
263545436 | sahityatripathi1 | B | May 31, 2024, 7:39 p.m. | OK | Java 8 | TESTS | 9 | 218 | 0 | ||
263598636 | Sumitsingh7 | B | June 1, 2024, 8:26 a.m. | OK | Java 8 | TESTS | 9 | 218 | 8294400 | ||
263579979 | y4n9b0 | B | June 1, 2024, 5:47 a.m. | OK | Kotlin 1.9 | TESTS | 9 | 217 | 102400 | ||
263581221 | y4n9b0 | B | June 1, 2024, 5:59 a.m. | OK | Kotlin 1.9 | TESTS | 9 | 233 | 102400 | ||
263580529 | y4n9b0 | B | June 1, 2024, 5:52 a.m. | OK | Kotlin 1.9 | TESTS | 9 | 233 | 102400 | ||
263580045 | y4n9b0 | B | June 1, 2024, 5:48 a.m. | OK | Kotlin 1.9 | TESTS | 9 | 233 | 102400 | ||
263612671 | habibulka | B | June 1, 2024, 10:23 a.m. | OK | Kotlin 1.9 | TESTS | 9 | 281 | 1433600 | ||
263644133 | Samaritan02 | B | June 1, 2024, 2:42 p.m. | OK | PyPy 3 | TESTS | 9 | 217 | 8704000 | ||
263502403 | Jai-shri-ram-27 | B | May 31, 2024, 1:06 p.m. | OK | PyPy 3 | TESTS | 9 | 249 | 5529600 | ||
263542852 | lo_krlo_baatt | B | May 31, 2024, 7:06 p.m. | OK | PyPy 3 | TESTS | 9 | 264 | 6041600 | ||
263539897 | CbFb | B | May 31, 2024, 6:32 p.m. | OK | PyPy 3 | TESTS | 9 | 296 | 7884800 | ||
263522451 | FliccEatsPizza | B | May 31, 2024, 3:55 p.m. | OK | PyPy 3 | TESTS | 9 | 312 | 8294400 | ||
263497367 | GeforceRTX | B | May 31, 2024, 12:31 p.m. | OK | PyPy 3 | TESTS | 9 | 327 | 9728000 | ||
263672506 | NicoLadendorf | B | June 1, 2024, 6:54 p.m. | OK | PyPy 3-64 | TESTS | 9 | 93 | 3072000 | ||
263577378 | Shri_874 | B | June 1, 2024, 5:19 a.m. | OK | PyPy 3-64 | TESTS | 9 | 108 | 3481600 | ||
263538690 | Om_Singh_ | B | May 31, 2024, 6:20 p.m. | OK | PyPy 3-64 | TESTS | 9 | 108 | 3788800 | ||
263512522 | sidsrf | B | May 31, 2024, 2:31 p.m. | OK | PyPy 3-64 | TESTS | 9 | 124 | 2560000 | ||
263524546 | singh.eureka | B | May 31, 2024, 4:13 p.m. | OK | PyPy 3-64 | TESTS | 9 | 124 | 3174400 | ||
263547008 | strashila | B | May 31, 2024, 8:04 p.m. | OK | PyPy 3-64 | TESTS | 9 | 124 | 3686400 | ||
263500738 | mgoldy925 | B | May 31, 2024, 12:53 p.m. | OK | PyPy 3-64 | TESTS | 9 | 124 | 3891200 | ||
263502953 | NitroSpear | B | May 31, 2024, 1:11 p.m. | OK | PyPy 3-64 | TESTS | 9 | 124 | 4096000 | ||
263603267 | shenge | B | June 1, 2024, 9:03 a.m. | OK | PyPy 3-64 | TESTS | 9 | 124 | 4198400 | ||
263502430 | siic | B | May 31, 2024, 1:07 p.m. | OK | PyPy 3-64 | TESTS | 9 | 139 | 4300800 | ||
263538656 | Om_Singh_ | B | May 31, 2024, 6:19 p.m. | OK | Python 3 | TESTS | 9 | 93 | 0 | ||
263507899 | lucnguyen030608 | B | May 31, 2024, 1:54 p.m. | OK | Python 3 | TESTS | 9 | 109 | 0 | ||
263579264 | Decoder_RAG | B | June 1, 2024, 5:40 a.m. | OK | Python 3 | TESTS | 9 | 124 | 0 | ||
263502893 | krishnanunnir503 | B | May 31, 2024, 1:10 p.m. | OK | Python 3 | TESTS | 9 | 124 | 0 | ||
263497195 | mukhashnurislam | B | May 31, 2024, 12:30 p.m. | OK | Python 3 | TESTS | 9 | 124 | 0 | ||
263552925 | MuazzemHussainKhan | B | May 31, 2024, 9:52 p.m. | OK | Python 3 | TESTS | 9 | 140 | 0 | ||
263610438 | himanshu_855 | B | June 1, 2024, 10:04 a.m. | OK | Python 3 | TESTS | 9 | 155 | 0 | ||
263497469 | seeforty4040 | B | May 31, 2024, 12:31 p.m. | OK | Python 3 | TESTS | 9 | 156 | 0 | ||
263634302 | NS3081992 | B | June 1, 2024, 1:18 p.m. | OK | Python 3 | TESTS | 9 | 171 | 0 | ||
263585072 | sergei.samoilov | B | June 1, 2024, 6:34 a.m. | OK | Python 3 | TESTS | 9 | 171 | 0 | ||
263518999 | vstiff | B | May 31, 2024, 3:25 p.m. | OK | Rust 2021 | TESTS | 9 | 46 | 0 | ||
263681807 | fieubat2x | B | June 1, 2024, 9:21 p.m. | OK | Rust 2021 | TESTS | 9 | 61 | 0 |
Back to search problems