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 |
---|---|---|---|---|---|---|
1603 | Codeforces Round 752 (Div. 1) | FINISHED | False | 7200 | 101661863 | Oct. 30, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 712 ) | D | Artistic Partition | PROGRAMMING | divide and conquer dp number theory | 3000 |
B'For two positive integers l and r ( l <= r ) let c(l, r) denote the number of integer pairs (i, j) such that l <= i <= j <= r and operatorname{gcd}(i, j) ge l . Here, operatorname{gcd}(i, j) is the greatest common divisor (GCD) of integers i and j . YouKn0wWho has two integers n and k where 1 <= k <= n . Let f(n, k) denote the minimum of sum limits_{i=1}^{k}{c(x_i+1,x_{i+1})} over all integer sequences 0=x_1 lt x_2 lt ldots lt x_{k} lt x_{k+1}=n . Help YouKn0wWho find f(n, k) . The first line contains a single integer t ( 1 <= t <= 3 cdot 10^5 ) -- the number of test cases. The first and only line of each test case contains two integers n and k ( 1 <= k <= n <= 10^5 ). For each test case, print a single integer -- f(n, k) . In the first test case, YouKn0wWho can select the sequence [0, 2, 6] . So f(6, 2) = c(1, 2) + c(3, 6) = 3 + 5 = 8 which is the minimum possible. '... |
Editorial of Codeforces Round #752 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
133722160 | Melania | D | Oct. 31, 2021, 5:24 a.m. | OK | GNU C++14 | TESTS | 26 | 436 | 16691200 | 3000 | |
133716748 | locsey | D | Oct. 31, 2021, 3:46 a.m. | OK | GNU C++14 | TESTS | 26 | 576 | 16793600 | 3000 | |
133677564 | Noam527 | D | Oct. 30, 2021, 4:20 p.m. | OK | GNU C++14 | TESTS | 26 | 982 | 28467200 | 3000 | |
133675080 | Karry5307_AK_NOI2021 | D | Oct. 30, 2021, 4:14 p.m. | OK | GNU C++14 | TESTS | 26 | 1263 | 36556800 | 3000 | |
133684744 | A-SOUL_Diana | D | Oct. 30, 2021, 4:34 p.m. | OK | GNU C++14 | TESTS | 26 | 1715 | 36659200 | 3000 | |
133714669 | Lenstar | D | Oct. 31, 2021, 3:01 a.m. | OK | GNU C++17 | TESTS | 26 | 421 | 19456000 | 3000 | |
133668504 | hank55663 | D | Oct. 30, 2021, 3:58 p.m. | OK | GNU C++17 | TESTS | 26 | 452 | 22732800 | 3000 | |
133690185 | hydd | D | Oct. 30, 2021, 5:46 p.m. | OK | GNU C++17 | TESTS | 26 | 1122 | 20070400 | 3000 | |
133688503 | hydd | D | Oct. 30, 2021, 5:33 p.m. | OK | GNU C++17 | TESTS | 26 | 1123 | 20582400 | 3000 | |
133718278 | abcde1202 | D | Oct. 31, 2021, 4:19 a.m. | OK | GNU C++17 | TESTS | 26 | 1138 | 20070400 | 3000 | |
133716935 | BSBandme | D | Oct. 31, 2021, 3:50 a.m. | OK | GNU C++17 | TESTS | 26 | 1169 | 556339200 | 3000 | |
133695211 | nick452 | D | Oct. 30, 2021, 6:38 p.m. | OK | GNU C++17 | TESTS | 26 | 1450 | 18124800 | 3000 | |
133675403 | KoharuHondomachi | D | Oct. 30, 2021, 4:15 p.m. | OK | GNU C++17 | TESTS | 26 | 1482 | 510054400 | 3000 | |
133717009 | MoRanSky | D | Oct. 31, 2021, 3:52 a.m. | OK | GNU C++17 | TESTS | 26 | 1684 | 530227200 | 3000 | |
133690566 | A-SOUL_Diana | D | Oct. 30, 2021, 5:49 p.m. | OK | GNU C++17 | TESTS | 26 | 1731 | 36659200 | 3000 | |
133680485 | Endagorion | D | Oct. 30, 2021, 4:27 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 390 | 19660800 | 3000 | |
133715744 | JeovaSantusUnus | D | Oct. 31, 2021, 3:24 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 576 | 19353600 | 3000 | |
133697930 | errorgorn | D | Oct. 30, 2021, 7:12 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 732 | 437555200 | 3000 | |
133697891 | errorgorn | D | Oct. 30, 2021, 7:11 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 779 | 437555200 | 3000 | |
133693510 | codelegend | D | Oct. 30, 2021, 6:19 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 795 | 19251200 | 3000 | |
133689761 | ecnerwala | D | Oct. 30, 2021, 5:42 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 889 | 36352000 | 3000 | |
133674549 | AutumnKite | D | Oct. 30, 2021, 4:13 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 904 | 28979200 | 3000 | |
133678586 | Alan233 | D | Oct. 30, 2021, 4:23 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 935 | 29798400 | 3000 | |
133679885 | froggyzhang | D | Oct. 30, 2021, 4:26 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 982 | 30208000 | 3000 | |
133710086 | 2021BecomeGM | D | Oct. 31, 2021, 12:42 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 1107 | 28979200 | 3000 | |
133687406 | antekb | D | Oct. 30, 2021, 5:26 p.m. | OK | GNU C++20 (64) | TESTS | 26 | 358 | 17305600 | 3000 | |
133715726 | RiverHamster | D | Oct. 31, 2021, 3:24 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 561 | 89395200 | 3000 | |
133670044 | gyh20 | D | Oct. 30, 2021, 4:02 p.m. | OK | GNU C++20 (64) | TESTS | 26 | 717 | 33382400 | 3000 | |
133715630 | RiverHamster | D | Oct. 31, 2021, 3:21 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 795 | 89190400 | 3000 | |
133674123 | jiangIy | D | Oct. 30, 2021, 4:12 p.m. | OK | GNU C++20 (64) | TESTS | 26 | 1092 | 18534400 | 3000 | |
133667904 | Miracle03 | D | Oct. 30, 2021, 3:57 p.m. | OK | GNU C++20 (64) | TESTS | 26 | 1294 | 55398400 | 3000 | |
133724735 | HolyK | D | Oct. 31, 2021, 5:59 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 1403 | 531763200 | 3000 | |
133689044 | dengyaotriangle | D | Oct. 30, 2021, 5:36 p.m. | OK | GNU C++20 (64) | TESTS | 26 | 1606 | 731340800 | 3000 | |
133663811 | jiangly | D | Oct. 30, 2021, 3:47 p.m. | OK | GNU C++20 (64) | TESTS | 26 | 2089 | 806297600 | 3000 | |
133719818 | couplefire | D | Oct. 31, 2021, 4:48 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 2245 | 32051200 | 3000 |
Back to search problems