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 |
|---|---|---|---|---|---|---|
| 2157 | Codeforces Round 1066 (Div. 1 + Div. 2) | FINISHED | False | 10800 | 12515123 | Nov. 23, 2025, 9:35 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1275 ) | F | Git Gud | PROGRAMMING | constructive algorithms data structures divide and conquer |
You are an adventurer working for the futuristic corporation RoboCorp. Your current skill level is an integer (s) in the range (1, n), but you don't know its exact value. Your goal is to reach skill (\geq n) by completing missions for RoboCorp, but each mission costs precious robocoins. You can choose missions of any difficulty and any positive integer duration (in hours). However, the cost depends both on the new mission's length, and on how the new mission's difficulty compares to your most recent one. Let (x) be the difficulty of your most recent mission. If you want to undertake a new mission of difficulty (y) and duration (l): If it is your first mission, or (y \leq x), the cost is (l) robocoins. If (y > x), the cost is (1000 + l) robocoins. Your skill improves only when you take on a mission whose difficulty exactly matches your current skill: If (y = s), then your skill increases by (l). Otherwise, your skill does not change. After each mission, you still don't know your actual skill value. You start with (10^6) robocoins. Find a strategy (a sequence of missions) that does not exceed your budget and guarantees your skill becomes at least (n), no matter what your initial skill was. The input contains a single line with an integer (n) ((n = 4) or (n = 250\,000)) — the target skill level (that is, by the end, your skill must be (\geq n)). There are exactly (2) tests in this problem (including the example). The example has (n = 4), and the other test has (n = 250\,000). Hacks are not allowed in this problem. In the first line, print a single integer (k) ((0 \leq k \leq 10^6)) — the number of missions you plan to complete. Then, print (k) lines. The (i)-th line must contain two integers (y) and (l) ((1 \leq y, l \leq 10^6)) — the difficulty and duration (in hours) of the (i)-th mission, respectively. In the example, your target skill is $ |
| Codeforces Round 1066 (Div. 1 + Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 350349052 | -firefly- | F | Nov. 23, 2025, 11:47 a.m. | OK | C# 13 | TESTS | 2 | 108 | 22937600 | ||
| 350378602 | kavyanshkrishan | F | Nov. 23, 2025, 2:59 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 61 | 0 | ||
| 350360817 | ligengtao | F | Nov. 23, 2025, 12:32 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 61 | 0 | ||
| 350360196 | SoReMore | F | Nov. 23, 2025, 12:30 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 61 | 0 | ||
| 350355914 | Feynman5210 | F | Nov. 23, 2025, 12:14 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 62 | 0 | ||
| 350413515 | antguz | F | Nov. 23, 2025, 8:49 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 77 | 0 | ||
| 350392467 | neet.nta | F | Nov. 23, 2025, 5:02 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 77 | 0 | ||
| 350382147 | Jamrith | F | Nov. 23, 2025, 3:30 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 77 | 0 | ||
| 350369647 | Az3ar | F | Nov. 23, 2025, 1:52 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 77 | 0 | ||
| 350352634 | Sorry_Senri | F | Nov. 23, 2025, 12:01 p.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 77 | 0 | ||
| 350350780 | BobPang | F | Nov. 23, 2025, 11:53 a.m. | OK | C++17 (GCC 7-32) | TESTS | 2 | 77 | 1024000 | ||
| 350423227 | lucky_clover_ | F | Nov. 24, 2025, 12:48 a.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 46 | 307200 | ||
| 350421613 | Panyang | F | Nov. 24, 2025, midnight | OK | C++20 (GCC 13-64) | TESTS | 2 | 46 | 307200 | ||
| 350386207 | BiggestOtaku | F | Nov. 23, 2025, 4:04 p.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 46 | 307200 | ||
| 350358141 | romarkovets | F | Nov. 23, 2025, 12:22 p.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 46 | 307200 | ||
| 350356436 | Igor_Parfenov | F | Nov. 23, 2025, 12:16 p.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 46 | 307200 | ||
| 350350417 | xiaoququsd | F | Nov. 23, 2025, 11:52 a.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 46 | 2457600 | ||
| 350370476 | quchen | F | Nov. 23, 2025, 1:58 p.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 46 | 3481600 | ||
| 350356689 | G2Esports | F | Nov. 23, 2025, 12:17 p.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 46 | 3481600 | ||
| 350368377 | qwertim | F | Nov. 23, 2025, 1:43 p.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 46 | 4505600 | ||
| 350430122 | smallfangAKIOI | F | Nov. 24, 2025, 3:18 a.m. | OK | C++20 (GCC 13-64) | TESTS | 2 | 46 | 5427200 | ||
| 350389019 | phuc67234346856345 | F | Nov. 23, 2025, 4:30 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 2 | 31 | 409600 | ||
| 350401898 | JianAlkali | F | Nov. 23, 2025, 6:25 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 2 | 46 | 0 | ||
| 350383985 | Ankit-cp | F | Nov. 23, 2025, 3:45 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 2 | 46 | 0 | ||
| 350368321 | _lgh_ | F | Nov. 23, 2025, 1:43 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 2 | 46 | 0 | ||
| 350356786 | ttamx | F | Nov. 23, 2025, 12:17 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 2 | 46 | 204800 | ||
| 350410882 | jackylova_fan_fan_fan | F | Nov. 23, 2025, 8:09 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 2 | 46 | 409600 | ||
| 350386216 | AzeTurk810 | F | Nov. 23, 2025, 4:04 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 2 | 46 | 409600 | ||
| 350385419 | xosqedemrufo | F | Nov. 23, 2025, 3:57 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 2 | 46 | 409600 | ||
| 350391805 | Jiao_Xie | F | Nov. 23, 2025, 4:56 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 2 | 46 | 819200 | ||
| 350350998 | Pumkinhead_Me | F | Nov. 23, 2025, 11:54 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 2 | 46 | 1331200 | ||
| 350441683 | afeefbrother | F | Nov. 24, 2025, 6:10 a.m. | OK | GNU C11 | TESTS | 2 | 1124 | 4096000 | ||
| 350368612 | manchik | F | Nov. 23, 2025, 1:45 p.m. | OK | Go | TESTS | 2 | 93 | 34406400 | ||
| 350373323 | MaxBuzz | F | Nov. 23, 2025, 2:19 p.m. | OK | Java 21 | TESTS | 2 | 609 | 6656000 | ||
| 350350041 | Pie854 | F | Nov. 23, 2025, 11:50 a.m. | OK | PyPy 3-64 | TESTS | 2 | 171 | 8396800 | ||
| 350352680 | SirMrGuy | F | Nov. 23, 2025, 12:01 p.m. | OK | PyPy 3-64 | TESTS | 2 | 171 | 23347200 | ||
| 350388987 | wzj33300 | F | Nov. 23, 2025, 4:29 p.m. | OK | PyPy 3-64 | TESTS | 2 | 171 | 23654400 | ||
| 350404772 | Mischievius | F | Nov. 23, 2025, 6:52 p.m. | OK | PyPy 3-64 | TESTS | 2 | 217 | 9420800 | ||
| 350373662 | wabca | F | Nov. 23, 2025, 2:22 p.m. | OK | PyPy 3-64 | TESTS | 2 | 233 | 22323200 | ||
| 350418142 | braveblc | F | Nov. 23, 2025, 10:19 p.m. | OK | PyPy 3-64 | TESTS | 2 | 233 | 26521600 | ||
| 350417216 | TNTNTN | F | Nov. 23, 2025, 9:59 p.m. | OK | PyPy 3-64 | TESTS | 2 | 249 | 22937600 | ||
| 350368608 | ETO_leader | F | Nov. 23, 2025, 1:45 p.m. | OK | PyPy 3-64 | TESTS | 2 | 264 | 12390400 | ||
| 350397660 | shadow4720 | F | Nov. 23, 2025, 5:48 p.m. | OK | PyPy 3-64 | TESTS | 2 | 280 | 31641600 | ||
| 350355760 | tassei903 | F | Nov. 23, 2025, 12:13 p.m. | OK | PyPy 3-64 | TESTS | 2 | 311 | 22323200 | ||
| 350366450 | toomer | F | Nov. 23, 2025, 1:31 p.m. | OK | Rust 2021 | TESTS | 2 | 77 | 3379200 | ||
| 350368844 | Mon_ster | F | Nov. 23, 2025, 1:46 p.m. | OK | Rust 2024 | TESTS | 2 | 61 | 5222400 |
Back to search problems