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 |
---|---|---|---|---|---|---|
1866 | COMPFEST 15 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 43437263 | Sept. 3, 2023, 12:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1783 ) | G | Grouped Carriages | PROGRAMMING | binary search data structures greedy |
B'Pak Chanek observes that the carriages of a train is always full on morning departure hours and afternoon departure hours. Therefore, the balance between carriages is needed so that it is not too crowded in only a few carriages. A train contains N carriages that are numbered from 1 to N from left to right. Carriage i initially contains A_i passengers. All carriages are connected by carriage doors, namely for each i ( 1 <= q i <= q N-1 ), carriage i and carriage i+1 are connected by a two-way door. Each passenger can move between carriages, but train regulation regulates that for each i , a passenger that starts from carriage i cannot go through more than D_i doors. Define Z as the most number of passengers in one same carriage after moving. Pak Chanek asks, what is the minimum possible value of Z ? The first line contains a single integer N ( 1 <= q N <= q 2 cdot10^5 ) -- the number of carriages. The second line contains N integers A_1, A_2, A_3, ldots, A_N ( 0 <= q A_i <= q 10^9 ) -- the initial number of passengers in each carriage. The third line contains N integers D_1, D_2, D_3, ldots, D_N ( 0 <= q D_i <= q N-1 ) -- the maximum limit of the number of doors for each starting carriage. An integer representing the minimum possible value of Z . One strategy that is optimal is as follows: The number of passengers in each carriage becomes [2,4,5,5,4,5,4] . '... |
COMPFEST 15 Preliminary — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
221704849 | yzb002 | G | Sept. 3, 2023, 2:35 p.m. | OK | GNU C++14 | TESTS | 48 | 733 | 10752000 | ||
221694329 | pl_er yspm PureMotivation | G | Sept. 3, 2023, 1:39 p.m. | OK | GNU C++14 | TESTS | 48 | 1809 | 10444800 | ||
221760241 | stoWhaleAtcolaorz | G | Sept. 4, 2023, 1:09 a.m. | OK | GNU C++14 | TESTS | 48 | 1824 | 11980800 | ||
221707427 | cfhj | G | Sept. 3, 2023, 2:51 p.m. | OK | GNU C++14 | TESTS | 48 | 1840 | 11980800 | ||
221694523 | OccDreamer CSSYZ_G2022 Oscaryang | G | Sept. 3, 2023, 1:40 p.m. | OK | GNU C++14 | TESTS | 48 | 1840 | 11980800 | ||
221738973 | hhoangcp | G | Sept. 3, 2023, 6:54 p.m. | OK | GNU C++14 | TESTS | 48 | 1872 | 9625600 | ||
221700889 | The-Winner | G | Sept. 3, 2023, 2:13 p.m. | OK | GNU C++14 | TESTS | 48 | 1980 | 16896000 | ||
221718038 | EasonLiang | G | Sept. 3, 2023, 4:01 p.m. | OK | GNU C++14 | TESTS | 48 | 2011 | 10137600 | ||
221757534 | starrylasky | G | Sept. 3, 2023, 11:53 p.m. | OK | GNU C++14 | TESTS | 48 | 2230 | 38912000 | ||
221749959 | Cmndr_Salamander pedro.racchetti | G | Sept. 3, 2023, 8:50 p.m. | OK | GNU C++14 | TESTS | 48 | 2495 | 16588800 | ||
221715220 | Chelovek9 | G | Sept. 3, 2023, 3:42 p.m. | OK | GNU C++17 | TESTS | 48 | 1154 | 11776000 | ||
221703365 | Potassium | G | Sept. 3, 2023, 2:27 p.m. | OK | GNU C++17 | TESTS | 48 | 1169 | 11059200 | ||
221716492 | JuniperusSibirica ilya.kligunov | G | Sept. 3, 2023, 3:51 p.m. | OK | GNU C++17 | TESTS | 48 | 1201 | 13209600 | ||
221729477 | serotonin | G | Sept. 3, 2023, 5:29 p.m. | OK | GNU C++17 | TESTS | 48 | 1247 | 11366400 | ||
221717696 | hamidh100 KiaRez | G | Sept. 3, 2023, 3:59 p.m. | OK | GNU C++17 | TESTS | 48 | 1263 | 16588800 | ||
221743147 | bobbilyking m0nster.eXe dbaumg | G | Sept. 3, 2023, 7:28 p.m. | OK | GNU C++17 | TESTS | 48 | 1279 | 14336000 | ||
221706654 | Mkswll | G | Sept. 3, 2023, 2:46 p.m. | OK | GNU C++17 | TESTS | 48 | 1310 | 8294400 | ||
221692999 | chengheichit yaufung ethening | G | Sept. 3, 2023, 1:32 p.m. | OK | GNU C++17 | TESTS | 48 | 1326 | 9625600 | ||
221723509 | Gr47 anubhavdhar Newtech66 | G | Sept. 3, 2023, 4:42 p.m. | OK | GNU C++17 | TESTS | 48 | 1341 | 11059200 | ||
221700583 | sahilkumar_1 PROELECTRO444 targeter2004 | G | Sept. 3, 2023, 2:12 p.m. | OK | GNU C++17 | TESTS | 48 | 1357 | 14643200 | ||
221712012 | abcpony | G | Sept. 3, 2023, 3:20 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 405 | 16179200 | ||
221700342 | yangjl | G | Sept. 3, 2023, 2:10 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 421 | 13107200 | ||
221698987 | nnez_xiaoliwei c.young_sb konb1 | G | Sept. 3, 2023, 2:03 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 1107 | 9113600 | ||
221724219 | LLZZKK | G | Sept. 3, 2023, 4:48 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 1231 | 13414400 | ||
221773310 | IceKnight1093 | G | Sept. 4, 2023, 5:21 a.m. | OK | GNU C++17 (64) | TESTS | 48 | 1279 | 14540800 | ||
221693452 | TeasingMaster WHC-MIK-7521X | G | Sept. 3, 2023, 1:35 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 1294 | 13824000 | ||
221710266 | beedle DrearyJoke Yomapeed | G | Sept. 3, 2023, 3:09 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 1403 | 27648000 | ||
221696383 | SmartBamboo Misono_Mika Suiji_SUI | G | Sept. 3, 2023, 1:50 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 1466 | 13926400 | ||
221703329 | YocyCraft | G | Sept. 3, 2023, 2:26 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 1481 | 26624000 | ||
221693392 | MarcosK MateoCV | G | Sept. 3, 2023, 1:34 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 1574 | 14745600 | ||
221741172 | EgorUlin | G | Sept. 3, 2023, 7:11 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 436 | 17817600 | ||
221729327 | abotaha23 | G | Sept. 3, 2023, 5:28 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 514 | 11878400 | ||
221699736 | programpiggy Jerrlee Eric_Cui... | G | Sept. 3, 2023, 2:07 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 608 | 11878400 | ||
221714842 | Kaiser_Kell Linx | G | Sept. 3, 2023, 3:40 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 904 | 19353600 | ||
221754238 | eucalyptus | G | Sept. 3, 2023, 10:18 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 966 | 13312000 | ||
221759835 | 36champ | G | Sept. 4, 2023, 12:59 a.m. | OK | GNU C++20 (64) | TESTS | 48 | 1013 | 9011200 | ||
221724713 | Tmitmi EgorUlin OG_Matveychick1 | G | Sept. 3, 2023, 4:51 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 1045 | 19353600 | ||
221713572 | Tran_Thi_Thanh_Van np4s leeminhduc2 | G | Sept. 3, 2023, 3:30 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 1060 | 16486400 | ||
221708345 | __now__or__never__ the_dragon_emperor Asif17r | G | Sept. 3, 2023, 2:57 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 1060 | 20070400 | ||
221695516 | Spartanlord BhuvanR lakshmankattunga | G | Sept. 3, 2023, 1:45 p.m. | OK | GNU C++20 (64) | TESTS | 48 | 1123 | 15769600 | ||
221721185 | yvbf | G | Sept. 3, 2023, 4:25 p.m. | OK | Java 8 | TESTS | 48 | 2464 | 16486400 | ||
221699959 | arvindf232 | G | Sept. 3, 2023, 2:08 p.m. | OK | Kotlin 1.6 | TESTS | 48 | 2058 | 30003200 | ||
221695181 | Spheniscine | G | Sept. 3, 2023, 1:43 p.m. | OK | Rust 2021 | TESTS | 48 | 1325 | 24371200 |
Back to search problems