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 |
|---|---|---|---|---|---|---|
| 2135 | Codeforces Round 1046 (Div. 1) | FINISHED | False | 10800 | 20013923 | Aug. 28, 2025, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 2409 ) | D1 | From the Unknown (Easy Version) | PROGRAMMING | constructive algorithms interactive math |
This is the easy version of the problem. The difference between the versions is that in this version, there are no constraints on the sum of the lengths of the articles over all queries. You can hack only if you solved all versions of this problem. This is an interactive problem. The RiOI Team has recently developed a text editor named RiOI Editor . The editor works with exactly one integer parameter (W) — the width of each line. It is known that (1 \leq W \leq 10^5). As you cannot understand the RiOI Language, from your point of view, words differ from each other only by their length. Hence, an article of length (n) is defined as a sequence (a) consisting of (n) positive integers, where (a_i) is the length of the (i)-th word in the article . The RiOI Editor displays the article (a_1, a_2,\ldots, a_n) on screen as follows: If (\max(a_1, a_2, \ldots, a_n) > W), the editor is unable to display the article ; Otherwise, the editor is able to display the article by the following process: Initially, (l = 1), and (s = 0). During the whole process, (l) always denotes the current number of lines in the editor, and (s) always denotes the sum of lengths of words in the last line; Then, for each (1\le i\le n): If (s + a_i \leq W), the word is inserted at the end of the current line. Thus, (l) remains unchanged, and (s) gets increased by (a_i). Otherwise, the word is inserted into a new line. Thus, (l) becomes (l + 1), and (s) becomes (a_i). The number of lines needed to display the article is the final value of (l). Initially, (l = 1), and (s = 0). During the whole process, (l) always denotes the current number of lines in the editor, and (s) always denotes the sum of lengths of words in the last line; Then, for each (1\le i\le n): If (s + a_i \leq W), the word is inserted at the end of the current line. Thus, (l) remains unchanged, and (s) get |
| Codeforces Round 1046 (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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 336002536 | og.kostya | D1 | Aug. 28, 2025, 3:50 p.m. | OK | C# 10 | TESTS | 25 | 358 | 6860800 | ||
| 335988398 | -firefly- | D1 | Aug. 28, 2025, 3:25 p.m. | OK | C# 13 | TESTS | 25 | 343 | 12390400 | ||
| 336042197 | yutabi | D1 | Aug. 28, 2025, 5:30 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 156 | 0 | ||
| 336018829 | Ak_16 | D1 | Aug. 28, 2025, 4:27 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 156 | 0 | ||
| 336040573 | cmeet | D1 | Aug. 28, 2025, 5:25 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 171 | 512000 | ||
| 336018656 | KaguyaH | D1 | Aug. 28, 2025, 4:27 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 171 | 1638400 | ||
| 336017556 | qwef_ | D1 | Aug. 28, 2025, 4:24 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 187 | 4096000 | ||
| 336010962 | DanielAnker | D1 | Aug. 28, 2025, 4:08 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 202 | 102400 | ||
| 336052008 | pandaa73 | D1 | Aug. 28, 2025, 7:31 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 249 | 0 | ||
| 336032495 | awu | D1 | Aug. 28, 2025, 5:02 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 249 | 0 | ||
| 335995381 | LadyMisserina | D1 | Aug. 28, 2025, 3:37 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 264 | 409600 | ||
| 336038249 | yang114514 | D1 | Aug. 28, 2025, 5:19 p.m. | OK | C++17 (GCC 7-32) | TESTS | 25 | 265 | 102400 | ||
| 336070598 | NKheyuxiang | D1 | Aug. 29, 2025, 1:42 a.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 124 | 0 | ||
| 336040095 | OR_LOVe | D1 | Aug. 28, 2025, 5:24 p.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 140 | 0 | ||
| 336069539 | fangzx | D1 | Aug. 29, 2025, 1:19 a.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 155 | 0 | ||
| 336008789 | StarSilk | D1 | Aug. 28, 2025, 4:03 p.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 155 | 819200 | ||
| 336072324 | GuilhermeCdM | D1 | Aug. 29, 2025, 2:11 a.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 155 | 3276800 | ||
| 336021014 | Math_rad_round | D1 | Aug. 28, 2025, 4:32 p.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 155 | 4096000 | ||
| 336030051 | LuCpp | D1 | Aug. 28, 2025, 4:55 p.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 156 | 0 | ||
| 336038212 | LOL_I_AM_SERZH | D1 | Aug. 28, 2025, 5:19 p.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 171 | 0 | ||
| 336021197 | wukaichen888 | D1 | Aug. 28, 2025, 4:33 p.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 171 | 102400 | ||
| 336040285 | Celebrate | D1 | Aug. 28, 2025, 5:25 p.m. | OK | C++20 (GCC 13-64) | TESTS | 25 | 171 | 512000 | ||
| 336001248 | Nachia | D1 | Aug. 28, 2025, 3:48 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 25 | 124 | 0 | ||
| 335999681 | jiangly | D1 | Aug. 28, 2025, 3:45 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 25 | 124 | 409600 | ||
| 336021823 | peti1234 | D1 | Aug. 28, 2025, 4:34 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 25 | 140 | 819200 | ||
| 336052301 | tosivanmak | D1 | Aug. 28, 2025, 7:33 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 25 | 155 | 0 | ||
| 336022937 | skittles1412 | D1 | Aug. 28, 2025, 4:37 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 25 | 171 | 0 | ||
| 336020684 | cdxcdxcdxcdx | D1 | Aug. 28, 2025, 4:32 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 25 | 171 | 0 | ||
| 336011573 | JDScript0117 | D1 | Aug. 28, 2025, 4:09 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 25 | 171 | 0 | ||
| 335994251 | ecnerwala | D1 | Aug. 28, 2025, 3:35 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 25 | 171 | 102400 | ||
| 336029812 | Silver_Fox | D1 | Aug. 28, 2025, 4:55 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 25 | 186 | 0 | ||
| 336004199 | Dalek_of_Rivia | D1 | Aug. 28, 2025, 3:54 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 25 | 186 | 0 | ||
| 335982620 | hos.lyric | D1 | Aug. 28, 2025, 3:17 p.m. | OK | D | TESTS | 25 | 1280 | 10137600 | ||
| 336021290 | pengin_2000 | D1 | Aug. 28, 2025, 4:33 p.m. | OK | GNU C11 | TESTS | 25 | 467 | 8396800 | ||
| 336064062 | rainboy | D1 | Aug. 28, 2025, 10:42 p.m. | OK | GNU C11 | TESTS | 25 | 1062 | 8499200 | ||
| 336038211 | Quasicoherent | D1 | Aug. 28, 2025, 5:19 p.m. | OK | Java 21 | TESTS | 25 | 577 | 1228800 | ||
| 335976833 | Tlatoani | D1 | Aug. 28, 2025, 3:09 p.m. | OK | Kotlin 2.2 | TESTS | 25 | 968 | 2252800 | ||
| 336022552 | Scean_Tong | D1 | Aug. 28, 2025, 4:36 p.m. | OK | PyPy 3-64 | TESTS | 25 | 234 | 6860800 | ||
| 336032874 | ow3nL | D1 | Aug. 28, 2025, 5:03 p.m. | OK | PyPy 3-64 | TESTS | 25 | 359 | 13414400 | ||
| 336011425 | twosquares | D1 | Aug. 28, 2025, 4:09 p.m. | OK | PyPy 3-64 | TESTS | 25 | 374 | 16179200 | ||
| 336035362 | hiryuN | D1 | Aug. 28, 2025, 5:10 p.m. | OK | PyPy 3-64 | TESTS | 25 | 390 | 13824000 | ||
| 336053729 | bcollet | D1 | Aug. 28, 2025, 7:47 p.m. | OK | PyPy 3-64 | TESTS | 25 | 405 | 30105600 | ||
| 335983494 | bribritt | D1 | Aug. 28, 2025, 3:18 p.m. | OK | PyPy 3-64 | TESTS | 25 | 421 | 25804800 | ||
| 336059489 | twosquares | D1 | Aug. 28, 2025, 9:01 p.m. | OK | PyPy 3-64 | TESTS | 25 | 453 | 16179200 | ||
| 336059558 | twosquares | D1 | Aug. 28, 2025, 9:02 p.m. | OK | PyPy 3-64 | TESTS | 25 | 484 | 15974400 | ||
| 335981685 | bronze_coder | D1 | Aug. 28, 2025, 3:16 p.m. | OK | PyPy 3-64 | TESTS | 25 | 515 | 19456000 | ||
| 336036279 | alumkal | D1 | Aug. 28, 2025, 5:13 p.m. | OK | PyPy 3-64 | TESTS | 25 | 530 | 25395200 | ||
| 336000250 | Sugar_fan | D1 | Aug. 28, 2025, 3:46 p.m. | OK | Rust 2021 | TESTS | 25 | 405 | 3072000 | ||
| 336025053 | darkkcyan | D1 | Aug. 28, 2025, 4:42 p.m. | OK | Rust 2024 | TESTS | 25 | 421 | 0 |
Back to search problems