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 |
---|---|---|---|---|---|---|
1370 | Codeforces Round 651 (Div. 2) | FINISHED | False | 8100 | 144516263 | June 20, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 54232 ) | A | Maximum GCD | PROGRAMMING | brute force greedy implementation number theory |
B"Let's consider all integers in the range from 1 to n (inclusive). Among all pairs of distinct integers in this range, find the maximum possible greatest common divisor of integers in pair. Formally, find the maximum value of mathrm{gcd}(a, b) , where 1 <= q a < b <= q n . The greatest common divisor, mathrm{gcd}(a, b) , of two positive integers a and b is the biggest integer that is a divisor of both a and b . The first line contains a single integer t ( 1 <= q t <= q 100 ) -- the number of test cases. The description of the test cases follows. The only line of each test case contains a single integer n ( 2 <= q n <= q 10^6 ). For each test case, output the maximum value of mathrm{gcd}(a, b) among all 1 <= q a < b <= q n . In the first test case, mathrm{gcd}(1, 2) = mathrm{gcd}(2, 3) = mathrm{gcd}(1, 3) = 1 . In the second test case, 2 is the maximum possible value, corresponding to mathrm{gcd}(2, 4) . "... |
Editorial — Codeforces Round #651 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
84518988 | Prantha_Debonath | A | June 20, 2020, 6:26 p.m. | OK | Clang++17 Diagnostics | TESTS | 11 | 31 | 0 | ||
84475801 | Gassa | A | June 20, 2020, 3:39 p.m. | OK | D | TESTS | 11 | 31 | 0 | ||
84537972 | fpc_coder | A | June 21, 2020, 12:38 a.m. | OK | FPC | TESTS | 11 | 31 | 0 | ||
84518477 | butter_fly | A | June 20, 2020, 6:22 p.m. | OK | GNU C11 | TESTS | 11 | 15 | 0 | ||
84522143 | aadarsh_aadi | A | June 20, 2020, 6:55 p.m. | OK | GNU C11 | TESTS | 11 | 15 | 0 | ||
84522154 | alionleo33 | A | June 20, 2020, 6:55 p.m. | OK | GNU C11 | TESTS | 11 | 15 | 0 | ||
84534438 | vjudge3 | A | June 20, 2020, 10:23 p.m. | OK | GNU C11 | TESTS | 11 | 15 | 0 | ||
84490308 | rainboy | A | June 20, 2020, 4:05 p.m. | OK | GNU C11 | TESTS | 11 | 15 | 0 | ||
84490581 | _7sp1 | A | June 20, 2020, 4:06 p.m. | OK | GNU C11 | TESTS | 11 | 15 | 0 | ||
84489378 | pro_shudipto424 | A | June 20, 2020, 4:03 p.m. | OK | GNU C11 | TESTS | 11 | 15 | 0 | ||
84492379 | Eftekhar_Nahim_CoU14 | A | June 20, 2020, 4:09 p.m. | OK | GNU C11 | TESTS | 11 | 15 | 0 | ||
84498543 | anish_goyal | A | June 20, 2020, 4:22 p.m. | OK | GNU C11 | TESTS | 11 | 15 | 0 | ||
84500605 | archikag5 | A | June 20, 2020, 4:27 p.m. | OK | GNU C11 | TESTS | 11 | 15 | 0 | ||
84540379 | lwz159 | A | June 21, 2020, 2:06 a.m. | OK | GNU C++11 | TESTS | 11 | 15 | 0 | ||
84540213 | alikoptan | A | June 21, 2020, 2:01 a.m. | OK | GNU C++11 | TESTS | 11 | 15 | 0 | ||
84539832 | sri_akshya_18 | A | June 21, 2020, 1:47 a.m. | OK | GNU C++11 | TESTS | 11 | 15 | 0 | ||
84539505 | shengzihang | A | June 21, 2020, 1:36 a.m. | OK | GNU C++11 | TESTS | 11 | 15 | 0 | ||
84544279 | kair011a_ | A | June 21, 2020, 3:45 a.m. | OK | GNU C++11 | TESTS | 11 | 15 | 0 | ||
84543706 | Pacific | A | June 21, 2020, 3:33 a.m. | OK | GNU C++11 | TESTS | 11 | 15 | 0 | ||
84542623 | huhst2020_007 | A | June 21, 2020, 3:08 a.m. | OK | GNU C++11 | TESTS | 11 | 15 | 0 | ||
84541135 | Jay142753869 | A | June 21, 2020, 2:28 a.m. | OK | GNU C++11 | TESTS | 11 | 15 | 0 | ||
84540799 | KhandokerEbrahim | A | June 21, 2020, 2:18 a.m. | OK | GNU C++11 | TESTS | 11 | 15 | 0 | ||
84540568 | ezboy | A | June 21, 2020, 2:12 a.m. | OK | GNU C++11 | TESTS | 11 | 15 | 0 | ||
84535792 | NaimSS | A | June 20, 2020, 11:08 p.m. | OK | GNU C++14 | TESTS | 11 | 15 | 0 | ||
84538802 | Momin_Just | A | June 21, 2020, 1:09 a.m. | OK | GNU C++14 | TESTS | 11 | 15 | 0 | ||
84541467 | Fahad006 | A | June 21, 2020, 2:38 a.m. | OK | GNU C++14 | TESTS | 11 | 15 | 0 | ||
84542566 | Ttube_lightT | A | June 21, 2020, 3:07 a.m. | OK | GNU C++14 | TESTS | 11 | 15 | 0 | ||
84533223 | killer_ash | A | June 20, 2020, 9:52 p.m. | OK | GNU C++14 | TESTS | 11 | 15 | 0 | ||
84531681 | SuperJ6 | A | June 20, 2020, 9:17 p.m. | OK | GNU C++14 | TESTS | 11 | 15 | 0 | ||
84526410 | 12Arpit | A | June 20, 2020, 7:50 p.m. | OK | GNU C++14 | TESTS | 11 | 15 | 0 | ||
84519571 | halfBlood7 | A | June 20, 2020, 6:30 p.m. | OK | GNU C++14 | TESTS | 11 | 15 | 0 | ||
84519328 | kharsh032 | A | June 20, 2020, 6:28 p.m. | OK | GNU C++14 | TESTS | 11 | 15 | 0 | ||
84517696 | DurjOy | A | June 20, 2020, 6:16 p.m. | OK | GNU C++14 | TESTS | 11 | 15 | 0 | ||
84523932 | Utkarsh1409 | A | June 20, 2020, 7:17 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 0 | ||
84544496 | ayushzaveri05 | A | June 21, 2020, 3:50 a.m. | OK | GNU C++17 | TESTS | 11 | 15 | 0 | ||
84535318 | emrulhasan | A | June 20, 2020, 10:51 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 0 | ||
84534327 | AcarusJunior | A | June 20, 2020, 10:20 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 0 | ||
84524556 | Shakib_SRK | A | June 20, 2020, 7:25 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 0 | ||
84522619 | Chevli | A | June 20, 2020, 7:01 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 0 | ||
84518367 | Rishabh_garg | A | June 20, 2020, 6:21 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 0 | ||
84515860 | user_72 | A | June 20, 2020, 6:06 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 0 | ||
84498754 | chaitanya_perikila | A | June 20, 2020, 4:23 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 0 | ||
84478633 | Sha3ban_El-Bay | A | June 20, 2020, 3:44 p.m. | OK | GNU C++17 | TESTS | 11 | 15 | 0 | ||
84525222 | quadraticreciprocity | A | June 20, 2020, 7:34 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 0 | ||
84527744 | MZuenni | A | June 20, 2020, 8:09 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 0 | ||
84529226 | errorgorn | A | June 20, 2020, 8:32 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 0 | ||
84530826 | mrboorger | A | June 20, 2020, 9 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 0 | ||
84531330 | alexistoigo | A | June 20, 2020, 9:10 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 0 | ||
84533846 | danielvitor23 | A | June 20, 2020, 10:07 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 0 | ||
84537334 | i_am_noob | A | June 21, 2020, 12:13 a.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 0 | ||
84537351 | pussybuster | A | June 21, 2020, 12:14 a.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 0 | ||
84537542 | S_A_P | A | June 21, 2020, 12:21 a.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 0 | ||
84538997 | lynmisakura | A | June 21, 2020, 1:17 a.m. | OK | GNU C++17 (64) | TESTS | 11 | 15 | 0 | ||
84476054 | minimario | A | June 20, 2020, 3:40 p.m. | OK | Haskell | TESTS | 11 | 15 | 0 | ||
84490223 | irredeemablyalone | A | June 20, 2020, 4:05 p.m. | OK | Java 11 | TESTS | 11 | 155 | 0 | ||
84517957 | saniya3010 | A | June 20, 2020, 6:18 p.m. | OK | Java 11 | TESTS | 11 | 171 | 0 | ||
84535483 | esaric | A | June 20, 2020, 10:57 p.m. | OK | Java 11 | TESTS | 11 | 171 | 0 | ||
84533918 | Clowyy | A | June 20, 2020, 10:09 p.m. | OK | Java 11 | TESTS | 11 | 171 | 0 | ||
84531140 | R3KT | A | June 20, 2020, 9:06 p.m. | OK | Java 11 | TESTS | 11 | 171 | 0 | ||
84522659 | steve_rogers123 | A | June 20, 2020, 7:01 p.m. | OK | Java 11 | TESTS | 11 | 171 | 0 | ||
84522161 | litesam | A | June 20, 2020, 6:55 p.m. | OK | Java 11 | TESTS | 11 | 171 | 0 | ||
84517248 | GOD_ | A | June 20, 2020, 6:14 p.m. | OK | Java 11 | TESTS | 11 | 171 | 0 | ||
84505142 | adityarathi | A | June 20, 2020, 4:36 p.m. | OK | Java 11 | TESTS | 11 | 171 | 0 | ||
84482486 | urjarock | A | June 20, 2020, 3:51 p.m. | OK | Java 11 | TESTS | 11 | 171 | 0 | ||
84484277 | samrat_97 | A | June 20, 2020, 3:54 p.m. | OK | Java 8 | TESTS | 11 | 93 | 0 | ||
84541224 | mananparmar7042 | A | June 21, 2020, 2:30 a.m. | OK | Java 8 | TESTS | 11 | 108 | 0 | ||
84538825 | bluesky111 | A | June 21, 2020, 1:10 a.m. | OK | Java 8 | TESTS | 11 | 108 | 0 | ||
84527949 | beroul | A | June 20, 2020, 8:12 p.m. | OK | Java 8 | TESTS | 11 | 108 | 0 | ||
84525696 | zhou.sw | A | June 20, 2020, 7:40 p.m. | OK | Java 8 | TESTS | 11 | 108 | 0 | ||
84524112 | atish1999 | A | June 20, 2020, 7:19 p.m. | OK | Java 8 | TESTS | 11 | 108 | 0 | ||
84520242 | Bdeveloper | A | June 20, 2020, 6:36 p.m. | OK | Java 8 | TESTS | 11 | 108 | 0 | ||
84516206 | sourav2999 | A | June 20, 2020, 6:08 p.m. | OK | Java 8 | TESTS | 11 | 108 | 0 | ||
84544141 | Shantanu_Rathod | A | June 21, 2020, 3:42 a.m. | OK | Java 8 | TESTS | 11 | 109 | 0 | ||
84542663 | Manan8686 | A | June 21, 2020, 3:09 a.m. | OK | Java 8 | TESTS | 11 | 109 | 0 | ||
84523100 | notAProgrammer_NAP | A | June 20, 2020, 7:06 p.m. | OK | JavaScript | TESTS | 11 | 31 | 1024000 | ||
84540207 | sylvyrfysh | A | June 21, 2020, 2 a.m. | OK | Kotlin | TESTS | 11 | 109 | 0 | ||
84529369 | krishnarb3 | A | June 20, 2020, 8:35 p.m. | OK | Kotlin | TESTS | 11 | 124 | 0 | ||
84507793 | samir143009 | A | June 20, 2020, 4:42 p.m. | OK | Mono C# | TESTS | 11 | 62 | 0 | ||
84521434 | ansergeyg | A | June 20, 2020, 6:47 p.m. | OK | Mono C# | TESTS | 11 | 155 | 0 | ||
84476666 | sukant_1608 | A | June 20, 2020, 3:41 p.m. | OK | MS C++ | TESTS | 11 | 31 | 0 | ||
84486132 | maryemsalah | A | June 20, 2020, 3:57 p.m. | OK | MS C++ | TESTS | 11 | 46 | 0 | ||
84528084 | DiSTRuCtO | A | June 20, 2020, 8:14 p.m. | OK | MS C++ 2017 | TESTS | 11 | 31 | 0 | ||
84525607 | Vitazzz | A | June 20, 2020, 7:39 p.m. | OK | MS C++ 2017 | TESTS | 11 | 31 | 0 | ||
84520423 | alibabaand40haramies | A | June 20, 2020, 6:38 p.m. | OK | MS C++ 2017 | TESTS | 11 | 31 | 0 | ||
84519455 | Husne_Matar | A | June 20, 2020, 6:29 p.m. | OK | MS C++ 2017 | TESTS | 11 | 31 | 0 | ||
84482199 | Quenenty | A | June 20, 2020, 3:50 p.m. | OK | MS C++ 2017 | TESTS | 11 | 31 | 0 | ||
84476784 | radwaahmed213 | A | June 20, 2020, 3:41 p.m. | OK | MS C++ 2017 | TESTS | 11 | 31 | 0 | ||
84542904 | manthansharma154 | A | June 21, 2020, 3:15 a.m. | OK | MS C++ 2017 | TESTS | 11 | 31 | 0 | ||
84544444 | mathgeek145 | A | June 21, 2020, 3:49 a.m. | OK | MS C++ 2017 | TESTS | 11 | 31 | 0 | ||
84543486 | pengyule | A | June 21, 2020, 3:28 a.m. | OK | MS C++ 2017 | TESTS | 11 | 46 | 0 | ||
84483793 | Sanju_14 | A | June 20, 2020, 3:53 p.m. | OK | MS C++ 2017 | TESTS | 11 | 46 | 0 | ||
84512246 | OmniSliver | A | June 20, 2020, 4:49 p.m. | OK | Node.js | TESTS | 11 | 93 | 204800 | ||
84525325 | explorer_sifat | A | June 20, 2020, 7:35 p.m. | OK | Node.js | TESTS | 11 | 109 | 102400 | ||
84488470 | sarvagya8 | A | June 20, 2020, 4:02 p.m. | OK | Node.js | TESTS | 11 | 982 | 9625600 | ||
84477488 | Desolater | A | June 20, 2020, 3:42 p.m. | OK | PascalABC.NET | TESTS | 11 | 342 | 409600 | ||
84540121 | yinlei | A | June 21, 2020, 1:57 a.m. | OK | PHP | TESTS | 11 | 31 | 409600 | ||
84509672 | Gokulan_cv | A | June 20, 2020, 4:45 p.m. | OK | PyPy 2 | TESTS | 11 | 467 | 17817600 | ||
84516929 | p1ckl | A | June 20, 2020, 6:11 p.m. | OK | PyPy 3 | TESTS | 11 | 124 | 0 | ||
84538164 | ayushag99 | A | June 21, 2020, 12:45 a.m. | OK | PyPy 3 | TESTS | 11 | 124 | 0 | ||
84530139 | cgfs10000 | A | June 20, 2020, 8:48 p.m. | OK | PyPy 3 | TESTS | 11 | 124 | 0 | ||
84519929 | pj21 | A | June 20, 2020, 6:34 p.m. | OK | PyPy 3 | TESTS | 11 | 124 | 0 | ||
84481164 | JustChecking | A | June 20, 2020, 3:48 p.m. | OK | PyPy 3 | TESTS | 11 | 139 | 0 | ||
84541738 | coder_pk | A | June 21, 2020, 2:46 a.m. | OK | PyPy 3 | TESTS | 11 | 139 | 0 | ||
84524542 | AbhiC7721 | A | June 20, 2020, 7:25 p.m. | OK | PyPy 3 | TESTS | 11 | 139 | 0 | ||
84502664 | LozhkaVilka | A | June 20, 2020, 4:31 p.m. | OK | PyPy 3 | TESTS | 11 | 139 | 0 | ||
84487989 | faking_legend | A | June 20, 2020, 4:01 p.m. | OK | PyPy 3 | TESTS | 11 | 139 | 0 | ||
84482280 | revathi13 | A | June 20, 2020, 3:50 p.m. | OK | PyPy 3 | TESTS | 11 | 139 | 0 | ||
84529470 | ShadhinAshraf | A | June 20, 2020, 8:36 p.m. | OK | Python 2 | TESTS | 11 | 171 | 0 | ||
84528194 | sirjan13 | A | June 20, 2020, 8:16 p.m. | OK | Python 2 | TESTS | 11 | 171 | 0 | ||
84483774 | avltree | A | June 20, 2020, 3:53 p.m. | OK | Python 2 | TESTS | 11 | 171 | 0 | ||
84538692 | mmhaxor1 | A | June 21, 2020, 1:04 a.m. | OK | Python 3 | TESTS | 11 | 93 | 0 | ||
84531302 | WNG | A | June 20, 2020, 9:09 p.m. | OK | Python 3 | TESTS | 11 | 93 | 0 | ||
84519259 | shel404 | A | June 20, 2020, 6:28 p.m. | OK | Python 3 | TESTS | 11 | 93 | 0 | ||
84516306 | akuma_z | A | June 20, 2020, 6:08 p.m. | OK | Python 3 | TESTS | 11 | 93 | 0 | ||
84516106 | WATLEACRE | A | June 20, 2020, 6:07 p.m. | OK | Python 3 | TESTS | 11 | 93 | 0 | ||
84488823 | devesh-pande | A | June 20, 2020, 4:02 p.m. | OK | Python 3 | TESTS | 11 | 93 | 0 | ||
84488750 | nejii_7 | A | June 20, 2020, 4:02 p.m. | OK | Python 3 | TESTS | 11 | 93 | 0 | ||
84481324 | Supriyo_SS | A | June 20, 2020, 3:49 p.m. | OK | Python 3 | TESTS | 11 | 93 | 0 | ||
84476876 | fortran7 | A | June 20, 2020, 3:41 p.m. | OK | Python 3 | TESTS | 11 | 93 | 0 | ||
84533003 | rajkumar19084 | A | June 20, 2020, 9:47 p.m. | OK | Python 3 | TESTS | 11 | 108 | 0 |
Back to search problems