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 |
|---|---|---|---|---|---|---|
| 2181 | 2025-2026 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 10446923 | Dec. 17, 2025, 8:05 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1336 ) | D | Doorway | PROGRAMMING | binary search data structures sortings |
The construction of the doorway for the Nonsense Engineering and Research Convention was delegated to one of the future attendees, who decided on a multi-layered sliding door design. Each layer can be described as a horizontal interval, bounded by solid walls on the left and right, containing a number of sliding doors of fixed lengths. Within a layer, each door can move independently to the left or right, as long as it does not overlap other doors or the walls. All layers are parallel and stacked vertically. After construction, the organizers noticed a problem: it is difficult to fully open the door, and since a large number of attendees are expected, they need to create the largest possible opening to allow everyone to pass through freely. The size of the opening is defined as the total length of horizontal intervals such that, at every point of such an interval and in every layer, there is neither a door nor a wall. Your task is to determine the largest possible opening, given the doors' layout. The first line contains an integer (n) ((1 \le n \le 100\,000)) — the number of layers of the door. Each of the next (n) lines starts with three integers (k_i), (x_{i,1}), (x_{i,2}) ((0 \le k_i \le 300\,000); (0 \le x_{i,1} < x_{i,2} \le 10^9)) — the number of sliding doors on that layer and the (x)-coordinates (x_{i,1}) and (x_{i,2}) of the walls on that layer. There is a wall at (x_{i,1}) and a wall at (x_{i,2}); all positions with (x < x_{i,1}) or (x > x_{i,2}) are blocked by walls. They are followed by (k_i) integers (l_{i,1}, \ldots, l_{i,k_i}) ((1 \le l_{i,j}); (\sum\limits_{j=1}^{k_i} l_{i,j} \le x_{i,2} - x_{i,1})) — the lengths of the sliding doors on that layer given in order from the leftmost door to the rightmost. It is guaranteed that (\sum\limits_{i=1}^{n} k_i \le 300\,000). Output a single integer — the size of the largest possible opening that can be achieved by moving |
| Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 353814665 | dillion sayglenn OneBigNick | D | Dec. 17, 2025, 9:31 a.m. | OK | C++17 (GCC 7-32) | TESTS | 43 | 218 | 9216000 | ||
| 353843540 | ttamx thawin.ice markthitrin | D | Dec. 17, 2025, 12:09 p.m. | OK | C++17 (GCC 7-32) | TESTS | 43 | 234 | 8806400 | ||
| 353919836 | ApuYe | D | Dec. 18, 2025, 3:27 a.m. | OK | C++17 (GCC 7-32) | TESTS | 43 | 312 | 62361600 | ||
| 353851879 | pink_crocodile | D | Dec. 17, 2025, 12:59 p.m. | OK | C++17 (GCC 7-32) | TESTS | 43 | 328 | 10035200 | ||
| 353846204 | ch1ld cjp123 yzdy_s | D | Dec. 17, 2025, 12:25 p.m. | OK | C++17 (GCC 7-32) | TESTS | 43 | 328 | 16691200 | ||
| 353845088 | ayushi.mm tsar cococactus | D | Dec. 17, 2025, 12:19 p.m. | OK | C++17 (GCC 7-32) | TESTS | 43 | 328 | 18329600 | ||
| 353833958 | lotus__ | D | Dec. 17, 2025, 11:13 a.m. | OK | C++17 (GCC 7-32) | TESTS | 43 | 343 | 13721600 | ||
| 353919739 | ApuYe | D | Dec. 18, 2025, 3:25 a.m. | OK | C++17 (GCC 7-32) | TESTS | 43 | 343 | 62361600 | ||
| 353827545 | soumyadiptocodes masti ihgazi | D | Dec. 17, 2025, 10:40 a.m. | OK | C++17 (GCC 7-32) | TESTS | 43 | 437 | 72499200 | ||
| 353835669 | TrQuocAnn | D | Dec. 17, 2025, 11:23 a.m. | OK | C++17 (GCC 7-32) | TESTS | 43 | 562 | 42700800 | ||
| 353815974 | FQR_ | D | Dec. 17, 2025, 9:39 a.m. | OK | C++20 (GCC 13-64) | TESTS | 43 | 187 | 7168000 | ||
| 353813840 | Noobish_Monk qwexd | D | Dec. 17, 2025, 9:26 a.m. | OK | C++20 (GCC 13-64) | TESTS | 43 | 250 | 12800000 | ||
| 353813109 | Rubikun | D | Dec. 17, 2025, 9:21 a.m. | OK | C++20 (GCC 13-64) | TESTS | 43 | 250 | 17408000 | ||
| 353809237 | BonnieCaledonia khoianh cowcowwy | D | Dec. 17, 2025, 8:58 a.m. | OK | C++20 (GCC 13-64) | TESTS | 43 | 250 | 23040000 | ||
| 353810744 | Errichto_ | D | Dec. 17, 2025, 9:07 a.m. | OK | C++20 (GCC 13-64) | TESTS | 43 | 281 | 24166400 | ||
| 353815675 | Taiki0715 nono00 zawatin | D | Dec. 17, 2025, 9:37 a.m. | OK | C++20 (GCC 13-64) | TESTS | 43 | 328 | 9113600 | ||
| 353815828 | btoandizi | D | Dec. 17, 2025, 9:38 a.m. | OK | C++20 (GCC 13-64) | TESTS | 43 | 328 | 10854400 | ||
| 353822149 | lad1chka Pashteticus LOL_I_AM_SERZH | D | Dec. 17, 2025, 10:13 a.m. | OK | C++20 (GCC 13-64) | TESTS | 43 | 343 | 8806400 | ||
| 353815861 | a.out BiggestOtaku | D | Dec. 17, 2025, 9:38 a.m. | OK | C++20 (GCC 13-64) | TESTS | 43 | 343 | 79974400 | ||
| 353829226 | Xerxes | D | Dec. 17, 2025, 10:48 a.m. | OK | C++20 (GCC 13-64) | TESTS | 43 | 359 | 6451200 | ||
| 353806887 | MtSaka | D | Dec. 17, 2025, 8:44 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 43 | 125 | 22220800 | ||
| 353825990 | lcyxds | D | Dec. 17, 2025, 10:32 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 43 | 187 | 4608000 | ||
| 353849429 | 4mda4mda | D | Dec. 17, 2025, 12:45 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 43 | 187 | 5939200 | ||
| 353848741 | AsanAshirov | D | Dec. 17, 2025, 12:40 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 43 | 203 | 7987200 | ||
| 353823754 | aryak05 AnAverageElectrician nandhagk1729 | D | Dec. 17, 2025, 10:21 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 43 | 234 | 7065600 | ||
| 353838355 | danny_ric_14 | D | Dec. 17, 2025, 11:39 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 43 | 250 | 10547200 | ||
| 353844846 | ch1ld cjp123 yzdy_s | D | Dec. 17, 2025, 12:17 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 43 | 250 | 16076800 | ||
| 353842743 | yvbf | D | Dec. 17, 2025, 12:04 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 43 | 265 | 14438400 | ||
| 353841036 | MD.Abdullah Mhkhan nazimsaifullah | D | Dec. 17, 2025, 11:54 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 43 | 265 | 14745600 | ||
| 353811297 | minchan_bae realpsdoingdamyoo woohyun_jng | D | Dec. 17, 2025, 9:10 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 43 | 265 | 107417600 | ||
| 353816217 | Gassa | D | Dec. 17, 2025, 9:40 a.m. | OK | D | TESTS | 43 | 1328 | 35737600 | ||
| 353844560 | ZeroDayKnight | D | Dec. 17, 2025, 12:15 p.m. | OK | Java 21 | TESTS | 43 | 765 | 25497600 | ||
| 353812209 | yangyang520 | D | Dec. 17, 2025, 9:16 a.m. | OK | Java 8 | TESTS | 43 | 1546 | 13721600 | ||
| 353832348 | arvindf232 | D | Dec. 17, 2025, 11:04 a.m. | OK | Kotlin 2.2 | TESTS | 43 | 1078 | 20684800 | ||
| 353839617 | Not_PyPy | D | Dec. 17, 2025, 11:45 a.m. | OK | PyPy 3-64 | TESTS | 43 | 812 | 32870400 | ||
| 353841069 | jigitmax | D | Dec. 17, 2025, 11:54 a.m. | OK | PyPy 3-64 | TESTS | 43 | 937 | 75980800 | ||
| 353835496 | crown_seeker | D | Dec. 17, 2025, 11:22 a.m. | OK | PyPy 3-64 | TESTS | 43 | 984 | 71372800 | ||
| 353818420 | 16777216 | D | Dec. 17, 2025, 9:54 a.m. | OK | PyPy 3-64 | TESTS | 43 | 1171 | 51404800 | ||
| 353812651 | golomb | D | Dec. 17, 2025, 9:18 a.m. | OK | PyPy 3-64 | TESTS | 43 | 1390 | 78540800 | ||
| 353815340 | 987 | D | Dec. 17, 2025, 9:35 a.m. | OK | PyPy 3-64 | TESTS | 43 | 1578 | 53248000 | ||
| 353812219 | dyppp | D | Dec. 17, 2025, 9:16 a.m. | OK | PyPy 3-64 | TESTS | 43 | 1593 | 75980800 | ||
| 353828515 | Yedige8 | D | Dec. 17, 2025, 10:45 a.m. | OK | PyPy 3-64 | TESTS | 43 | 1671 | 72601600 | ||
| 353814304 | Pramag_IIITD mooIi | D | Dec. 17, 2025, 9:29 a.m. | OK | PyPy 3-64 | TESTS | 43 | 1937 | 52326400 | ||
| 353843609 | FikreyohanesAbera JosiSol | D | Dec. 17, 2025, 12:09 p.m. | OK | PyPy 3-64 | TESTS | 43 | 2453 | 251392000 | ||
| 353831662 | SharkOuttie13 | D | Dec. 17, 2025, 11:01 a.m. | OK | Python 3 | TESTS | 43 | 1781 | 131993600 | ||
| 353812278 | Rahul5914 | D | Dec. 17, 2025, 9:16 a.m. | OK | Python 3 | TESTS | 43 | 2406 | 95334400 |
Back to search problems