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 |
---|---|---|---|---|---|---|
1717 | Codeforces Round 818 (Div. 2) | FINISHED | False | 7200 | 75137063 | Sept. 2, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 19691 ) | A | Madoka and Strange Thoughts | PROGRAMMING | math number theory | #combinatorics#C. Lucky Numbers | 800 |
B"Madoka is a very strange girl, and therefore she suddenly wondered how many pairs of integers (a, b) exist, where 1 <= q a, b <= q n , for which frac{ operatorname{lcm}(a, b)}{ operatorname{gcd}(a, b)} <= q 3 . In this problem, operatorname{gcd}(a, b) denotes the greatest common divisor of the numbers a and b , and operatorname{lcm}(a, b) denotes the smallest common multiple of the numbers a and b . The input consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Description of the test cases follows. The first and the only line of each test case contains the integer n ( 1 <= n <= 10^8 ). For each test case output a single integer -- the number of pairs of integers satisfying the condition. For n = 1 there is exactly one pair of numbers -- (1, 1) and it fits. For n = 2 , there are only 4 pairs -- (1, 1) , (1, 2) , (2, 1) , (2, 2) and they all fit. For n = 3 , all 9 pair are suitable, except (2, 3) and (3, 2) , since their operatorname{lcm} is 6 , and operatorname{gcd} is 1 , which doesn't fit the condition. "... |
Codeforces Round #818 (Div. 2) Editorial. |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
170642164 | Quadrendeed | A | Sept. 2, 2022, 4:23 p.m. | OK | C# 10 | TESTS | 2 | 62 | 716800 | 800 | |
170685821 | singhkrishnajsr143 | A | Sept. 3, 2022, 3:01 a.m. | OK | C# 10 | TESTS | 3 | 77 | 614400 | 800 | |
170684597 | PhamLeHaAn | A | Sept. 3, 2022, 2:39 a.m. | OK | Clang++17 Diagnostics | TESTS | 3 | 93 | 102400 | 800 | |
170686015 | ShobhitKr_3 | A | Sept. 3, 2022, 3:04 a.m. | OK | Clang++20 Diagnostics | TESTS | 3 | 93 | 0 | 800 | |
170675255 | ksnitc25 | A | Sept. 2, 2022, 10:49 p.m. | OK | Clang++20 Diagnostics | TESTS | 2 | 140 | 0 | 800 | |
170651296 | eastnman | A | Sept. 2, 2022, 5:04 p.m. | OK | FPC | TESTS | 2 | 31 | 204800 | 800 | |
170654313 | DarkWillow | A | Sept. 2, 2022, 5:29 p.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | 800 | |
170654007 | ichi_kd | A | Sept. 2, 2022, 5:26 p.m. | OK | GNU C11 | TESTS | 2 | 31 | 0 | 800 | |
170684488 | eswar_13 | A | Sept. 3, 2022, 2:37 a.m. | OK | GNU C11 | TESTS | 3 | 46 | 0 | 800 | |
170697008 | morodmiya21 | A | Sept. 3, 2022, 5:56 a.m. | OK | GNU C11 | TESTS | 3 | 46 | 0 | 800 | |
170648076 | kumarsaurav3575 | A | Sept. 2, 2022, 4:47 p.m. | OK | GNU C11 | TESTS | 2 | 46 | 0 | 800 | |
170651893 | exhasan | A | Sept. 2, 2022, 5:09 p.m. | OK | GNU C11 | TESTS | 2 | 46 | 0 | 800 | |
170667565 | namanpahwa20 | A | Sept. 2, 2022, 8:07 p.m. | OK | GNU C11 | TESTS | 2 | 46 | 0 | 800 | |
170658111 | abdullah__92 | A | Sept. 2, 2022, 6:06 p.m. | OK | GNU C11 | TESTS | 2 | 61 | 0 | 800 | |
170662197 | niloy789 | A | Sept. 2, 2022, 6:53 p.m. | OK | GNU C11 | TESTS | 2 | 62 | 0 | 800 | |
170686455 | BOOGXOAXCA | A | Sept. 3, 2022, 3:12 a.m. | OK | GNU C11 | TESTS | 3 | 202 | 200396800 | 800 | |
170691638 | superzhl | A | Sept. 3, 2022, 4:45 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
170690005 | sahibsingh139 | A | Sept. 3, 2022, 4:18 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
170689648 | shenlongwoaini | A | Sept. 3, 2022, 4:12 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
170686065 | duoluoluo | A | Sept. 3, 2022, 3:05 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
170684090 | tybbs | A | Sept. 3, 2022, 2:29 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
170682980 | flashtester | A | Sept. 3, 2022, 2:06 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
170678371 | LzjNotFound | A | Sept. 3, 2022, 12:07 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
170696546 | akie.c | A | Sept. 3, 2022, 5:50 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
170696284 | practicetowin | A | Sept. 3, 2022, 5:47 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
170694452 | aditya_pratap | A | Sept. 3, 2022, 5:23 a.m. | OK | GNU C++14 | TESTS | 3 | 0 | 0 | 800 | |
170687710 | velpro. | A | Sept. 3, 2022, 3:33 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
170687821 | govindyadav2058 | A | Sept. 3, 2022, 3:35 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
170688237 | LLLVTA | A | Sept. 3, 2022, 3:45 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
170688651 | _BEKZAT_ | A | Sept. 3, 2022, 3:53 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
170689079 | 2016153230 | A | Sept. 3, 2022, 4:02 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
170690040 | Yogi_123 | A | Sept. 3, 2022, 4:18 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
170695865 | sokian | A | Sept. 3, 2022, 5:41 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
170684219 | KoryuKory | A | Sept. 3, 2022, 2:32 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
170680372 | PoptartBob | A | Sept. 3, 2022, 1:03 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
170679399 | Tesla_Nicola | A | Sept. 3, 2022, 12:35 a.m. | OK | GNU C++17 | TESTS | 3 | 0 | 0 | 800 | |
170682809 | mQfZ | A | Sept. 3, 2022, 2:02 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
170696171 | rookie174 | A | Sept. 3, 2022, 5:45 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
170695047 | Time_JYF | A | Sept. 3, 2022, 5:31 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
170689272 | Eter.nal | A | Sept. 3, 2022, 4:05 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
170688718 | Ufimia | A | Sept. 3, 2022, 3:54 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
170686712 | kumarnimit0316 | A | Sept. 3, 2022, 3:16 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
170685891 | BBBBAO | A | Sept. 3, 2022, 3:02 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
170685573 | osamaBelal | A | Sept. 3, 2022, 2:57 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
170682431 | iprom | A | Sept. 3, 2022, 1:54 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
170682246 | RohitRKS | A | Sept. 3, 2022, 1:50 a.m. | OK | GNU C++17 (64) | TESTS | 3 | 0 | 0 | 800 | |
170693536 | wonderful_trip | A | Sept. 3, 2022, 5:11 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
170693774 | BibarysK | A | Sept. 3, 2022, 5:15 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
170694052 | _Apurbo_ | A | Sept. 3, 2022, 5:18 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
170694319 | sp_0510 | A | Sept. 3, 2022, 5:21 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
170694445 | Dinh_Quang_Huy | A | Sept. 3, 2022, 5:23 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
170694458 | Shivendra0510 | A | Sept. 3, 2022, 5:23 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
170694562 | verma_2000 | A | Sept. 3, 2022, 5:24 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
170695929 | himanshu222 | A | Sept. 3, 2022, 5:42 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
170696036 | fuxianyang Dog_food_is_me | A | Sept. 3, 2022, 5:44 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
170697184 | UtTaRaN | A | Sept. 3, 2022, 5:58 a.m. | OK | GNU C++20 (64) | TESTS | 3 | 0 | 0 | 800 | |
170658971 | koqo | A | Sept. 2, 2022, 6:15 p.m. | OK | Go | TESTS | 2 | 31 | 204800 | 800 | |
170697246 | sf14t | A | Sept. 3, 2022, 5:59 a.m. | OK | Java 11 | TESTS | 3 | 155 | 0 | 800 | |
170679464 | satyaa_78 | A | Sept. 3, 2022, 12:37 a.m. | OK | Java 11 | TESTS | 3 | 155 | 0 | 800 | |
170648384 | no_pes | A | Sept. 2, 2022, 4:47 p.m. | OK | Java 11 | TESTS | 2 | 155 | 0 | 800 | |
170653712 | samitdas03 | A | Sept. 2, 2022, 5:24 p.m. | OK | Java 11 | TESTS | 2 | 156 | 0 | 800 | |
170655230 | dpsn743 | A | Sept. 2, 2022, 5:38 p.m. | OK | Java 11 | TESTS | 2 | 170 | 0 | 800 | |
170696074 | __Serendipity | A | Sept. 3, 2022, 5:44 a.m. | OK | Java 11 | TESTS | 3 | 171 | 0 | 800 | |
170645038 | Spidey2182 | A | Sept. 2, 2022, 4:30 p.m. | OK | Java 11 | TESTS | 2 | 171 | 0 | 800 | |
170645950 | Casey_1412109 | A | Sept. 2, 2022, 4:32 p.m. | OK | Java 11 | TESTS | 2 | 217 | 0 | 800 | |
170658386 | AyushS_cg170 | A | Sept. 2, 2022, 6:09 p.m. | OK | Java 11 | TESTS | 2 | 218 | 0 | 800 | |
170695553 | x21svage | A | Sept. 3, 2022, 5:37 a.m. | OK | Java 11 | TESTS | 3 | 233 | 0 | 800 | |
170655219 | ivanshubin | A | Sept. 2, 2022, 5:38 p.m. | OK | Java 17 | TESTS | 2 | 139 | 0 | 800 | |
170660873 | YO07 | A | Sept. 2, 2022, 6:37 p.m. | OK | Java 17 | TESTS | 2 | 140 | 0 | 800 | |
170640208 | shubhanshu_jha14 | A | Sept. 2, 2022, 4:18 p.m. | OK | Java 17 | TESTS | 2 | 155 | 0 | 800 | |
170688712 | maverick_1729 | A | Sept. 3, 2022, 3:54 a.m. | OK | Java 17 | TESTS | 3 | 171 | 40960000 | 800 | |
170656753 | Ali04 | A | Sept. 2, 2022, 5:53 p.m. | OK | Java 17 | TESTS | 2 | 202 | 0 | 800 | |
170655858 | Abhishek_821023 | A | Sept. 2, 2022, 5:44 p.m. | OK | Java 17 | TESTS | 2 | 217 | 204800 | 800 | |
170647051 | 20501A05H3 | A | Sept. 2, 2022, 4:34 p.m. | OK | Java 17 | TESTS | 2 | 233 | 0 | 800 | |
170644336 | jagajeet-puttaa | A | Sept. 2, 2022, 4:28 p.m. | OK | Java 17 | TESTS | 2 | 233 | 0 | 800 | |
170656307 | ac9117033 | A | Sept. 2, 2022, 5:48 p.m. | OK | Java 17 | TESTS | 2 | 265 | 0 | 800 | |
170674835 | leonlian | A | Sept. 2, 2022, 10:37 p.m. | OK | Java 8 | TESTS | 2 | 62 | 0 | 800 | |
170674047 | Sussykin | A | Sept. 2, 2022, 10:15 p.m. | OK | Java 8 | TESTS | 2 | 77 | 0 | 800 | |
170652166 | AFouad204 | A | Sept. 2, 2022, 5:11 p.m. | OK | Java 8 | TESTS | 2 | 77 | 0 | 800 | |
170674406 | ganesh_6 | A | Sept. 2, 2022, 10:25 p.m. | OK | Java 8 | TESTS | 2 | 78 | 0 | 800 | |
170668791 | Melsonic | A | Sept. 2, 2022, 8:26 p.m. | OK | Java 8 | TESTS | 2 | 78 | 0 | 800 | |
170654092 | Lyashenko | A | Sept. 2, 2022, 5:27 p.m. | OK | Java 8 | TESTS | 2 | 78 | 0 | 800 | |
170669369 | tumsenahoga | A | Sept. 2, 2022, 8:35 p.m. | OK | Java 8 | TESTS | 2 | 92 | 0 | 800 | |
170683055 | anshulchou_123 | A | Sept. 3, 2022, 2:08 a.m. | OK | Java 8 | TESTS | 3 | 93 | 0 | 800 | |
170662829 | Koka | A | Sept. 2, 2022, 7:01 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | 800 | |
170651092 | karamkontar | A | Sept. 2, 2022, 5:03 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | 800 | |
170650345 | _gyunghoe_ | A | Sept. 2, 2022, 4:58 p.m. | OK | Kotlin 1.6 | TESTS | 2 | 248 | 0 | 800 | |
170639486 | NooB_VansH | A | Sept. 2, 2022, 4:16 p.m. | OK | MS C++ 2017 | TESTS | 2 | 0 | 0 | 800 | |
170652150 | MohammedSB | A | Sept. 2, 2022, 5:11 p.m. | OK | MS C++ 2017 | TESTS | 2 | 30 | 0 | 800 | |
170692549 | KinnGiFe | A | Sept. 3, 2022, 4:58 a.m. | OK | MS C++ 2017 | TESTS | 3 | 31 | 0 | 800 | |
170641532 | rviswanadhapalli | A | Sept. 2, 2022, 4:21 p.m. | OK | MS C++ 2017 | TESTS | 2 | 31 | 0 | 800 | |
170689170 | 6ziv | A | Sept. 3, 2022, 4:03 a.m. | OK | MS C++ 2017 | TESTS | 3 | 31 | 2355200 | 800 | |
170692554 | adesh123 | A | Sept. 3, 2022, 4:58 a.m. | OK | MS C++ 2017 | TESTS | 3 | 46 | 0 | 800 | |
170685784 | wawawawa1 | A | Sept. 3, 2022, 3 a.m. | OK | MS C++ 2017 | TESTS | 3 | 46 | 0 | 800 | |
170668226 | gkukanov | A | Sept. 2, 2022, 8:17 p.m. | OK | MS C++ 2017 | TESTS | 2 | 46 | 0 | 800 | |
170664874 | MoAdelEzz | A | Sept. 2, 2022, 7:27 p.m. | OK | MS C++ 2017 | TESTS | 2 | 46 | 0 | 800 | |
170656526 | Rhnvrma | A | Sept. 2, 2022, 5:50 p.m. | OK | MS C++ 2017 | TESTS | 2 | 46 | 0 | 800 | |
170649955 | 784 | A | Sept. 2, 2022, 4:55 p.m. | OK | Perl | TESTS | 2 | 15 | 921600 | 800 | |
170648182 | 1_2_3_4_5_9 | A | Sept. 2, 2022, 4:47 p.m. | OK | PyPy 2 | TESTS | 2 | 124 | 6451200 | 800 | |
170665785 | titia | A | Sept. 2, 2022, 7:39 p.m. | OK | PyPy 3 | TESTS | 2 | 93 | 3788800 | 800 | |
170661986 | zxcuser2 | A | Sept. 2, 2022, 6:50 p.m. | OK | PyPy 3 | TESTS | 2 | 108 | 4096000 | 800 | |
170679418 | Jvaeyhcd | A | Sept. 3, 2022, 12:35 a.m. | OK | PyPy 3 | TESTS | 3 | 108 | 4198400 | 800 | |
170689788 | kraanzu | A | Sept. 3, 2022, 4:14 a.m. | OK | PyPy 3 | TESTS | 3 | 140 | 68403200 | 800 | |
170641238 | one_moment | A | Sept. 2, 2022, 4:21 p.m. | OK | PyPy 3 | TESTS | 2 | 218 | 5017600 | 800 | |
170649566 | akshat11 | A | Sept. 2, 2022, 4:53 p.m. | OK | PyPy 3 | TESTS | 2 | 218 | 5120000 | 800 | |
170689115 | WalrusRamen21 | A | Sept. 3, 2022, 4:03 a.m. | OK | PyPy 3 | TESTS | 3 | 233 | 5120000 | 800 | |
170664847 | yashsarda2002 | A | Sept. 2, 2022, 7:27 p.m. | OK | PyPy 3 | TESTS | 2 | 248 | 4812800 | 800 | |
170662103 | divyamkakkar24 | A | Sept. 2, 2022, 6:52 p.m. | OK | PyPy 3 | TESTS | 2 | 248 | 5324800 | 800 | |
170665019 | NapoleonB | A | Sept. 2, 2022, 7:29 p.m. | OK | PyPy 3 | TESTS | 2 | 249 | 5324800 | 800 | |
170661526 | Mustafa_arahim | A | Sept. 2, 2022, 6:45 p.m. | OK | PyPy 3-64 | TESTS | 2 | 62 | 4710400 | 800 | |
170653552 | kwin | A | Sept. 2, 2022, 5:23 p.m. | OK | PyPy 3-64 | TESTS | 2 | 62 | 5222400 | 800 | |
170680029 | ankan2526 | A | Sept. 3, 2022, 12:53 a.m. | OK | PyPy 3-64 | TESTS | 3 | 62 | 135270400 | 800 | |
170658436 | griffindor | A | Sept. 2, 2022, 6:09 p.m. | OK | PyPy 3-64 | TESTS | 2 | 77 | 3788800 | 800 | |
170681710 | InariInDream | A | Sept. 3, 2022, 1:38 a.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 3891200 | 800 | |
170693602 | nealzane | A | Sept. 3, 2022, 5:12 a.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 5017600 | 800 | |
170651475 | aniketabhiraj2004 | A | Sept. 2, 2022, 5:06 p.m. | OK | PyPy 3-64 | TESTS | 2 | 77 | 5222400 | 800 | |
170648858 | Mohamed_yousef2024 | A | Sept. 2, 2022, 4:49 p.m. | OK | PyPy 3-64 | TESTS | 2 | 77 | 5222400 | 800 | |
170641944 | jgs03177 | A | Sept. 2, 2022, 4:22 p.m. | OK | PyPy 3-64 | TESTS | 2 | 77 | 5222400 | 800 | |
170687393 | keroru | A | Sept. 3, 2022, 3:28 a.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 6144000 | 800 | |
170695079 | Ibrahim-Elsayed | A | Sept. 3, 2022, 5:31 a.m. | OK | Python 3 | TESTS | 3 | 46 | 0 | 800 | |
170640085 | giuliomanuzzi | A | Sept. 2, 2022, 4:17 p.m. | OK | Python 3 | TESTS | 2 | 46 | 307200 | 800 | |
170641148 | Harry_yash | A | Sept. 2, 2022, 4:20 p.m. | OK | Python 3 | TESTS | 2 | 61 | 0 | 800 | |
170646168 | ayushkumarkeshri442 | A | Sept. 2, 2022, 4:33 p.m. | OK | Python 3 | TESTS | 2 | 77 | 0 | 800 | |
170695522 | Pars03 | A | Sept. 3, 2022, 5:37 a.m. | OK | Python 3 | TESTS | 3 | 77 | 409600 | 800 | |
170650473 | Block_Cipher | A | Sept. 2, 2022, 4:58 p.m. | OK | Python 3 | TESTS | 2 | 92 | 0 | 800 | |
170649667 | JIRAIYA_Sama | A | Sept. 2, 2022, 4:54 p.m. | OK | Python 3 | TESTS | 2 | 92 | 0 | 800 | |
170644540 | ruchika_sonagote | A | Sept. 2, 2022, 4:29 p.m. | OK | Python 3 | TESTS | 2 | 92 | 0 | 800 | |
170644432 | YaskevichMisha | A | Sept. 2, 2022, 4:29 p.m. | OK | Python 3 | TESTS | 2 | 92 | 0 | 800 | |
170665242 | WhiteHatPandit | A | Sept. 2, 2022, 7:32 p.m. | OK | Python 3 | TESTS | 2 | 93 | 0 | 800 | |
170674592 | Svlad_Cjelli | A | Sept. 2, 2022, 10:31 p.m. | OK | Rust 2021 | TESTS | 2 | 0 | 0 | 800 | |
170670430 | kena0ki | A | Sept. 2, 2022, 8:54 p.m. | OK | Rust 2021 | TESTS | 2 | 0 | 0 | 800 | |
170679001 | Spheniscine | A | Sept. 3, 2022, 12:25 a.m. | OK | Rust 2021 | TESTS | 3 | 15 | 102400 | 800 |
Back to search problems