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 |
---|---|---|---|---|---|---|
1578 | ICPC WF Moscow Invitational Contest - Online Mirror (Unrated, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 104172863 | Oct. 1, 2021, 1:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1241 ) | L | Labyrinth | PROGRAMMING | binary search ds |
B'In a dream, Lucy found herself in a labyrinth. This labyrinth consists of n rooms, connected by m passages ( i -th passage is w_i cm wide). Each passage can be traversed in both directions. It is guaranteed that it is possible to get from any room to any other room. But this is not an ordinary labyrinth -- each room in this labyrinth contains a magic candy. When Lucy eats this magic candy, she is getting wider. Specifically, if she eats candy from room i she becomes wider by c_i cm. Note that she is not obliged to eat candy the first time she visits a particular room, but she can eat each candy only once. Unfortunately, passages in this labyrinth are pretty narrow, so after eating some candy, Lucy can get too wide and will not be able to traverse them -- her width should not be greater than the width of the corresponding passage. Lucy starts her journey in a room number 1 . She wants to eat all the candies. After that, she will just wake up, so she does not have to be able to return to the room 1 . She realizes that with her current width, she may not be able to do so, so she plans a workout before embarking on her journey. Lucy wants to know if it is possible to start with some positive width and still eat all the candies. If yes, then what is the maximal starting width with which it is possible. The first line contains two integers, n and m ( 2 <= n <= 10^5; n - 1 <= m <= 10^5 ) -- the number of rooms and the number of passages. The second line contains n integers -- c_i ( 1 <= c_i <= 10^9 ). Next m lines contain three integers each -- a_i , b_i and w_i ( 1 <= a_i, b_i <= n; a_i ne b_i; 1 <= w_i <= 10^9 ) describing passage that connects rooms a_i and b_i and is w_i cm wide. It is guaranteed that the resulting labyrinth is connected and there is at most one passage between any pair of rooms. If it is possible to e'... |
Tutorial (PDF) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
130487531 | fmwviormv Reza_H MeHdi.KaZemI8 | L | Oct. 1, 2021, 4:48 p.m. | OK | GNU C11 | TESTS | 42 | 93 | 10137600 | ||
130466112 | Argentina medium_waxberry Misaka-Mikoto- | L | Oct. 1, 2021, 1:23 p.m. | OK | GNU C++14 | TESTS | 42 | 108 | 7372800 | ||
130480152 | catalystgma popovicirobert Gioto | L | Oct. 1, 2021, 3:30 p.m. | OK | GNU C++14 | TESTS | 42 | 108 | 8499200 | ||
130484520 | tun | L | Oct. 1, 2021, 4:16 p.m. | OK | GNU C++14 | TESTS | 42 | 108 | 12595200 | ||
130471280 | Fulisike Miracle03 Retired_MiFaFaOvO | L | Oct. 1, 2021, 2:08 p.m. | OK | GNU C++14 | TESTS | 42 | 109 | 8192000 | ||
130469986 | CuCl2 Eric_hooo KillerX | L | Oct. 1, 2021, 1:56 p.m. | OK | GNU C++14 | TESTS | 42 | 109 | 8499200 | ||
130498431 | shashwat259 | L | Oct. 1, 2021, 6:45 p.m. | OK | GNU C++14 | TESTS | 42 | 109 | 8908800 | ||
130484138 | star_city maxtir lucccff | L | Oct. 1, 2021, 4:12 p.m. | OK | GNU C++14 | TESTS | 42 | 109 | 14848000 | ||
130476997 | chenkuowen Suiseiseki RiverHamster | L | Oct. 1, 2021, 2:58 p.m. | OK | GNU C++14 | TESTS | 42 | 109 | 16076800 | ||
130484569 | Juanito98 Josetapia ivanzuki | L | Oct. 1, 2021, 4:17 p.m. | OK | GNU C++14 | TESTS | 42 | 124 | 8806400 | ||
130480232 | tzc_wk gig_lf Alex_Wei | L | Oct. 1, 2021, 3:31 p.m. | OK | GNU C++14 | TESTS | 42 | 124 | 9625600 | ||
130471782 | BSBandme sweetsc | L | Oct. 1, 2021, 2:12 p.m. | OK | GNU C++17 | TESTS | 42 | 93 | 6963200 | ||
130472410 | anodiebird | L | Oct. 1, 2021, 2:18 p.m. | OK | GNU C++17 | TESTS | 42 | 108 | 8601600 | ||
130518792 | Andrewlxm | L | Oct. 2, 2021, 3:58 a.m. | OK | GNU C++17 | TESTS | 42 | 108 | 8908800 | ||
130526831 | 20203246 | L | Oct. 2, 2021, 5:55 a.m. | OK | GNU C++17 | TESTS | 42 | 108 | 8908800 | ||
130477826 | MetalPower JvThunder Zap | L | Oct. 1, 2021, 3:06 p.m. | OK | GNU C++17 | TESTS | 42 | 108 | 10956800 | ||
130473645 | sfiction shb123 J.T.J.L. | L | Oct. 1, 2021, 2:28 p.m. | OK | GNU C++17 | TESTS | 42 | 109 | 8294400 | ||
130482146 | wiwitrifai radit Luqman | L | Oct. 1, 2021, 3:50 p.m. | OK | GNU C++17 | TESTS | 42 | 109 | 10547200 | ||
130488416 | zhangguangxuan99 nvmdava Maripium | L | Oct. 1, 2021, 4:58 p.m. | OK | GNU C++17 | TESTS | 42 | 109 | 13312000 | ||
130520210 | wifiiii | L | Oct. 2, 2021, 4:23 a.m. | OK | GNU C++17 | TESTS | 42 | 124 | 6963200 | ||
130485729 | xiaoxiaobaozi e_yi devilcry | L | Oct. 1, 2021, 4:29 p.m. | OK | GNU C++17 | TESTS | 42 | 124 | 7372800 | ||
130474190 | yosupo | L | Oct. 1, 2021, 2:33 p.m. | OK | GNU C++17 (64) | TESTS | 42 | 31 | 7987200 | ||
130507830 | Thallium54 | L | Oct. 1, 2021, 9:44 p.m. | OK | GNU C++17 (64) | TESTS | 42 | 78 | 7884800 | ||
130474413 | Arg_007 _Ash__ Anachor | L | Oct. 1, 2021, 2:35 p.m. | OK | GNU C++17 (64) | TESTS | 42 | 78 | 10444800 | ||
130475758 | ToxicPie9 alan8585 HNO2 | L | Oct. 1, 2021, 2:47 p.m. | OK | GNU C++17 (64) | TESTS | 42 | 92 | 11161600 | ||
130513271 | Thallium54 | L | Oct. 2, 2021, 1:27 a.m. | OK | GNU C++17 (64) | TESTS | 42 | 93 | 7884800 | ||
130513343 | Thallium54 | L | Oct. 2, 2021, 1:29 a.m. | OK | GNU C++17 (64) | TESTS | 42 | 93 | 7884800 | ||
130485216 | Dmitriy.Belichenko dargelirli Semenar | L | Oct. 1, 2021, 4:24 p.m. | OK | GNU C++17 (64) | TESTS | 42 | 93 | 8704000 | ||
130479114 | mango_lassi | L | Oct. 1, 2021, 3:20 p.m. | OK | GNU C++17 (64) | TESTS | 42 | 93 | 9113600 | ||
130482229 | trainwithoutpain | L | Oct. 1, 2021, 3:51 p.m. | OK | GNU C++17 (64) | TESTS | 42 | 93 | 9523200 | ||
130513883 | adp527 | L | Oct. 2, 2021, 1:50 a.m. | OK | GNU C++17 (64) | TESTS | 42 | 93 | 9625600 | ||
130520719 | learnjava | L | Oct. 2, 2021, 4:31 a.m. | OK | Java 8 | TESTS | 42 | 233 | 23756800 | ||
130520422 | learnjava | L | Oct. 2, 2021, 4:26 a.m. | OK | Java 8 | TESTS | 42 | 265 | 23756800 | ||
130521299 | Shiny_ruo | L | Oct. 2, 2021, 4:40 a.m. | OK | MS C++ 2017 | TESTS | 42 | 358 | 22835200 | ||
130521389 | Shiny_ruo | L | Oct. 2, 2021, 4:41 a.m. | OK | MS C++ 2017 | TESTS | 42 | 374 | 22835200 | ||
130518418 | hxu10 | L | Oct. 2, 2021, 3:50 a.m. | OK | PyPy 3 | TESTS | 42 | 826 | 48332800 | ||
130472639 | sansen | L | Oct. 1, 2021, 2:20 p.m. | OK | Rust | TESTS | 42 | 77 | 12390400 |
Back to search problems