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 |
---|---|---|---|---|---|---|
1561 | Codeforces Round 740 (Div. 2, based on VK Cup 2021 - Final (Engine)) | FINISHED | False | 9000 | 107364263 | Aug. 24, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 15437 ) | C | Deep Down Below | PROGRAMMING | binary search greedy sortings | 1300 |
B"In a certain video game, the player controls a hero characterized by a single integer value: power. The hero will have to beat monsters that are also characterized by a single integer value: armor. On the current level, the hero is facing n caves. To pass the level, the hero must enter all the caves in some order, each cave exactly once, and exit every cave safe and sound. When the hero enters cave i , he will have to fight k_i monsters in a row: first a monster with armor a_{i, 1} , then a monster with armor a_{i, 2} and so on, finally, a monster with armor a_{i, k_i} . The hero can beat a monster if and only if the hero's power is strictly greater than the monster's armor. If the hero can't beat the monster he's fighting, the game ends and the player loses. Note that once the hero enters a cave, he can't exit it before he fights all the monsters in it, strictly in the given order. Each time the hero beats a monster, the hero's power increases by 1 . Find the smallest possible power the hero must start the level with to be able to enter all the caves in some order and beat all the monsters. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10^5 ). Description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 10^5 ) -- the number of caves. The i -th of the next n lines contains an integer k_i ( 1 <= k_i <= 10^5 ) -- the number of monsters in the i -th cave, followed by k_i integers a_{i, 1}, a_{i, 2}, ldots, a_{i, k_i} ( 1 <= a_{i, j} <= 10^9 ) -- armor levels of the monsters in cave i in order the hero has to fight them. It is guaranteed that the sum of k_i over all test cases does not exceed 10^5 . For each test case print a single integer -- the smallest possible power the hero must start the level with to be able to ent"... |
Codeforces Round #740 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
126932840 | skypowerr | C | Aug. 25, 2021, 4:38 a.m. | OK | Clang++17 Diagnostics | TESTS | 47 | 280 | 280780800 | 1300 | |
126930314 | skypowerr | C | Aug. 25, 2021, 3:51 a.m. | OK | Clang++17 Diagnostics | TESTS | 47 | 311 | 295219200 | 1300 | |
126988851 | jay_jayjay | C | Aug. 25, 2021, 4:43 p.m. | OK | GNU C11 | TESTS | 47 | 436 | 5427200 | 1300 | |
126937489 | aldol_reaction | C | Aug. 25, 2021, 5:48 a.m. | OK | GNU C++14 | TESTS | 47 | 46 | 5529600 | 1300 | |
126971770 | YangTY | C | Aug. 25, 2021, 1:20 p.m. | OK | GNU C++14 | TESTS | 47 | 46 | 22118400 | 1300 | |
126931359 | wangyian2022 | C | Aug. 25, 2021, 4:09 a.m. | OK | GNU C++14 | TESTS | 47 | 62 | 6656000 | 1300 | |
126963920 | kostanya | C | Aug. 25, 2021, 11:31 a.m. | OK | GNU C++14 | TESTS | 47 | 77 | 4505600 | 1300 | |
126990530 | thy0602 | C | Aug. 25, 2021, 5:09 p.m. | OK | GNU C++14 | TESTS | 47 | 77 | 5324800 | 1300 | |
126969941 | d0ct0r.3v1l.k5h1t1j | C | Aug. 25, 2021, 12:56 p.m. | OK | GNU C++14 | TESTS | 47 | 77 | 5324800 | 1300 | |
126910635 | scdchandan | C | Aug. 24, 2021, 6:36 p.m. | OK | GNU C++14 | TESTS | 47 | 77 | 5324800 | 1300 | |
126924084 | Solstice | C | Aug. 25, 2021, 1:40 a.m. | OK | GNU C++14 | TESTS | 47 | 78 | 4710400 | 1300 | |
126948476 | xiaoziyao | C | Aug. 25, 2021, 8:04 a.m. | OK | GNU C++14 | TESTS | 47 | 78 | 4915200 | 1300 | |
127010107 | venkatdsingh7 | C | Aug. 26, 2021, 2:21 a.m. | OK | GNU C++14 | TESTS | 47 | 78 | 5324800 | 1300 | |
126910297 | qrst11 | C | Aug. 24, 2021, 6:31 p.m. | OK | GNU C++17 | TESTS | 47 | 46 | 4505600 | 1300 | |
126945666 | kartikPant23 | C | Aug. 25, 2021, 7:29 a.m. | OK | GNU C++17 | TESTS | 47 | 77 | 4505600 | 1300 | |
126951075 | sajib_kumar_biswas | C | Aug. 25, 2021, 8:34 a.m. | OK | GNU C++17 | TESTS | 47 | 77 | 5324800 | 1300 | |
126915385 | deadlucifer | C | Aug. 24, 2021, 8:08 p.m. | OK | GNU C++17 | TESTS | 47 | 77 | 5324800 | 1300 | |
127007289 | DespicableMonkey | C | Aug. 26, 2021, 12:39 a.m. | OK | GNU C++17 | TESTS | 47 | 77 | 5734400 | 1300 | |
126952027 | _seeker_ | C | Aug. 25, 2021, 8:46 a.m. | OK | GNU C++17 | TESTS | 47 | 77 | 6246400 | 1300 | |
127007661 | kkishi | C | Aug. 26, 2021, 12:57 a.m. | OK | GNU C++17 | TESTS | 47 | 77 | 7065600 | 1300 | |
126935111 | lrb666 | C | Aug. 25, 2021, 5:15 a.m. | OK | GNU C++17 | TESTS | 47 | 77 | 7475200 | 1300 | |
126910333 | Keith_Kazama | C | Aug. 24, 2021, 6:32 p.m. | OK | GNU C++17 | TESTS | 47 | 77 | 12697600 | 1300 | |
127002300 | nik_kill | C | Aug. 25, 2021, 8:49 p.m. | OK | GNU C++17 | TESTS | 47 | 78 | 4505600 | 1300 | |
126920955 | locsey | C | Aug. 24, 2021, 11:48 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 46 | 33996800 | 1300 | |
126924884 | jjjjssss6 | C | Aug. 25, 2021, 2:02 a.m. | OK | GNU C++17 (64) | TESTS | 47 | 61 | 5120000 | 1300 | |
126921017 | CodingKnight | C | Aug. 24, 2021, 11:52 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 61 | 6451200 | 1300 | |
126952920 | zzlzzlzzl | C | Aug. 25, 2021, 8:58 a.m. | OK | GNU C++17 (64) | TESTS | 47 | 61 | 7372800 | 1300 | |
126951306 | CartesianTree | C | Aug. 25, 2021, 8:37 a.m. | OK | GNU C++17 (64) | TESTS | 47 | 61 | 11264000 | 1300 | |
126964833 | rgnerdplayer | C | Aug. 25, 2021, 11:43 a.m. | OK | GNU C++17 (64) | TESTS | 47 | 62 | 5120000 | 1300 | |
126976906 | emthrm | C | Aug. 25, 2021, 2:22 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 62 | 5120000 | 1300 | |
126937407 | alwyn | C | Aug. 25, 2021, 5:46 a.m. | OK | GNU C++17 (64) | TESTS | 47 | 62 | 5120000 | 1300 | |
126911228 | mohammad_reza | C | Aug. 24, 2021, 6:45 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 62 | 5120000 | 1300 | |
126927259 | brainy_fool | C | Aug. 25, 2021, 2:52 a.m. | OK | GNU C++17 (64) | TESTS | 47 | 62 | 5836800 | 1300 | |
126970779 | gealbermorales | C | Aug. 25, 2021, 1:07 p.m. | OK | Go | TESTS | 47 | 421 | 20889600 | 1300 | |
126951081 | Jepbar_Asgarov | C | Aug. 25, 2021, 8:34 a.m. | OK | Go | TESTS | 47 | 483 | 15155200 | 1300 | |
126945467 | SnacksTime | C | Aug. 25, 2021, 7:27 a.m. | OK | Go | TESTS | 47 | 498 | 27033600 | 1300 | |
126917221 | solo07 | C | Aug. 24, 2021, 9 p.m. | OK | Java 11 | TESTS | 47 | 233 | 24371200 | 1300 | |
126942667 | mrlucent | C | Aug. 25, 2021, 6:55 a.m. | OK | Java 11 | TESTS | 47 | 233 | 24780800 | 1300 | |
126955148 | bluesky111 | C | Aug. 25, 2021, 9:25 a.m. | OK | Java 11 | TESTS | 47 | 264 | 24473600 | 1300 | |
126928470 | vamsikonakandla123 | C | Aug. 25, 2021, 3:16 a.m. | OK | Java 11 | TESTS | 47 | 265 | 24371200 | 1300 | |
126950907 | ilasiawo | C | Aug. 25, 2021, 8:32 a.m. | OK | Java 11 | TESTS | 47 | 265 | 27955200 | 1300 | |
126975538 | e_is_cool | C | Aug. 25, 2021, 2:06 p.m. | OK | Java 11 | TESTS | 47 | 280 | 24371200 | 1300 | |
126931921 | yogii_123 | C | Aug. 25, 2021, 4:20 a.m. | OK | Java 11 | TESTS | 47 | 280 | 24576000 | 1300 | |
126994588 | nobrain3898 | C | Aug. 25, 2021, 6:12 p.m. | OK | Java 11 | TESTS | 47 | 280 | 24576000 | 1300 | |
126987253 | dinosparton_013 | C | Aug. 25, 2021, 4:22 p.m. | OK | Java 11 | TESTS | 47 | 280 | 24576000 | 1300 | |
126918256 | pranayrana14 | C | Aug. 24, 2021, 9:36 p.m. | OK | Java 11 | TESTS | 47 | 280 | 27955200 | 1300 | |
127005385 | RonWonWon | C | Aug. 25, 2021, 10:50 p.m. | OK | Java 8 | TESTS | 47 | 171 | 21094400 | 1300 | |
126947588 | tusharahuja | C | Aug. 25, 2021, 7:52 a.m. | OK | Java 8 | TESTS | 47 | 187 | 20992000 | 1300 | |
126910446 | prem_cse | C | Aug. 24, 2021, 6:34 p.m. | OK | Java 8 | TESTS | 47 | 217 | 23040000 | 1300 | |
126910251 | ln_nl | C | Aug. 24, 2021, 6:31 p.m. | OK | Java 8 | TESTS | 47 | 218 | 23040000 | 1300 | |
126950345 | priyam_anand | C | Aug. 25, 2021, 8:26 a.m. | OK | Java 8 | TESTS | 47 | 233 | 37785600 | 1300 | |
126935742 | BruteForcee | C | Aug. 25, 2021, 5:24 a.m. | OK | Java 8 | TESTS | 47 | 234 | 21913600 | 1300 | |
126992625 | sanjayram21 | C | Aug. 25, 2021, 5:40 p.m. | OK | Java 8 | TESTS | 47 | 249 | 21196800 | 1300 | |
126950763 | alibaba | C | Aug. 25, 2021, 8:31 a.m. | OK | Java 8 | TESTS | 47 | 249 | 21811200 | 1300 | |
126914650 | invincible777 | C | Aug. 24, 2021, 7:50 p.m. | OK | Java 8 | TESTS | 47 | 295 | 38400000 | 1300 | |
126909747 | bubnov | C | Aug. 24, 2021, 6:24 p.m. | OK | Java 8 | TESTS | 47 | 296 | 41574400 | 1300 | |
126916560 | amanpatel23 | C | Aug. 24, 2021, 8:39 p.m. | OK | Kotlin | TESTS | 47 | 218 | 22118400 | 1300 | |
126927242 | Gompu123 | C | Aug. 25, 2021, 2:52 a.m. | OK | Kotlin | TESTS | 47 | 295 | 25600000 | 1300 | |
126964667 | soccoder | C | Aug. 25, 2021, 11:41 a.m. | OK | MS C++ 2017 | TESTS | 47 | 109 | 4505600 | 1300 | |
126963169 | soccoder | C | Aug. 25, 2021, 11:20 a.m. | OK | MS C++ 2017 | TESTS | 47 | 109 | 5324800 | 1300 | |
126964555 | soccoder | C | Aug. 25, 2021, 11:39 a.m. | OK | MS C++ 2017 | TESTS | 47 | 124 | 4505600 | 1300 | |
126923329 | SuperMurloc | C | Aug. 25, 2021, 1:19 a.m. | OK | MS C++ 2017 | TESTS | 47 | 124 | 5324800 | 1300 | |
126963146 | soccoder | C | Aug. 25, 2021, 11:20 a.m. | OK | MS C++ 2017 | TESTS | 47 | 124 | 5324800 | 1300 | |
126930275 | seuangelfish | C | Aug. 25, 2021, 3:51 a.m. | OK | MS C++ 2017 | TESTS | 47 | 124 | 7782400 | 1300 | |
126909465 | chika10 | C | Aug. 24, 2021, 6:20 p.m. | OK | MS C++ 2017 | TESTS | 47 | 312 | 5734400 | 1300 | |
126930377 | C32 | C | Aug. 25, 2021, 3:52 a.m. | OK | MS C++ 2017 | TESTS | 47 | 576 | 4608000 | 1300 | |
126970376 | tzh123 | C | Aug. 25, 2021, 1:02 p.m. | OK | MS C++ 2017 | TESTS | 47 | 576 | 6451200 | 1300 | |
126966826 | ShallowKiss | C | Aug. 25, 2021, 12:11 p.m. | OK | MS C++ 2017 | TESTS | 47 | 577 | 15769600 | 1300 | |
126930137 | azukun | C | Aug. 25, 2021, 3:48 a.m. | OK | .NET Core C# | TESTS | 47 | 187 | 23244800 | 1300 | |
126936826 | eternal_25 | C | Aug. 25, 2021, 5:38 a.m. | OK | PyPy 2 | TESTS | 47 | 1497 | 31641600 | 1300 | |
126986773 | radoan.sharkar.richi | C | Aug. 25, 2021, 4:16 p.m. | OK | PyPy 3 | TESTS | 47 | 296 | 33894400 | 1300 | |
126986863 | radoan.sharkar.richi | C | Aug. 25, 2021, 4:17 p.m. | OK | PyPy 3 | TESTS | 47 | 311 | 33894400 | 1300 | |
126933177 | rivnam | C | Aug. 25, 2021, 4:44 a.m. | OK | PyPy 3 | TESTS | 47 | 374 | 35635200 | 1300 | |
126951613 | lcy8417 | C | Aug. 25, 2021, 8:40 a.m. | OK | PyPy 3 | TESTS | 47 | 405 | 30924800 | 1300 | |
126911943 | misorin | C | Aug. 24, 2021, 6:57 p.m. | OK | PyPy 3 | TESTS | 47 | 405 | 30924800 | 1300 | |
126977179 | Het_Fadia | C | Aug. 25, 2021, 2:26 p.m. | OK | PyPy 3 | TESTS | 47 | 421 | 31334400 | 1300 | |
126913191 | rbamhore20 | C | Aug. 24, 2021, 7:20 p.m. | OK | PyPy 3 | TESTS | 47 | 436 | 30924800 | 1300 | |
126909656 | fotol | C | Aug. 24, 2021, 6:23 p.m. | OK | PyPy 3 | TESTS | 47 | 436 | 31129600 | 1300 | |
126977767 | Het_Fadia | C | Aug. 25, 2021, 2:33 p.m. | OK | PyPy 3 | TESTS | 47 | 436 | 31334400 | 1300 | |
126977277 | Het_Fadia | C | Aug. 25, 2021, 2:27 p.m. | OK | PyPy 3 | TESTS | 47 | 451 | 32460800 | 1300 | |
126926260 | danghuyng | C | Aug. 25, 2021, 2:32 a.m. | OK | Python 3 | TESTS | 47 | 592 | 15360000 | 1300 | |
126926984 | nsharc4 | C | Aug. 25, 2021, 2:47 a.m. | OK | Python 3 | TESTS | 47 | 607 | 22016000 | 1300 | |
126986834 | radoan.sharkar.richi | C | Aug. 25, 2021, 4:17 p.m. | OK | Python 3 | TESTS | 47 | 685 | 16896000 | 1300 | |
126916083 | Darkripple | C | Aug. 24, 2021, 8:25 p.m. | OK | Python 3 | TESTS | 47 | 701 | 20889600 | 1300 | |
126935800 | FameOfTheLegends | C | Aug. 25, 2021, 5:24 a.m. | OK | Python 3 | TESTS | 47 | 748 | 16588800 | 1300 | |
127002105 | NightCrawler07 | C | Aug. 25, 2021, 8:42 p.m. | OK | Python 3 | TESTS | 47 | 779 | 17305600 | 1300 | |
126994901 | vecxtor | C | Aug. 25, 2021, 6:18 p.m. | OK | Python 3 | TESTS | 47 | 1216 | 15052800 | 1300 | |
126928302 | kanu2001 | C | Aug. 25, 2021, 3:12 a.m. | OK | Python 3 | TESTS | 47 | 1232 | 15360000 | 1300 | |
126927374 | swapnilvc | C | Aug. 25, 2021, 2:55 a.m. | OK | Python 3 | TESTS | 47 | 1263 | 15052800 | 1300 | |
126926155 | danghuyng | C | Aug. 25, 2021, 2:30 a.m. | OK | Python 3 | TESTS | 47 | 1263 | 15052800 | 1300 | |
126912432 | apilat | C | Aug. 24, 2021, 7:05 p.m. | OK | Rust | TESTS | 47 | 93 | 10649600 | 1300 | |
126983417 | XLor | C | Aug. 25, 2021, 3:37 p.m. | OK | Rust | TESTS | 47 | 779 | 7065600 | 1300 | |
126910185 | IvanDyachenko | C | Aug. 24, 2021, 6:30 p.m. | OK | Scala | TESTS | 47 | 1606 | 49254400 | 1300 | |
126908636 | IvanDyachenko | C | Aug. 24, 2021, 6:10 p.m. | OK | Scala | TESTS | 47 | 1622 | 48844800 | 1300 |
Back to search problems