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 |
|---|---|---|---|---|---|---|
| 2023 | Codeforces Round 980 (Div. 1) | FINISHED | False | 7200 | 46990523 | Oct. 20, 2024, 9:05 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 7042 ) | B | Skipping | PROGRAMMING | brute force data structures dp graphs greedy shortest paths |
It is already the year (3024), ideas for problems have long run out, and the olympiad now takes place in a modified individual format. The olympiad consists of (n) problems, numbered from (1) to (n). The (i)-th problem has its own score (a_i) and a certain parameter (b_i) ((1 \le b_i \le n)). Initially, the testing system gives the participant the first problem. When the participant is given the (i)-th problem, they have two options: They can submit the problem and receive (a_i) points; They can skip the problem, in which case they will never be able to submit it. Then, the testing system selects the next problem for the participant from problems with indices (j), such that: If he submitted the (i)-th problem, it looks at problems with indices (j < i); If he skipped the (i)-th problem, it looks at problems with indices (j \leq b_i). Among these problems, it selects the problem with the maximum index that it has not previously given to the participant (he has neither submitted nor skipped it before). If there is no such problem, then the competition for the participant ends , and their result is equal to the sum of points for all submitted problems. In particular, if the participant submits the first problem, then the competition for them ends. Note that the participant receives each problem at most once . Prokhor has prepared thoroughly for the olympiad, and now he can submit any problem. Help him determine the maximum number of points he can achieve. Each test consists of multiple test cases. The first line contains a single integer (t) ((1 \leq t \leq 10^5)) — the number of test cases. The description of the test cases follows. The first line of each test case contains a single integer (n) ((1 \leq n \leq 4 \cdot 10^5)) — the number of problems in the olympiad. The second line of each test case contains (n) integers (a_1, a_2, \ldots, a_n) ((1 \leq a_i \leq 10^9)) — t |
| 135341 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 287043947 | og.kostya | B | Oct. 20, 2024, 12:15 p.m. | OK | C# 10 | TESTS | 26 | 218 | 12492800 | ||
| 286989466 | ruogu | B | Oct. 20, 2024, 10:13 a.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 233 | 9625600 | ||
| 286923481 | Mindeveloped | B | Oct. 20, 2024, 9:24 a.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 249 | 8601600 | ||
| 286922595 | wifiii | B | Oct. 20, 2024, 9:23 a.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 265 | 6246400 | ||
| 286928633 | Lawali | B | Oct. 20, 2024, 9:30 a.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 265 | 8089600 | ||
| 286944682 | InkyFlameMaster | B | Oct. 20, 2024, 9:43 a.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 265 | 9932800 | ||
| 286925454 | bthero | B | Oct. 20, 2024, 9:26 a.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 265 | 10035200 | ||
| 286934556 | borgar02 | B | Oct. 20, 2024, 9:38 a.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 265 | 13107200 | ||
| 286929130 | zeliboba | B | Oct. 20, 2024, 9:31 a.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 280 | 12390400 | ||
| 287114303 | LLG | B | Oct. 20, 2024, 7:13 p.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 280 | 21606400 | ||
| 286935072 | TimDee | B | Oct. 20, 2024, 9:39 a.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 296 | 5939200 | ||
| 287098026 | zer0- | B | Oct. 20, 2024, 5:02 p.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 202 | 7577600 | ||
| 286931087 | leihonglongyin | B | Oct. 20, 2024, 9:34 a.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 202 | 11264000 | ||
| 286923914 | defnotmee | B | Oct. 20, 2024, 9:24 a.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 202 | 12390400 | ||
| 286998431 | AKSLEGION | B | Oct. 20, 2024, 10:30 a.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 202 | 13107200 | ||
| 286915247 | orzdevinwang | B | Oct. 20, 2024, 9:15 a.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 202 | 28160000 | ||
| 286921659 | Sulfox | B | Oct. 20, 2024, 9:22 a.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 202 | 62771200 | ||
| 286912738 | maspy | B | Oct. 20, 2024, 9:13 a.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 202 | 64512000 | ||
| 286930158 | sunkuangzheng | B | Oct. 20, 2024, 9:32 a.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 203 | 12083200 | ||
| 286921693 | CF114514ancestor | B | Oct. 20, 2024, 9:22 a.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 203 | 12902400 | ||
| 287147336 | Yukii_P | B | Oct. 21, 2024, 4:55 a.m. | OK | C++20 (GCC 13-64) | TESTS | 27 | 203 | 19456000 | ||
| 286913950 | Anonyme | B | Oct. 20, 2024, 9:14 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 140 | 18432000 | ||
| 286922402 | anthonyaaab123 | B | Oct. 20, 2024, 9:23 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 202 | 6451200 | ||
| 286933567 | ArsenGotov | B | Oct. 20, 2024, 9:37 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 218 | 8089600 | ||
| 286990912 | FHVirus | B | Oct. 20, 2024, 10:15 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 218 | 10956800 | ||
| 286926992 | dreamoon_love_AA | B | Oct. 20, 2024, 9:28 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 218 | 42086400 | ||
| 286984407 | Desh01 | B | Oct. 20, 2024, 10:04 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 233 | 12492800 | ||
| 287089402 | alagorithmet | B | Oct. 20, 2024, 3:59 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 233 | 16691200 | ||
| 286983663 | AhmetKaan | B | Oct. 20, 2024, 10:03 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 234 | 25804800 | ||
| 286935432 | Markadiusz | B | Oct. 20, 2024, 9:40 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 249 | 15872000 | ||
| 286918371 | cmk666 | B | Oct. 20, 2024, 9:18 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 249 | 37068800 | ||
| 286984229 | KumaTachiRen | B | Oct. 20, 2024, 10:04 a.m. | OK | C# 8 | TESTS | 26 | 202 | 13619200 | ||
| 286934238 | hos.lyric | B | Oct. 20, 2024, 9:38 a.m. | OK | D | TESTS | 26 | 1077 | 67174400 | ||
| 287142503 | gafgadfdfvswe | B | Oct. 21, 2024, 3:49 a.m. | OK | Go | TESTS | 27 | 437 | 28262400 | ||
| 287141409 | gafgadfdfvswe | B | Oct. 21, 2024, 3:33 a.m. | OK | Go | TESTS | 27 | 531 | 37683200 | ||
| 287141299 | gafgadfdfvswe | B | Oct. 21, 2024, 3:31 a.m. | OK | Go | TESTS | 27 | 578 | 39219200 | ||
| 286934176 | -dub-otrezkov- | B | Oct. 20, 2024, 9:38 a.m. | OK | Go | TESTS | 26 | 624 | 31846400 | ||
| 287142781 | man-ray | B | Oct. 21, 2024, 3:53 a.m. | OK | Java 21 | TESTS | 27 | 890 | 44646400 | ||
| 287034832 | yvbf | B | Oct. 20, 2024, 12:01 p.m. | OK | Java 8 | TESTS | 26 | 374 | 22220800 | ||
| 287083009 | golions | B | Oct. 20, 2024, 3:09 p.m. | OK | Java 8 | TESTS | 26 | 733 | 29798400 | ||
| 286959475 | elizarov | B | Oct. 20, 2024, 9:46 a.m. | OK | Kotlin 1.9 | TESTS | 26 | 1108 | 44851200 | ||
| 286986435 | bcollet | B | Oct. 20, 2024, 10:08 a.m. | OK | PyPy 2 | TESTS | 26 | 1061 | 64307200 | ||
| 287111727 | Synaptic_Savant | B | Oct. 20, 2024, 6:50 p.m. | OK | PyPy 3-64 | TESTS | 26 | 562 | 56524800 | ||
| 286928142 | TOMATO_MAT_TO | B | Oct. 20, 2024, 9:30 a.m. | OK | PyPy 3-64 | TESTS | 26 | 749 | 65740800 | ||
| 286944733 | hato_ | B | Oct. 20, 2024, 9:44 a.m. | OK | PyPy 3-64 | TESTS | 26 | 780 | 66764800 | ||
| 287000540 | mj1000j | B | Oct. 20, 2024, 10:34 a.m. | OK | PyPy 3-64 | TESTS | 26 | 812 | 58470400 | ||
| 286952316 | chinerist | B | Oct. 20, 2024, 9:45 a.m. | OK | PyPy 3-64 | TESTS | 26 | 843 | 97075200 | ||
| 286927077 | Shirotsume | B | Oct. 20, 2024, 9:28 a.m. | OK | PyPy 3-64 | TESTS | 26 | 1014 | 106803200 | ||
| 286925820 | mees | B | Oct. 20, 2024, 9:27 a.m. | OK | PyPy 3-64 | TESTS | 26 | 1015 | 55808000 | ||
| 287113254 | Synaptic_Savant | B | Oct. 20, 2024, 7:03 p.m. | OK | PyPy 3-64 | TESTS | 26 | 1031 | 57139200 | ||
| 286932850 | PNJ0714 | B | Oct. 20, 2024, 9:36 a.m. | OK | PyPy 3-64 | TESTS | 26 | 1031 | 90009600 | ||
| 286922771 | tassei903 | B | Oct. 20, 2024, 9:23 a.m. | OK | PyPy 3-64 | TESTS | 26 | 1077 | 97792000 | ||
| 286918528 | sansen | B | Oct. 20, 2024, 9:18 a.m. | OK | Rust 2021 | TESTS | 26 | 124 | 20582400 | ||
| 287145963 | Svlad_Cjelli | B | Oct. 21, 2024, 4:37 a.m. | OK | Rust 2021 | TESTS | 27 | 140 | 18329600 | ||
| 286984887 | akashin | B | Oct. 20, 2024, 10:05 a.m. | OK | Rust 2021 | TESTS | 26 | 202 | 16998400 |
Back to search problems