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 |
|---|---|---|---|---|---|---|
| 2242 | Educational Codeforces Round 192 (Rated for Div. 2) | FINISHED | False | 7200 | 2301902 | July 6, 2026, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 409 ) | F | Summer Vacation | PROGRAMMING | data structures dp probabilities |
While reading the statement of this problem, we recommend forgetting that summer consists of (92) days and that a day consists of (1440) minutes. This is Berland, and things are different here. Monocarp is a student at a provincial university in Berland. The summer holidays have just begun, and they will last for the next (n) days. Monocarp has long dreamed of going to the capital of Berland, so he will choose one day (i) among these days, arrive in the capital on that day, and spend the rest of the holidays there. The capital of Berland is not a very cheap city, and Monocarp has (0) Berland dollars with him. Naturally, this is not enough to visit interesting places and buy souvenirs. Therefore, on some days in the capital, Monocarp will work as a freelancer. He does not want to work in his hometown, since he has already spent the whole academic year doing university assignments. Formally, on the (i)-th day of the holidays, Monocarp will have (a_i) free minutes, which he will spend either working or resting and buying souvenirs. If Monocarp has at least (a_i) dollars at the beginning of the (i)-th day, then on that day he will spend them on rest and souvenirs at a rate of (1) dollar per minute; that is, during this day, he will spend (a_i) dollars. Otherwise, he will spend this time working, earning (1) dollar per minute; that is, during this day, he will earn (a_i) dollars. Note that Monocarp always makes his decision for the entire day; it is impossible for him to both spend and earn money during the same day. Your task is to determine, for each number of days (k) from (1) to (n), how many dollars Monocarp will have left after the last day of the holidays if he lives in the capital for exactly (k) last days (i. e. if he arrives on the day ((n-k+1))). The first line contains one integer (n) ((1 \le n \le 10^{5})). The second line contains (n) integers (a_{i}) ($$$1 \le |
| 155047 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 381560732 | lxrani26 | F | July 7, 2026, 5:42 a.m. | OK | C# 13 | TESTS | 26 | 390 | 98713600 | ||
| 381560771 | Gold14526 | F | July 7, 2026, 5:43 a.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 218 | 6553600 | ||
| 381512906 | dhkhanh | F | July 6, 2026, 4:24 p.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 265 | 2867200 | ||
| 381535010 | soul_veda | F | July 6, 2026, 7:38 p.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 265 | 282214400 | ||
| 381515169 | ChefChampion | F | July 6, 2026, 4:29 p.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 312 | 8806400 | ||
| 381518289 | Sense143 | F | July 6, 2026, 4:38 p.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 328 | 128307200 | ||
| 381511456 | Aman_Gupta2006 | F | July 6, 2026, 4:20 p.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 343 | 400793600 | ||
| 381527517 | ishhhita | F | July 6, 2026, 5:58 p.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 406 | 583577600 | ||
| 381514494 | REAL_DON_2027 | F | July 6, 2026, 4:28 p.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 593 | 141107200 | ||
| 381512454 | Um_nik | F | July 6, 2026, 4:23 p.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 609 | 321024000 | ||
| 381523105 | YamOCHca | F | July 6, 2026, 5:15 p.m. | OK | C++17 (GCC 7-32) | TESTS | 26 | 687 | 1058099200 | ||
| 381523387 | wuhudsm | F | July 6, 2026, 5:17 p.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 250 | 173260800 | ||
| 381509946 | ItsNotMeItsYou | F | July 6, 2026, 4:16 p.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 265 | 10342400 | ||
| 381533946 | Ieathamcheesebugers | F | July 6, 2026, 7:17 p.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 312 | 4812800 | ||
| 381562285 | yoshi_avx | F | July 7, 2026, 6:01 a.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 343 | 409600 | ||
| 381511788 | hgfdgeasge | F | July 6, 2026, 4:21 p.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 343 | 477900800 | ||
| 381507017 | MiracleFFT | F | July 6, 2026, 4:09 p.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 359 | 8089600 | ||
| 381561431 | yoshi_avx | F | July 7, 2026, 5:51 a.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 390 | 409600 | ||
| 381507299 | palak_bandhu | F | July 6, 2026, 4:10 p.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 390 | 480972800 | ||
| 381528175 | liympanda | F | July 6, 2026, 6:05 p.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 500 | 1740800 | ||
| 381511476 | __Maksik__ | F | July 6, 2026, 4:20 p.m. | OK | C++20 (GCC 13-64) | TESTS | 26 | 546 | 804659200 | ||
| 381528718 | zwezdinv | F | July 6, 2026, 6:10 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 187 | 1945600 | ||
| 381528551 | zwezdinv | F | July 6, 2026, 6:08 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 203 | 1945600 | ||
| 381529107 | Jevel4297 | F | July 6, 2026, 6:14 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 203 | 2764800 | ||
| 381528456 | ivanovmark | F | July 6, 2026, 6:07 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 203 | 9216000 | ||
| 381537308 | zirobit | F | July 6, 2026, 8:28 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 234 | 2764800 | ||
| 381560228 | naig | F | July 7, 2026, 5:35 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 281 | 320614400 | ||
| 381562736 | naig | F | July 7, 2026, 6:06 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 296 | 320614400 | ||
| 381550284 | ParsaSRK | F | July 7, 2026, 2:42 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 296 | 352665600 | ||
| 381541123 | Feijoa_Li | F | July 6, 2026, 10:28 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 312 | 2048000 | ||
| 381536328 | yamadanull | F | July 6, 2026, 8:06 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 26 | 312 | 2048000 | ||
| 381508587 | LT1 | F | July 6, 2026, 4:13 p.m. | OK | Java 21 | TESTS | 26 | 1421 | 1843200 | ||
| 381516994 | mhkk-24 | F | July 6, 2026, 4:33 p.m. | OK | Rust 2024 | TESTS | 26 | 203 | 238182400 |
Back to search problems