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 |
---|---|---|---|---|---|---|
1562 | Codeforces Round 741 (Div. 2) | FINISHED | False | 8100 | 107277863 | Aug. 26, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 25775 ) | A | The Miracle and the Sleeper | PROGRAMMING | greedy math |
B'You are given two integers l and r , l <= r . Find the largest possible value of a bmod b over all pairs (a, b) of integers for which r ge a ge b ge l . As a reminder, a bmod b is a remainder we get when dividing a by b . For example, 26 bmod 8 = 2 . Each test contains multiple test cases. The first line contains one positive integer t (1 <= t <= 10^4) , denoting the number of test cases. Description of the test cases follows. The only line of each test case contains two integers l , r ( 1 <= l <= r <= 10^9 ). For every test case, output the largest possible value of a bmod b over all pairs (a, b) of integers for which r ge a ge b ge l . In the first test case, the only allowed pair is (a, b) = (1, 1) , for which a bmod b = 1 bmod 1 = 0 . In the second test case, the optimal choice is pair (a, b) = (1000000000, 999999999) , for which a bmod b = 1 . '... |
Editorial of Codeforces Round 741 (Div. 2) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
127134252 | ssvb | A | Aug. 26, 2021, 6:35 p.m. | OK | D | TESTS | 5 | 62 | 4812800 | ||
127140220 | iamrhythmic | A | Aug. 26, 2021, 8:19 p.m. | OK | GNU C11 | TESTS | 5 | 46 | 3686400 | ||
127156902 | amitola | A | Aug. 27, 2021, 4:09 a.m. | OK | GNU C11 | TESTS | 5 | 61 | 3686400 | ||
127148628 | Leasier | A | Aug. 27, 2021, 1:33 a.m. | OK | GNU C11 | TESTS | 5 | 61 | 3686400 | ||
127122714 | p2002upman | A | Aug. 26, 2021, 4:43 p.m. | OK | GNU C11 | TESTS | 5 | 62 | 3686400 | ||
127148369 | cs20b1018 | A | Aug. 27, 2021, 1:28 a.m. | OK | GNU C11 | TESTS | 5 | 62 | 3686400 | ||
127160834 | ar_rony1 | A | Aug. 27, 2021, 5:12 a.m. | OK | GNU C11 | TESTS | 5 | 62 | 3686400 | ||
127159631 | iamrick | A | Aug. 27, 2021, 4:55 a.m. | OK | GNU C++14 | TESTS | 5 | 15 | 3686400 | ||
127159571 | xyizd | A | Aug. 27, 2021, 4:54 a.m. | OK | GNU C++14 | TESTS | 5 | 15 | 3686400 | ||
127158967 | rancho16 | A | Aug. 27, 2021, 4:46 a.m. | OK | GNU C++14 | TESTS | 5 | 15 | 3686400 | ||
127157045 | moonlate | A | Aug. 27, 2021, 4:11 a.m. | OK | GNU C++14 | TESTS | 5 | 15 | 3686400 | ||
127163591 | jack_void | A | Aug. 27, 2021, 5:52 a.m. | OK | GNU C++14 | TESTS | 5 | 15 | 3686400 | ||
127162662 | Simransv1402 | A | Aug. 27, 2021, 5:40 a.m. | OK | GNU C++14 | TESTS | 5 | 15 | 3686400 | ||
127162473 | cyrxdzj | A | Aug. 27, 2021, 5:37 a.m. | OK | GNU C++14 | TESTS | 5 | 15 | 3686400 | ||
127161542 | zeon_1903147 | A | Aug. 27, 2021, 5:23 a.m. | OK | GNU C++14 | TESTS | 5 | 15 | 3686400 | ||
127160437 | nrastogi941 | A | Aug. 27, 2021, 5:07 a.m. | OK | GNU C++14 | TESTS | 5 | 15 | 3686400 | ||
127159930 | ssohit111 | A | Aug. 27, 2021, 4:59 a.m. | OK | GNU C++14 | TESTS | 5 | 15 | 3686400 | ||
127161469 | Ashish_12 | A | Aug. 27, 2021, 5:22 a.m. | OK | GNU C++17 | TESTS | 5 | 15 | 3686400 | ||
127160638 | pirobolta | A | Aug. 27, 2021, 5:10 a.m. | OK | GNU C++17 | TESTS | 5 | 15 | 3686400 | ||
127160612 | AnshU.2100 | A | Aug. 27, 2021, 5:10 a.m. | OK | GNU C++17 | TESTS | 5 | 15 | 3686400 | ||
127160255 | 755352046 | A | Aug. 27, 2021, 5:04 a.m. | OK | GNU C++17 | TESTS | 5 | 15 | 3686400 | ||
127160853 | msvardhan19 | A | Aug. 27, 2021, 5:13 a.m. | OK | GNU C++17 | TESTS | 5 | 15 | 3686400 | ||
127164116 | mubin_akib | A | Aug. 27, 2021, 5:59 a.m. | OK | GNU C++17 | TESTS | 5 | 15 | 3686400 | ||
127163542 | GhostRiley | A | Aug. 27, 2021, 5:52 a.m. | OK | GNU C++17 | TESTS | 5 | 15 | 3686400 | ||
127163386 | Karan_Bishnoi | A | Aug. 27, 2021, 5:50 a.m. | OK | GNU C++17 | TESTS | 5 | 15 | 3686400 | ||
127162838 | Deadcoder11u2 | A | Aug. 27, 2021, 5:42 a.m. | OK | GNU C++17 | TESTS | 5 | 15 | 3686400 | ||
127162506 | quantum-ant | A | Aug. 27, 2021, 5:37 a.m. | OK | GNU C++17 | TESTS | 5 | 15 | 3686400 | ||
127128133 | m.hasan01 | A | Aug. 26, 2021, 5:41 p.m. | OK | GNU C++17 (64) | TESTS | 5 | 0 | 4300800 | ||
127153706 | Sriram_2002 | A | Aug. 27, 2021, 3:16 a.m. | OK | GNU C++17 (64) | TESTS | 5 | 15 | 4300800 | ||
127161619 | alif_cse_ju | A | Aug. 27, 2021, 5:24 a.m. | OK | GNU C++17 (64) | TESTS | 5 | 15 | 4300800 | ||
127161336 | dutinmeow | A | Aug. 27, 2021, 5:20 a.m. | OK | GNU C++17 (64) | TESTS | 5 | 15 | 4300800 | ||
127158107 | AfLZK | A | Aug. 27, 2021, 4:30 a.m. | OK | GNU C++17 (64) | TESTS | 5 | 15 | 4300800 | ||
127157973 | yash19_pro | A | Aug. 27, 2021, 4:28 a.m. | OK | GNU C++17 (64) | TESTS | 5 | 15 | 4300800 | ||
127157779 | kushagra3288 | A | Aug. 27, 2021, 4:25 a.m. | OK | GNU C++17 (64) | TESTS | 5 | 15 | 4300800 | ||
127155887 | zxnb123 | A | Aug. 27, 2021, 3:52 a.m. | OK | GNU C++17 (64) | TESTS | 5 | 15 | 4300800 | ||
127154803 | CODERGARV | A | Aug. 27, 2021, 3:34 a.m. | OK | GNU C++17 (64) | TESTS | 5 | 15 | 4300800 | ||
127153913 | Lxzy_Zby | A | Aug. 27, 2021, 3:19 a.m. | OK | GNU C++17 (64) | TESTS | 5 | 15 | 4300800 | ||
127150968 | huangxuepeng | A | Aug. 27, 2021, 2:23 a.m. | OK | Go | TESTS | 5 | 638 | 10649600 | ||
127145006 | codicon wizwilzo | A | Aug. 26, 2021, 11:23 p.m. | OK | Java 11 | TESTS | 5 | 171 | 23756800 | ||
127137246 | KarMa_ | A | Aug. 26, 2021, 7:18 p.m. | OK | Java 11 | TESTS | 5 | 171 | 23756800 | ||
127133422 | pili | A | Aug. 26, 2021, 6:24 p.m. | OK | Java 11 | TESTS | 5 | 171 | 23756800 | ||
127130415 | anubhav44044 | A | Aug. 26, 2021, 5:55 p.m. | OK | Java 11 | TESTS | 5 | 171 | 23756800 | ||
127151925 | Arjun-Ichiban | A | Aug. 27, 2021, 2:43 a.m. | OK | Java 11 | TESTS | 5 | 186 | 23756800 | ||
127134297 | bittubittu | A | Aug. 26, 2021, 6:35 p.m. | OK | Java 11 | TESTS | 5 | 186 | 23859200 | ||
127130020 | _Body | A | Aug. 26, 2021, 5:52 p.m. | OK | Java 11 | TESTS | 5 | 186 | 23859200 | ||
127156090 | SaberXpro | A | Aug. 27, 2021, 3:55 a.m. | OK | Java 11 | TESTS | 5 | 187 | 23756800 | ||
127136719 | adhi_2311 | A | Aug. 26, 2021, 7:09 p.m. | OK | Java 11 | TESTS | 5 | 187 | 23756800 | ||
127146765 | mphillotry | A | Aug. 27, 2021, 12:42 a.m. | OK | Java 11 | TESTS | 5 | 187 | 23859200 | ||
127134602 | rsingh3_be18 | A | Aug. 26, 2021, 6:39 p.m. | OK | Java 8 | TESTS | 5 | 108 | 20480000 | ||
127131686 | pdk.abhishek | A | Aug. 26, 2021, 6:06 p.m. | OK | Java 8 | TESTS | 5 | 109 | 20480000 | ||
127128007 | arjunbhatt670 | A | Aug. 26, 2021, 5:41 p.m. | OK | Java 8 | TESTS | 5 | 109 | 20480000 | ||
127163922 | priyam_anand | A | Aug. 27, 2021, 5:57 a.m. | OK | Java 8 | TESTS | 5 | 124 | 20480000 | ||
127132912 | gagan_6730 | A | Aug. 26, 2021, 6:18 p.m. | OK | Java 8 | TESTS | 5 | 124 | 20480000 | ||
127132175 | potatocoder-_- | A | Aug. 26, 2021, 6:10 p.m. | OK | Java 8 | TESTS | 5 | 124 | 20480000 | ||
127131920 | medude | A | Aug. 26, 2021, 6:08 p.m. | OK | Java 8 | TESTS | 5 | 124 | 20480000 | ||
127151062 | parascoding1 | A | Aug. 27, 2021, 2:25 a.m. | OK | Java 8 | TESTS | 5 | 124 | 20582400 | ||
127150834 | aggarwalanshul01 | A | Aug. 27, 2021, 2:20 a.m. | OK | Java 8 | TESTS | 5 | 124 | 20582400 | ||
127148179 | amit_roy | A | Aug. 27, 2021, 1:23 a.m. | OK | Java 8 | TESTS | 5 | 155 | 20480000 | ||
127123617 | hitmyer | A | Aug. 26, 2021, 4:45 p.m. | OK | Kotlin | TESTS | 5 | 234 | 21811200 | ||
127141156 | msobdev | A | Aug. 26, 2021, 8:45 p.m. | OK | Kotlin | TESTS | 5 | 249 | 21811200 | ||
127153236 | Score12122 | A | Aug. 27, 2021, 3:08 a.m. | OK | MS C++ 2017 | TESTS | 5 | 15 | 3686400 | ||
127139269 | whiteReboot | A | Aug. 26, 2021, 7:57 p.m. | OK | MS C++ 2017 | TESTS | 5 | 46 | 3788800 | ||
127124934 | GILGAMESH | A | Aug. 26, 2021, 4:48 p.m. | OK | MS C++ 2017 | TESTS | 5 | 46 | 3788800 | ||
127131273 | Tangerine | A | Aug. 26, 2021, 6:02 p.m. | OK | MS C++ 2017 | TESTS | 5 | 61 | 3686400 | ||
127162188 | komalsatwik2002 | A | Aug. 27, 2021, 5:32 a.m. | OK | MS C++ 2017 | TESTS | 5 | 62 | 3686400 | ||
127158195 | Aayush_Goyal | A | Aug. 27, 2021, 4:32 a.m. | OK | MS C++ 2017 | TESTS | 5 | 62 | 3686400 | ||
127146302 | _Rimjhim_36 | A | Aug. 27, 2021, 12:25 a.m. | OK | MS C++ 2017 | TESTS | 5 | 62 | 3788800 | ||
127134675 | pranay03 | A | Aug. 26, 2021, 6:40 p.m. | OK | MS C++ 2017 | TESTS | 5 | 62 | 3788800 | ||
127142842 | d3l3t3_my_l1f3 | A | Aug. 26, 2021, 9:41 p.m. | OK | MS C++ 2017 | TESTS | 5 | 77 | 3686400 | ||
127150822 | T_ly | A | Aug. 27, 2021, 2:20 a.m. | OK | MS C++ 2017 | TESTS | 5 | 77 | 3788800 | ||
127146909 | guanghechen | A | Aug. 27, 2021, 12:48 a.m. | OK | Node.js | TESTS | 5 | 109 | 35942400 | ||
127128489 | tryingit | A | Aug. 26, 2021, 5:43 p.m. | OK | Node.js | TESTS | 5 | 233 | 17817600 | ||
127161598 | MadinaN | A | Aug. 27, 2021, 5:24 a.m. | OK | PHP | TESTS | 5 | 77 | 6041600 | ||
127136794 | nhipata | A | Aug. 26, 2021, 7:10 p.m. | OK | PyPy 2 | TESTS | 5 | 218 | 32358400 | ||
127134350 | akshitm16 | A | Aug. 26, 2021, 6:36 p.m. | OK | PyPy 3 | TESTS | 5 | 139 | 24473600 | ||
127163319 | __Broly__ | A | Aug. 27, 2021, 5:49 a.m. | OK | PyPy 3 | TESTS | 5 | 140 | 22835200 | ||
127140092 | Het_Fadia | A | Aug. 26, 2021, 8:15 p.m. | OK | PyPy 3 | TESTS | 5 | 140 | 24371200 | ||
127128361 | kirito18086 | A | Aug. 26, 2021, 5:42 p.m. | OK | PyPy 3 | TESTS | 5 | 140 | 24576000 | ||
127134666 | light_yagami52 | A | Aug. 26, 2021, 6:40 p.m. | OK | PyPy 3 | TESTS | 5 | 140 | 24780800 | ||
127134423 | rishabhrao | A | Aug. 26, 2021, 6:37 p.m. | OK | PyPy 3 | TESTS | 5 | 140 | 24780800 | ||
127132408 | harshk_1729 | A | Aug. 26, 2021, 6:13 p.m. | OK | PyPy 3 | TESTS | 5 | 155 | 24780800 | ||
127133078 | ps_12 | A | Aug. 26, 2021, 6:19 p.m. | OK | PyPy 3 | TESTS | 5 | 170 | 24780800 | ||
127146791 | songtae | A | Aug. 27, 2021, 12:43 a.m. | OK | PyPy 3 | TESTS | 5 | 171 | 24473600 | ||
127140068 | Het_Fadia | A | Aug. 26, 2021, 8:15 p.m. | OK | PyPy 3 | TESTS | 5 | 186 | 25600000 | ||
127136754 | faysalf | A | Aug. 26, 2021, 7:10 p.m. | OK | Python 3 | TESTS | 5 | 92 | 6963200 | ||
127135053 | RACHITJAISWAL | A | Aug. 26, 2021, 6:45 p.m. | OK | Python 3 | TESTS | 5 | 93 | 7168000 | ||
127132152 | lordniks18 | A | Aug. 26, 2021, 6:10 p.m. | OK | Python 3 | TESTS | 5 | 93 | 7168000 | ||
127154783 | codemakerself | A | Aug. 27, 2021, 3:33 a.m. | OK | Python 3 | TESTS | 5 | 93 | 7270400 | ||
127149745 | DeepLearner123 | A | Aug. 27, 2021, 1:58 a.m. | OK | Python 3 | TESTS | 5 | 93 | 7680000 | ||
127150434 | puffc0rn | A | Aug. 27, 2021, 2:12 a.m. | OK | Python 3 | TESTS | 5 | 124 | 7884800 | ||
127149829 | ta2612 | A | Aug. 27, 2021, 1:59 a.m. | OK | Python 3 | TESTS | 5 | 139 | 6758400 | ||
127142180 | kuzhamuratov | A | Aug. 26, 2021, 9:18 p.m. | OK | Python 3 | TESTS | 5 | 139 | 6758400 | ||
127131380 | Arix | A | Aug. 26, 2021, 6:03 p.m. | OK | Python 3 | TESTS | 5 | 139 | 6758400 | ||
127127924 | srinivasanpalay | A | Aug. 26, 2021, 5:41 p.m. | OK | Python 3 | TESTS | 5 | 139 | 6758400 | ||
127156766 | DMCoder | A | Aug. 27, 2021, 4:06 a.m. | OK | Rust | TESTS | 5 | 30 | 3788800 | ||
127161806 | bnurgeldiyev514 | A | Aug. 27, 2021, 5:27 a.m. | OK | Rust | TESTS | 5 | 124 | 3788800 |
Back to search problems