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 |
|---|---|---|---|---|---|---|
| 2179 | Codeforces Round 1071 (Div. 3) | FINISHED | False | 9000 | 9904523 | Dec. 23, 2025, 2:45 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1291 ) | H | Blackslex and Plants | PROGRAMMING | bitmasks data structures dp math |
Blackslex has found solace in plants and trees amidst accumulated stress from strained relationships, stressful politics, and strenuous research. Blackslex has (n) plants ordered in a straight line, consisting of plant (1, 2, 3, \ldots n). Initially, every plant contains (0) millilitres of water. He wants to perform (q) watering operations as follows : Given (l, r) for each operation water (f(i-l+1)) millilitres of water onto the (i)-th plant for every (l \leq i \leq r) where (f(x)) denotes the product of (x) and the value of the least significant set bit of (x) (^{\text{∗}}) Your task is to figure out the amount of water in each plant after all watering operations are done. (^{\text{∗}})The value of the least significant set bit of (x) is the value of the rightmost set bit (bit that is 1) in the binary representation of (x). For instance, the value of the least significant set bit of (10 = 1010_2) is (0010_2 = 2) The first line contains an integer (t) ((1 \leq t \leq 10^4)) — the number of test cases. The first line of each test case contains two integers (n), (q) ((1 \leq n, q \leq 2\cdot 10^5)) — the number of plants and the number of watering operations, respectively. The next (q) lines of each test case contain two integers (l), (r) ((1 \leq l \leq r \leq n)) — the left bound and the right bound for each watering operation. It is guaranteed that the sum of all values of (n) and the sum of all values of (q) across all test cases do not exceed (2 \cdot 10^5). For each test case, output (n) integers representing the amount of water in the (i)-th plant for each (i = 1, 2, 3, \ldots, n) In the first case, each operation will be performed as follows : The first operation will : water the (1)-st plant using (f(1-1+1) = f(1) = 1) millilitres of water. water the (2)-nd plant using (f(2 - 1 + 1) = f(2) = 4) millilitres |
| Codeforces Round 1071 (Div. 3) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 354968430 | char | H | Dec. 24, 2025, 4:35 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 250 | 6246400 | ||
| 354874526 | lwm7708 | H | Dec. 23, 2025, 11:45 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 359 | 28160000 | ||
| 355006675 | devecent | H | Dec. 25, 2025, 4:51 a.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 375 | 61952000 | ||
| 354963158 | bytemat | H | Dec. 24, 2025, 3:50 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 406 | 49766400 | ||
| 354922498 | ultralfj | H | Dec. 24, 2025, 10:38 a.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 437 | 12083200 | ||
| 354913420 | lenguyenminha7ntt | H | Dec. 24, 2025, 9:24 a.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 453 | 128307200 | ||
| 354932843 | yzddd04 | H | Dec. 24, 2025, noon | OK | C++17 (GCC 7-32) | TESTS | 15 | 500 | 41062400 | ||
| 355011420 | cankjaca | H | Dec. 25, 2025, 6:02 a.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 500 | 55500800 | ||
| 354985206 | aryxn5 | H | Dec. 24, 2025, 7:30 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 500 | 69017600 | ||
| 355004201 | noob.yxc | H | Dec. 25, 2025, 3:58 a.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 515 | 14131200 | ||
| 354881466 | wabca | H | Dec. 24, 2025, 3:16 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 171 | 2560000 | ||
| 355001739 | chuanqilaozu | H | Dec. 25, 2025, 2:49 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 203 | 10444800 | ||
| 354909393 | Dedust | H | Dec. 24, 2025, 8:53 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 218 | 921600 | ||
| 354868902 | Raze07 | H | Dec. 23, 2025, 9:08 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 234 | 4096000 | ||
| 354922157 | E49869826 | H | Dec. 24, 2025, 10:35 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 250 | 24985600 | ||
| 354945856 | arregen-_-ss | H | Dec. 24, 2025, 1:36 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 265 | 4198400 | ||
| 354945352 | arrow_s | H | Dec. 24, 2025, 1:33 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 265 | 4198400 | ||
| 354935062 | onebit1024 | H | Dec. 24, 2025, 12:17 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 265 | 7372800 | ||
| 355002425 | wishgoodluck | H | Dec. 25, 2025, 3:10 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 265 | 8294400 | ||
| 355003638 | sqsfx | H | Dec. 25, 2025, 3:44 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 265 | 32051200 | ||
| 354922628 | Irelia201307 | H | Dec. 24, 2025, 10:39 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 171 | 1024000 | ||
| 354954759 | Mosken | H | Dec. 24, 2025, 2:43 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 187 | 2560000 | ||
| 354939328 | GUAIKATTO | H | Dec. 24, 2025, 12:48 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 187 | 2662400 | ||
| 354918281 | flying_saucer | H | Dec. 24, 2025, 10:03 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 187 | 2662400 | ||
| 354872641 | AIKohibariKurumi | H | Dec. 23, 2025, 10:39 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 187 | 4198400 | ||
| 354907908 | LHaooo | H | Dec. 24, 2025, 8:41 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 203 | 71680000 | ||
| 354882013 | czb666 | H | Dec. 24, 2025, 3:27 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 234 | 4300800 | ||
| 354920252 | adnanahmad | H | Dec. 24, 2025, 10:19 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 250 | 11878400 | ||
| 354997182 | CharlotteTomoriNao | H | Dec. 24, 2025, 11:57 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 250 | 18739200 | ||
| 354878908 | enslaved | H | Dec. 24, 2025, 2:19 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 265 | 11673600 | ||
| 355002522 | Ritwin | H | Dec. 25, 2025, 3:13 a.m. | OK | GNU C11 | TESTS | 15 | 1171 | 65843200 | ||
| 355004624 | superwesly123 | H | Dec. 25, 2025, 4:08 a.m. | OK | GNU C11 | TESTS | 15 | 1296 | 69017600 | ||
| 354995265 | cpp10 | H | Dec. 24, 2025, 10:37 p.m. | OK | Java 21 | TESTS | 15 | 515 | 13414400 | ||
| 354995226 | cpp10 | H | Dec. 24, 2025, 10:35 p.m. | OK | Java 21 | TESTS | 15 | 515 | 13721600 | ||
| 354866945 | lyongwolf | H | Dec. 23, 2025, 8:32 p.m. | OK | Java 21 | TESTS | 15 | 562 | 48640000 | ||
| 354998734 | dzhi | H | Dec. 25, 2025, 1:08 a.m. | OK | Java 21 | TESTS | 15 | 703 | 117862400 | ||
| 354992858 | SumitXorY | H | Dec. 24, 2025, 9:32 p.m. | OK | Java 21 | TESTS | 15 | 1031 | 145408000 | ||
| 354988091 | raresmihai | H | Dec. 24, 2025, 8:10 p.m. | OK | Java 21 | TESTS | 15 | 1578 | 146636800 | ||
| 354971242 | IchikaHoshino | H | Dec. 24, 2025, 5:02 p.m. | OK | PyPy 3-64 | TESTS | 15 | 625 | 65024000 | ||
| 354874928 | usaya | H | Dec. 24, 2025, 12:01 a.m. | OK | PyPy 3-64 | TESTS | 15 | 640 | 75878400 | ||
| 354910855 | gardengnome | H | Dec. 24, 2025, 9:05 a.m. | OK | PyPy 3-64 | TESTS | 15 | 656 | 73830400 | ||
| 354889295 | IcyGirl | H | Dec. 24, 2025, 5:26 a.m. | OK | PyPy 3-64 | TESTS | 15 | 656 | 101580800 | ||
| 354880726 | RobinFromTheHood | H | Dec. 24, 2025, 3:02 a.m. | OK | PyPy 3-64 | TESTS | 15 | 671 | 75366400 | ||
| 354910128 | gardengnome | H | Dec. 24, 2025, 8:59 a.m. | OK | PyPy 3-64 | TESTS | 15 | 718 | 79257600 | ||
| 354874801 | gdstw | H | Dec. 23, 2025, 11:56 p.m. | OK | PyPy 3-64 | TESTS | 15 | 750 | 75878400 | ||
| 354874009 | usaya | H | Dec. 23, 2025, 11:25 p.m. | OK | PyPy 3-64 | TESTS | 15 | 750 | 78438400 | ||
| 354953359 | Haire | H | Dec. 24, 2025, 2:31 p.m. | OK | PyPy 3-64 | TESTS | 15 | 765 | 45875200 | ||
| 354888370 | IcyGirl | H | Dec. 24, 2025, 5:13 a.m. | OK | PyPy 3-64 | TESTS | 15 | 890 | 116633600 | ||
| 354964421 | Spheniscine | H | Dec. 24, 2025, 4 p.m. | OK | Rust 2021 | TESTS | 15 | 281 | 62566400 | ||
| 354930861 | Spheniscine | H | Dec. 24, 2025, 11:43 a.m. | OK | Rust 2021 | TESTS | 15 | 343 | 62566400 | ||
| 354931221 | urectanc | H | Dec. 24, 2025, 11:46 a.m. | OK | Rust 2024 | TESTS | 15 | 265 | 24985600 |
Back to search problems