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 |
---|---|---|---|---|---|---|
1837 | Educational Codeforces Round 149 (Rated for Div. 2) | FINISHED | False | 7200 | 52241063 | May 25, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2264 ) | F | Editorial for Two | PROGRAMMING | binary search data structures greedy implementation |
B"Berland Intercollegiate Contest has just finished. Monocarp and Polycarp, as the jury, are going to conduct an editorial. Unfortunately, the time is limited, since they have to finish before the closing ceremony. There were n problems in the contest. The problems are numbered from 1 to n . The editorial for the i -th problem takes a_i minutes. Monocarp and Polycarp are going to conduct an editorial for exactly k of the problems. The editorial goes as follows. They have a full problemset of n problems before them, in order. They remove n - k problems without changing the order of the remaining k problems. Then, Monocarp takes some prefix of these k problems (possibly, an empty one or all problems). Polycarp takes the remaining suffix of them. After that, they go to different rooms and conduct editorials for their problems in parallel. So, the editorial takes as much time as the longer of these two does. Please, help Monocarp and Polycarp to choose the problems and the split in such a way that the editorial finishes as early as possible. Print the duration of the editorial. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of testcases. The first line of each testcase contains two integers n and k ( 1 <= k <= n <= 3 cdot 10^5 ) -- the number of problems in the full problemset and the number of problems Monocarp and Polycarp are going to conduct an editorial for. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ) -- the time each editorial takes. The sum of n over all testcases doesn't exceed 3 cdot 10^5 . For each testcase, print a single integer -- the smallest amount of time the editorial takes, if Monocarp and Polycarp can choose which k of n problems to conduct an editorial for and how to split them among themselves. "... |
116752 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
207292964 | Hell2Evator | F | May 26, 2023, 12:29 a.m. | OK | GNU C++14 | TESTS | 75 | 514 | 37580800 | ||
207259840 | espr1t | F | May 25, 2023, 4:33 p.m. | OK | GNU C++14 | TESTS | 75 | 794 | 30310400 | ||
207262356 | Apiram | F | May 25, 2023, 4:40 p.m. | OK | GNU C++14 | TESTS | 75 | 857 | 8089600 | ||
207303854 | RobertoFirmino | F | May 26, 2023, 4:21 a.m. | OK | GNU C++14 | TESTS | 75 | 1575 | 14438400 | ||
207308994 | OMG_78 | F | May 26, 2023, 5:37 a.m. | OK | GNU C++14 | TESTS | 75 | 1591 | 26521600 | ||
207265378 | t98slider | F | May 25, 2023, 4:57 p.m. | OK | GNU C++14 | TESTS | 75 | 1700 | 5222400 | ||
207301426 | OMG_78 | F | May 26, 2023, 3:35 a.m. | OK | GNU C++14 | TESTS | 75 | 1731 | 26521600 | ||
207301659 | Anonyme | F | May 26, 2023, 3:40 a.m. | OK | GNU C++14 | TESTS | 75 | 1981 | 8089600 | ||
207267030 | samarthgattu | F | May 25, 2023, 5:08 p.m. | OK | GNU C++14 | TESTS | 75 | 2043 | 6348800 | ||
207263822 | Apiram | F | May 25, 2023, 4:49 p.m. | OK | GNU C++14 | TESTS | 75 | 2183 | 6963200 | ||
207267171 | patou | F | May 25, 2023, 5:09 p.m. | OK | GNU C++17 | TESTS | 75 | 343 | 38707200 | ||
207280819 | XDEv11 | F | May 25, 2023, 7:32 p.m. | OK | GNU C++17 | TESTS | 75 | 358 | 20172800 | ||
207265324 | qdd_red_sun | F | May 25, 2023, 4:57 p.m. | OK | GNU C++17 | TESTS | 75 | 374 | 6041600 | ||
207271052 | crabcrabcrab | F | May 25, 2023, 5:43 p.m. | OK | GNU C++17 | TESTS | 75 | 389 | 20480000 | ||
207269628 | crabcrabcrab | F | May 25, 2023, 5:29 p.m. | OK | GNU C++17 | TESTS | 75 | 390 | 20480000 | ||
207269344 | crabcrabcrab | F | May 25, 2023, 5:27 p.m. | OK | GNU C++17 | TESTS | 75 | 420 | 20480000 | ||
207267252 | crabcrabcrab | F | May 25, 2023, 5:10 p.m. | OK | GNU C++17 | TESTS | 75 | 545 | 13209600 | ||
207288834 | eldonak | F | May 25, 2023, 10:05 p.m. | OK | GNU C++17 | TESTS | 75 | 624 | 13414400 | ||
207275465 | ArvinCiu | F | May 25, 2023, 6:24 p.m. | OK | GNU C++17 | TESTS | 75 | 780 | 11059200 | ||
207275932 | ArvinCiu | F | May 25, 2023, 6:28 p.m. | OK | GNU C++17 | TESTS | 75 | 795 | 11059200 | ||
207262709 | Ruizhangj | F | May 25, 2023, 4:42 p.m. | OK | GNU C++17 (64) | TESTS | 75 | 233 | 74444800 | ||
207306723 | q-w-q-w-q | F | May 26, 2023, 5:06 a.m. | OK | GNU C++17 (64) | TESTS | 75 | 499 | 8396800 | ||
207294190 | zlxFTH | F | May 26, 2023, 1:04 a.m. | OK | GNU C++17 (64) | TESTS | 75 | 561 | 49152000 | ||
207294430 | yamate11 | F | May 26, 2023, 1:10 a.m. | OK | GNU C++17 (64) | TESTS | 75 | 873 | 21811200 | ||
207295217 | enslaved | F | May 26, 2023, 1:30 a.m. | OK | GNU C++17 (64) | TESTS | 75 | 920 | 15667200 | ||
207273777 | 244mhq | F | May 25, 2023, 6:07 p.m. | OK | GNU C++17 (64) | TESTS | 75 | 1076 | 49459200 | ||
207302398 | gqf123 | F | May 26, 2023, 3:54 a.m. | OK | GNU C++17 (64) | TESTS | 75 | 1326 | 6041600 | ||
207293772 | loser--007 | F | May 26, 2023, 12:54 a.m. | OK | GNU C++17 (64) | TESTS | 75 | 1528 | 6656000 | ||
207290475 | Rania | F | May 25, 2023, 10:58 p.m. | OK | GNU C++17 (64) | TESTS | 75 | 1560 | 6758400 | ||
207291949 | MarcosK | F | May 25, 2023, 11:54 p.m. | OK | GNU C++17 (64) | TESTS | 75 | 1684 | 7884800 | ||
207295831 | xianboyu | F | May 26, 2023, 1:44 a.m. | OK | GNU C++20 (64) | TESTS | 75 | 202 | 11878400 | ||
207298788 | Low_power | F | May 26, 2023, 2:48 a.m. | OK | GNU C++20 (64) | TESTS | 75 | 295 | 38502400 | ||
207295626 | xianboyu | F | May 26, 2023, 1:40 a.m. | OK | GNU C++20 (64) | TESTS | 75 | 296 | 10752000 | ||
207295480 | xianboyu | F | May 26, 2023, 1:37 a.m. | OK | GNU C++20 (64) | TESTS | 75 | 311 | 10752000 | ||
207292688 | dXqwq | F | May 26, 2023, 12:20 a.m. | OK | GNU C++20 (64) | TESTS | 75 | 467 | 49049600 | ||
207260009 | ElyesChaabouni | F | May 25, 2023, 4:33 p.m. | OK | GNU C++20 (64) | TESTS | 75 | 499 | 47411200 | ||
207263817 | el_tunel | F | May 25, 2023, 4:49 p.m. | OK | GNU C++20 (64) | TESTS | 75 | 607 | 15667200 | ||
207299196 | KING_OF_TURTLE | F | May 26, 2023, 2:56 a.m. | OK | GNU C++20 (64) | TESTS | 75 | 608 | 8396800 | ||
207299868 | KING_OF_TURTLE | F | May 26, 2023, 3:09 a.m. | OK | GNU C++20 (64) | TESTS | 75 | 624 | 8396800 | ||
207267957 | int_jim | F | May 25, 2023, 5:15 p.m. | OK | GNU C++20 (64) | TESTS | 75 | 639 | 12185600 | ||
207273469 | profchi | F | May 25, 2023, 6:04 p.m. | OK | Java 11 | TESTS | 75 | 1606 | 37376000 | ||
207309571 | pxhero | F | May 26, 2023, 5:45 a.m. | OK | Java 17 | TESTS | 75 | 701 | 42905600 | ||
207282963 | IanISam | F | May 25, 2023, 8:05 p.m. | OK | Java 8 | TESTS | 75 | 2698 | 54784000 | ||
207308320 | Little_Sheep_Yawn | F | May 26, 2023, 5:28 a.m. | OK | PyPy 3-64 | TESTS | 75 | 3697 | 54272000 | ||
207293925 | misorin | F | May 26, 2023, 12:58 a.m. | OK | PyPy 3-64 | TESTS | 75 | 3884 | 59699200 | ||
207292971 | misorin | F | May 26, 2023, 12:29 a.m. | OK | PyPy 3-64 | TESTS | 75 | 3946 | 59699200 | ||
207309477 | liupengsay | F | May 26, 2023, 5:44 a.m. | OK | PyPy 3-64 | TESTS | 75 | 3961 | 55193600 | ||
207296730 | hxu10 | F | May 26, 2023, 2:05 a.m. | OK | PyPy 3-64 | TESTS | 75 | 3993 | 59699200 | ||
207263825 | magnus.hegdahl | F | May 25, 2023, 4:49 p.m. | OK | Rust 2021 | TESTS | 75 | 452 | 7987200 | ||
207292673 | kost | F | May 26, 2023, 12:20 a.m. | OK | Rust 2021 | TESTS | 75 | 1107 | 96460800 | ||
207269820 | RustIsBestLang | F | May 25, 2023, 5:31 p.m. | OK | Rust 2021 | TESTS | 75 | 3260 | 29081600 | ||
207269570 | RustIsBestLang | F | May 25, 2023, 5:29 p.m. | OK | Rust 2021 | TESTS | 75 | 3400 | 29081600 | ||
207265594 | robostac | F | May 25, 2023, 4:59 p.m. | OK | Rust 2021 | TESTS | 75 | 3759 | 73625600 |
Back to search problems