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 |
---|---|---|---|---|---|---|
1956 | Codeforces Round 939 (Div. 2) | FINISHED | False | 7200 | 18804299 | April 13, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 366 ) | F | Nene and the Passing Game | PROGRAMMING | constructive algorithms data structures ds graphs sortings |
B"Nene is training her team as a basketball coach. Nene's team consists of n players, numbered from 1 to n . The i -th player has an arm interval [l_i,r_i] . Two players i and j ( i neq j ) can pass the ball to each other if and only if |i-j| in[l_i+l_j,r_i+r_j] (here, |x| denotes the absolute value of x ). Nene wants to test the cooperation ability of these players. In order to do this, she will hold several rounds of assessment. As a coach, Nene wants each of n players to appear in at least one round of assessment. Since Nene has to go on a date after school, Nene wants you to calculate the minimum number of rounds of assessment needed to complete the task. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 2 cdot 10^5 ). The description of test cases follows. The first line contains a single integer n ( 1 <= n <= 2 cdot 10^6 ) -- the number of players. The i -th of the next n lines contains two integers l_i and r_i ( 1 <= q l_i <= q r_i <= q n ) -- the arm interval of the i -th player. It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^6 . For each test case, output one integer -- the minimum number of rounds of assessment Nene needs to complete her work. In the first two test cases, Nene can host two rounds of assessment: one with p=[1] and one with p=[2] . It can be shown that hosting one round of assessment is not enough, so the answer is 2 . In the third test case, Nene can host two rounds of assessment: one with p=[1,3] and one with p=[2] . Player 1 can pass the ball to player 3 as |3-1|=2 in [1+1,3+3] . It can be shown that hosting one round of assessment is not enough, so the answer is 2 . "... |
[Editorial] Codeforces Round 939 (Div. 2) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
256532358 | StarSilk | F | April 13, 2024, 4:22 p.m. | OK | C++14 (GCC 6-32) | TESTS | 58 | 2702 | 161792000 | ||
256590455 | JoesSR_ | F | April 14, 2024, 4:27 a.m. | OK | C++17 (GCC 7-32) | TESTS | 58 | 1108 | 140902400 | ||
256543320 | AverageAmogusEnjoyer | F | April 13, 2024, 5:35 p.m. | OK | C++17 (GCC 7-32) | TESTS | 58 | 1608 | 85811200 | ||
256586282 | Tobo | F | April 14, 2024, 3:20 a.m. | OK | C++17 (GCC 7-32) | TESTS | 58 | 2187 | 100556800 | ||
256579853 | liguanghan1 | F | April 14, 2024, 1:26 a.m. | OK | C++17 (GCC 7-32) | TESTS | 58 | 2687 | 137523200 | ||
256586319 | xiaoziyao | F | April 14, 2024, 3:20 a.m. | OK | C++17 (GCC 7-32) | TESTS | 58 | 3046 | 223334400 | ||
256558108 | tanishkkhandelwal92 | F | April 13, 2024, 7:27 p.m. | OK | C++17 (GCC 7-32) | TESTS | 58 | 3077 | 160358400 | ||
256576554 | Sparkle_Twilight | F | April 14, 2024, 12:17 a.m. | OK | C++17 (GCC 7-32) | TESTS | 58 | 3265 | 169267200 | ||
256572445 | liympanda | F | April 13, 2024, 10:46 p.m. | OK | C++17 (GCC 7-32) | TESTS | 58 | 3312 | 239001600 | ||
256542956 | alireza_kaviani | F | April 13, 2024, 5:33 p.m. | OK | C++17 (GCC 7-32) | TESTS | 58 | 3874 | 262348800 | ||
256533550 | LegendaryGrandmasterLjm | F | April 13, 2024, 4:25 p.m. | OK | C++20 (GCC 13-64) | TESTS | 58 | 1765 | 89907200 | ||
256529214 | jeroenodb | F | April 13, 2024, 4:15 p.m. | OK | C++20 (GCC 13-64) | TESTS | 58 | 1811 | 76595200 | ||
256545117 | pppetrov | F | April 13, 2024, 5:44 p.m. | OK | C++20 (GCC 13-64) | TESTS | 58 | 1874 | 122470400 | ||
256558144 | sleep__ | F | April 13, 2024, 7:28 p.m. | OK | C++20 (GCC 13-64) | TESTS | 58 | 1890 | 127692800 | ||
256586726 | black_big_cock | F | April 14, 2024, 3:26 a.m. | OK | C++20 (GCC 13-64) | TESTS | 58 | 2155 | 204288000 | ||
256590483 | Khozhaev | F | April 14, 2024, 4:28 a.m. | OK | C++20 (GCC 13-64) | TESTS | 58 | 2156 | 217804800 | ||
256543210 | Soumya1 | F | April 13, 2024, 5:34 p.m. | OK | C++20 (GCC 13-64) | TESTS | 58 | 2233 | 96051200 | ||
256530495 | zjy114514 | F | April 13, 2024, 4:18 p.m. | OK | C++20 (GCC 13-64) | TESTS | 58 | 2311 | 179507200 | ||
256596593 | wsyear | F | April 14, 2024, 5:49 a.m. | OK | C++20 (GCC 13-64) | TESTS | 58 | 2343 | 190668800 | ||
256538415 | EnuTieTie | F | April 13, 2024, 4:34 p.m. | OK | C++20 (GCC 13-64) | TESTS | 58 | 2374 | 171417600 | ||
256569684 | misorin | F | April 13, 2024, 9:53 p.m. | OK | PyPy 3-64 | TESTS | 58 | 2671 | 203571200 | ||
256585433 | naruto7uzumaki | F | April 14, 2024, 3:05 a.m. | OK | PyPy 3-64 | TESTS | 58 | 2843 | 203571200 | ||
256569581 | misorin | F | April 13, 2024, 9:52 p.m. | OK | PyPy 3-64 | TESTS | 58 | 3062 | 210739200 |
Back to search problems