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 |
---|---|---|---|---|---|---|
1855 | Codeforces Round 889 (Div. 2) | FINISHED | False | 9000 | 46538663 | July 29, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 28667 ) | B | Longest Divisors Interval | PROGRAMMING | brute force combinatorics greedy math number theory |
B"Given a positive integer n , find the maximum size of an interval [l, r] of positive integers such that, for every i in the interval (i.e., l <= q i <= q r ), n is a multiple of i . Given two integers l <= r , the size of the interval [l, r] is r-l+1 (i.e., it coincides with the number of integers belonging to the interval). The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The only line of the description of each test case contains one integer n ( 1 <= q n <= q 10^{18} ). For each test case, print a single integer: the maximum size of a valid interval. In the first test case, a valid interval with maximum size is [1, 1] (it's valid because n = 1 is a multiple of 1 ) and its size is 1 . In the second test case, a valid interval with maximum size is [4, 5] (it's valid because n = 40 is a multiple of 4 and 5 ) and its size is 2 . In the third test case, a valid interval with maximum size is [9, 11] . In the fourth test case, a valid interval with maximum size is [8, 13] . In the seventh test case, a valid interval with maximum size is [327869, 327871] . "... |
Editorial of Codeforces Round 889 (Div. 1 + Div. 2) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
216378654 | zwu2022015071 | B | July 30, 2023, 12:10 a.m. | OK | Clang++17 Diagnostics | TESTS | 10 | 155 | 1024000 | ||
216378823 | zwu2022015071 | B | July 30, 2023, 12:14 a.m. | OK | Clang++17 Diagnostics | TESTS | 10 | 170 | 0 | ||
216390680 | xxxxxxxb | B | July 30, 2023, 3:45 a.m. | OK | Clang++20 Diagnostics | TESTS | 10 | 124 | 0 | ||
216390286 | xxxxxxxb | B | July 30, 2023, 3:39 a.m. | OK | Clang++20 Diagnostics | TESTS | 10 | 156 | 0 | ||
216348078 | cleverk1ng | B | July 29, 2023, 5:59 p.m. | OK | GNU C11 | TESTS | 10 | 46 | 0 | ||
216380077 | jmawa1163 | B | July 30, 2023, 12:46 a.m. | OK | GNU C11 | TESTS | 10 | 46 | 0 | ||
216401698 | iffatul_anon | B | July 30, 2023, 6:01 a.m. | OK | GNU C11 | TESTS | 10 | 46 | 0 | ||
216353895 | chowdhuryshashwoto | B | July 29, 2023, 6:38 p.m. | OK | GNU C11 | TESTS | 10 | 46 | 0 | ||
216343773 | Knight4267 | B | July 29, 2023, 5:42 p.m. | OK | GNU C11 | TESTS | 10 | 46 | 0 | ||
216345569 | iffatul_anon | B | July 29, 2023, 5:48 p.m. | OK | GNU C11 | TESTS | 10 | 46 | 0 | ||
216345662 | iffatul_anon | B | July 29, 2023, 5:48 p.m. | OK | GNU C11 | TESTS | 10 | 46 | 0 | ||
216368074 | Vikas_29 | B | July 29, 2023, 8:55 p.m. | OK | GNU C11 | TESTS | 10 | 61 | 0 | ||
216390692 | huoqt | B | July 30, 2023, 3:45 a.m. | OK | GNU C11 | TESTS | 10 | 171 | 409600 | ||
216380163 | jmawa1163 | B | July 30, 2023, 12:48 a.m. | OK | GNU C11 | TESTS | 10 | 187 | 0 | ||
216397393 | gty314159 | B | July 30, 2023, 5:14 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | ||
216400999 | makerlife | B | July 30, 2023, 5:54 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | ||
216400425 | ddxrS | B | July 30, 2023, 5:48 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | ||
216398267 | Tlk_Aver | B | July 30, 2023, 5:24 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | ||
216395259 | Cvam27 | B | July 30, 2023, 4:47 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | ||
216393120 | xxx2022 | B | July 30, 2023, 4:20 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | ||
216392655 | Li_yi_hang | B | July 30, 2023, 4:13 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | ||
216391335 | luogu_bot4 | B | July 30, 2023, 3:54 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | ||
216391080 | cxh315 | B | July 30, 2023, 3:50 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | ||
216390977 | little_wa | B | July 30, 2023, 3:49 a.m. | OK | GNU C++14 | TESTS | 10 | 15 | 0 | ||
216396371 | raj715426aditya | B | July 30, 2023, 5:01 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | ||
216397385 | anooprai.123 | B | July 30, 2023, 5:14 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | ||
216397705 | ys_yuvraj | B | July 30, 2023, 5:17 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | ||
216398268 | muhammed_222 | B | July 30, 2023, 5:24 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | ||
216399801 | iamattri0001 | B | July 30, 2023, 5:40 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | ||
216400058 | Eren_25 | B | July 30, 2023, 5:44 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | ||
216396626 | gjlccc | B | July 30, 2023, 5:05 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | ||
216400145 | gehlotbhopesh007 | B | July 30, 2023, 5:45 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | ||
216395436 | tarun_s | B | July 30, 2023, 4:49 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | ||
216401144 | jisas | B | July 30, 2023, 5:55 a.m. | OK | GNU C++17 | TESTS | 10 | 15 | 0 | ||
216373048 | Hytidel | B | July 29, 2023, 10:04 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 0 | 0 | ||
216377089 | Geothermal | B | July 29, 2023, 11:30 p.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | ||
216398182 | deities | B | July 30, 2023, 5:23 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | ||
216397672 | RIZWAN_7575 | B | July 30, 2023, 5:17 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | ||
216388216 | Coldmou4 | B | July 30, 2023, 3:08 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | ||
216387161 | Citnaris | B | July 30, 2023, 2:50 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | ||
216383031 | VnoiJudge | B | July 30, 2023, 1:43 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | ||
216382156 | Giga_Cronos | B | July 30, 2023, 1:27 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | ||
216380417 | Once_I_Liked_AGirl | B | July 30, 2023, 12:54 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | ||
216378484 | youssefmontaser | B | July 30, 2023, 12:06 a.m. | OK | GNU C++17 (64) | TESTS | 10 | 15 | 0 | ||
216382522 | maspy | B | July 30, 2023, 1:33 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | ||
216397432 | Ultimus007 | B | July 30, 2023, 5:14 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | ||
216396106 | javed_008 | B | July 30, 2023, 4:58 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | ||
216392508 | jiuzheba | B | July 30, 2023, 4:11 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | ||
216391520 | HarshitSPakhariya | B | July 30, 2023, 3:56 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | ||
216388331 | tarjen | B | July 30, 2023, 3:10 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | ||
216385445 | _SUGAR__DADDY_ | B | July 30, 2023, 2:23 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | ||
216384987 | chen62540 | B | July 30, 2023, 2:16 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | ||
216380337 | chen0121 | B | July 30, 2023, 12:52 a.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | ||
216361981 | taemie | B | July 29, 2023, 7:52 p.m. | OK | GNU C++20 (64) | TESTS | 10 | 0 | 0 | ||
216383011 | hzEnv | B | July 30, 2023, 1:42 a.m. | OK | Go | TESTS | 10 | 31 | 204800 | ||
216374992 | relativitiX | B | July 29, 2023, 10:41 p.m. | OK | Go | TESTS | 10 | 46 | 1228800 | ||
216349186 | vijender_8601 | B | July 29, 2023, 6:06 p.m. | OK | Java 11 | TESTS | 10 | 186 | 0 | ||
216348491 | snkv | B | July 29, 2023, 6:02 p.m. | OK | Java 11 | TESTS | 10 | 187 | 0 | ||
216343845 | shojin_pro | B | July 29, 2023, 5:42 p.m. | OK | Java 11 | TESTS | 10 | 187 | 0 | ||
216396740 | Harshvardhan_Codeforces | B | July 30, 2023, 5:06 a.m. | OK | Java 11 | TESTS | 10 | 202 | 0 | ||
216354267 | Vikas_Ahlawat | B | July 29, 2023, 6:40 p.m. | OK | Java 11 | TESTS | 10 | 202 | 7270400 | ||
216396744 | sarvesh_bawari | B | July 30, 2023, 5:06 a.m. | OK | Java 11 | TESTS | 10 | 202 | 31129600 | ||
216373789 | InfinitePath | B | July 29, 2023, 10:17 p.m. | OK | Java 11 | TESTS | 10 | 218 | 40243200 | ||
216352552 | Siyaram_13 | B | July 29, 2023, 6:28 p.m. | OK | Java 11 | TESTS | 10 | 280 | 0 | ||
216382760 | Siddharth_78 | B | July 30, 2023, 1:38 a.m. | OK | Java 11 | TESTS | 10 | 311 | 0 | ||
216351610 | April2021 | B | July 29, 2023, 6:21 p.m. | OK | Java 11 | TESTS | 10 | 311 | 0 | ||
216348120 | Utsav82 | B | July 29, 2023, 6 p.m. | OK | Java 17 | TESTS | 10 | 171 | 307200 | ||
216358427 | Zkrallah_ | B | July 29, 2023, 7:17 p.m. | OK | Java 17 | TESTS | 10 | 187 | 307200 | ||
216352597 | mlangc | B | July 29, 2023, 6:28 p.m. | OK | Java 17 | TESTS | 10 | 187 | 716800 | ||
216368150 | anacharsis | B | July 29, 2023, 8:56 p.m. | OK | Java 17 | TESTS | 10 | 202 | 409600 | ||
216363300 | shashankp10 | B | July 29, 2023, 8:05 p.m. | OK | Java 17 | TESTS | 10 | 202 | 716800 | ||
216365003 | Suraj1607 | B | July 29, 2023, 8:22 p.m. | OK | Java 17 | TESTS | 10 | 217 | 614400 | ||
216366186 | Saish31 | B | July 29, 2023, 8:35 p.m. | OK | Java 17 | TESTS | 10 | 249 | 716800 | ||
216385207 | Sulta | B | July 30, 2023, 2:20 a.m. | OK | Java 17 | TESTS | 10 | 264 | 512000 | ||
216349413 | Zakaria_Eysa | B | July 29, 2023, 6:07 p.m. | OK | Java 17 | TESTS | 10 | 264 | 716800 | ||
216392521 | AKhacks | B | July 30, 2023, 4:11 a.m. | OK | Java 17 | TESTS | 10 | 265 | 409600 | ||
216371694 | ahmeddragon700 | B | July 29, 2023, 9:41 p.m. | OK | Java 8 | TESTS | 10 | 108 | 0 | ||
216348715 | This_is_Rish | B | July 29, 2023, 6:03 p.m. | OK | Java 8 | TESTS | 10 | 109 | 0 | ||
216357283 | tejasS-27 | B | July 29, 2023, 7:07 p.m. | OK | Java 8 | TESTS | 10 | 124 | 0 | ||
216343702 | Sanat04 | B | July 29, 2023, 5:42 p.m. | OK | Java 8 | TESTS | 10 | 124 | 0 | ||
216398785 | 1091857051 | B | July 30, 2023, 5:29 a.m. | OK | Java 8 | TESTS | 10 | 156 | 0 | ||
216394305 | codechefpurpose2023 | B | July 30, 2023, 4:34 a.m. | OK | Java 8 | TESTS | 10 | 186 | 0 | ||
216358037 | BishoEzzat | B | July 29, 2023, 7:13 p.m. | OK | Java 8 | TESTS | 10 | 202 | 0 | ||
216357941 | BishoEzzat | B | July 29, 2023, 7:13 p.m. | OK | Java 8 | TESTS | 10 | 202 | 0 | ||
216350603 | Zakaria_Eysa | B | July 29, 2023, 6:14 p.m. | OK | Java 8 | TESTS | 10 | 218 | 0 | ||
216375465 | kevin91827 | B | July 29, 2023, 10:51 p.m. | OK | Java 8 | TESTS | 10 | 264 | 0 | ||
216360368 | TechGeek0001 | B | July 29, 2023, 7:37 p.m. | OK | MS C++ 2017 | TESTS | 10 | 61 | 0 | ||
216374755 | 18_kkhaki | B | July 29, 2023, 10:35 p.m. | OK | MS C++ 2017 | TESTS | 10 | 62 | 0 | ||
216348395 | Vlad1000_nn | B | July 29, 2023, 6:01 p.m. | OK | MS C++ 2017 | TESTS | 10 | 62 | 0 | ||
216347729 | maikh07 | B | July 29, 2023, 5:58 p.m. | OK | MS C++ 2017 | TESTS | 10 | 62 | 0 | ||
216347716 | BMW_CS_ | B | July 29, 2023, 5:58 p.m. | OK | MS C++ 2017 | TESTS | 10 | 62 | 0 | ||
216348227 | Vlad1000_nn | B | July 29, 2023, 6 p.m. | OK | MS C++ 2017 | TESTS | 10 | 1013 | 0 | ||
216349893 | illusioncyk | B | July 29, 2023, 6:10 p.m. | OK | PyPy 3 | TESTS | 10 | 109 | 5222400 | ||
216348976 | jvatsal0709 | B | July 29, 2023, 6:04 p.m. | OK | PyPy 3 | TESTS | 10 | 155 | 6963200 | ||
216363436 | Compiler_10 | B | July 29, 2023, 8:07 p.m. | OK | PyPy 3 | TESTS | 10 | 265 | 5222400 | ||
216347035 | anshu271 | B | July 29, 2023, 5:54 p.m. | OK | PyPy 3 | TESTS | 10 | 452 | 6758400 | ||
216393053 | nealzane | B | July 30, 2023, 4:18 a.m. | OK | PyPy 3-64 | TESTS | 10 | 78 | 5632000 | ||
216384700 | Youarenotgood | B | July 30, 2023, 2:11 a.m. | OK | PyPy 3-64 | TESTS | 10 | 92 | 5836800 | ||
216370662 | Track-Days | B | July 29, 2023, 9:26 p.m. | OK | PyPy 3-64 | TESTS | 10 | 92 | 5836800 | ||
216366590 | sakai | B | July 29, 2023, 8:39 p.m. | OK | PyPy 3-64 | TESTS | 10 | 93 | 2662400 | ||
216357149 | plshelpme | B | July 29, 2023, 7:05 p.m. | OK | PyPy 3-64 | TESTS | 10 | 93 | 5939200 | ||
216359617 | AndreiZherder | B | July 29, 2023, 7:29 p.m. | OK | PyPy 3-64 | TESTS | 10 | 93 | 6246400 | ||
216386201 | Keval_78 | B | July 30, 2023, 2:35 a.m. | OK | PyPy 3-64 | TESTS | 10 | 93 | 136089600 | ||
216352368 | Mohamed_Hamed | B | July 29, 2023, 6:26 p.m. | OK | PyPy 3-64 | TESTS | 10 | 108 | 6860800 | ||
216363658 | Super_Misha | B | July 29, 2023, 8:09 p.m. | OK | PyPy 3-64 | TESTS | 10 | 108 | 8601600 | ||
216348575 | DavidLoo | B | July 29, 2023, 6:02 p.m. | OK | PyPy 3-64 | TESTS | 10 | 109 | 6860800 | ||
216382345 | pennymagic156 | B | July 30, 2023, 1:30 a.m. | OK | Python 3 | TESTS | 10 | 62 | 204800 | ||
216350840 | hydro_7 | B | July 29, 2023, 6:16 p.m. | OK | Python 3 | TESTS | 10 | 77 | 512000 | ||
216374625 | bugmaker_bgbg | B | July 29, 2023, 10:33 p.m. | OK | Python 3 | TESTS | 10 | 78 | 204800 | ||
216352744 | kuzinow | B | July 29, 2023, 6:29 p.m. | OK | Python 3 | TESTS | 10 | 93 | 0 | ||
216392191 | FeehamSzYr | B | July 30, 2023, 4:06 a.m. | OK | Python 3 | TESTS | 10 | 108 | 0 | ||
216382878 | okay4869 | B | July 30, 2023, 1:40 a.m. | OK | Python 3 | TESTS | 10 | 108 | 0 | ||
216381044 | letamquang220805 | B | July 30, 2023, 1:07 a.m. | OK | Python 3 | TESTS | 10 | 108 | 0 | ||
216392152 | Duduchih4 | B | July 30, 2023, 4:06 a.m. | OK | Python 3 | TESTS | 10 | 108 | 307200 | ||
216396751 | abhi_10 | B | July 30, 2023, 5:06 a.m. | OK | Python 3 | TESTS | 10 | 109 | 0 | ||
216395720 | palash1414 | B | July 30, 2023, 4:53 a.m. | OK | Python 3 | TESTS | 10 | 109 | 0 | ||
216382409 | rusty_ferris | B | July 30, 2023, 1:31 a.m. | OK | Rust 2021 | TESTS | 10 | 93 | 0 | ||
216364650 | riverbl | B | July 29, 2023, 8:19 p.m. | OK | Rust 2021 | TESTS | 10 | 108 | 0 |
Back to search problems