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 |
|---|---|---|---|---|---|---|
| 827 | Codeforces Round 423 (Div. 1, rated, based on VK Cup Finals) | FINISHED | False | 7200 | 276614123 | July 11, 2017, 4:45 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 565 ) | F | Dirty Arkady's Kitchen | PROGRAMMING | data structures dp graphs shortest paths | 3100 |
Arkady likes to walk around his kitchen. His labyrinthine kitchen consists of several important places connected with passages. Unfortunately it happens that these passages are flooded with milk so that it's impossible to pass through them. Namely, it's possible to pass through each passage in any direction only during some time interval. The lengths of all passages are equal and Arkady makes through them in one second. For security reasons, Arkady can never stop, also, he can't change direction while going through a passage. In other words, if he starts walking in some passage, he should reach its end and immediately leave the end. Today Arkady needs to quickly reach important place n from place 1 . He plans to exit the place 1 at time moment 0 and reach the place n as early as he can. Please find the minimum time he should spend on his way. The first line contains two integers n and m ( 1 ≤ n ≤ 5·10 5 , 0 ≤ m ≤ 5·10 5 ) — the number of important places and the number of passages, respectively. After that, m lines follow, each of them describe one passage. Each line contains four integers a , b , l and r ( 1 ≤ a , b ≤ n , a ≠ b , 0 ≤ l < r ≤ 10 9 ) — the places the passage connects and the time segment during which it's possible to use this passage. Print one integer — minimum time Arkady should spend to reach the destination. If he can't reach the place n , print -1 . In the first example Arkady should go through important places 1 → 3 → 4 → 5 . In the second example Arkady can't start his walk because at time moment 0 it's impossible to use the only passage. |
| Codeforces Round #423 Analysis |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 33620137 | jiyutian | F | Dec. 25, 2017, 3:03 p.m. | OK | GNU C++ | TESTS | 97 | 546 | 146329600 | 3100 | |
| 34942631 | DreamLolita | F | Feb. 5, 2018, 11:48 a.m. | OK | GNU C++ | TESTS | 97 | 717 | 81817600 | 3100 | |
| 30867607 | dsyhy | F | Sept. 30, 2017, 1:19 p.m. | OK | GNU C++ | TESTS | 97 | 763 | 79872000 | 3100 | |
| 30014113 | wmdcstdio | F | Sept. 2, 2017, 1:49 p.m. | OK | GNU C++ | TESTS | 97 | 935 | 64204800 | 3100 | |
| 29506474 | yylidiw | F | Aug. 16, 2017, 1:28 p.m. | OK | GNU C++ | TESTS | 97 | 935 | 114995200 | 3100 | |
| 30014144 | wmdcstdio | F | Sept. 2, 2017, 1:51 p.m. | OK | GNU C++ | TESTS | 97 | 951 | 64204800 | 3100 | |
| 34065215 | Worldwide_D | F | Jan. 10, 2018, 8:48 a.m. | OK | GNU C++ | TESTS | 97 | 1044 | 100454400 | 3100 | |
| 29364989 | nhho | F | Aug. 11, 2017, 11:13 p.m. | OK | GNU C++ | TESTS | 97 | 1060 | 66150400 | 3100 | |
| 36792770 | saoyang | F | April 1, 2018, 8:37 a.m. | OK | GNU C++ | TESTS | 97 | 1060 | 138137600 | 3100 | |
| 36789945 | saoyang | F | April 1, 2018, 6:28 a.m. | OK | GNU C++ | TESTS | 97 | 1076 | 102092800 | 3100 | |
| 31230382 | _SHENZHEBEI_ | F | Oct. 12, 2017, 1:45 a.m. | OK | GNU C++11 | TESTS | 97 | 545 | 95744000 | 3100 | |
| 55009475 | ErkkiErkko | F | June 3, 2019, 9:20 a.m. | OK | GNU C++11 | TESTS | 97 | 576 | 164454400 | 3100 | |
| 40980537 | ReaLNero1 | F | July 30, 2018, 5:34 p.m. | OK | GNU C++11 | TESTS | 97 | 592 | 95744000 | 3100 | |
| 30373772 | lxlxl | F | Sept. 15, 2017, 11:35 p.m. | OK | GNU C++11 | TESTS | 97 | 670 | 80486400 | 3100 | |
| 30364401 | lxlxl | F | Sept. 15, 2017, 1:45 p.m. | OK | GNU C++11 | TESTS | 97 | 670 | 80486400 | 3100 | |
| 51147231 | zhuwanman | F | March 11, 2019, 4:45 a.m. | OK | GNU C++11 | TESTS | 97 | 702 | 91750400 | 3100 | |
| 33255906 | Durant_Lee | F | Dec. 15, 2017, 6:07 a.m. | OK | GNU C++11 | TESTS | 97 | 763 | 81817600 | 3100 | |
| 29613102 | ccdream | F | Aug. 20, 2017, 5:03 a.m. | OK | GNU C++11 | TESTS | 97 | 811 | 81612800 | 3100 | |
| 50144250 | cx233666 | F | Feb. 19, 2019, 2:15 a.m. | OK | GNU C++11 | TESTS | 97 | 811 | 82329600 | 3100 | |
| 28500000 | krijgertje | F | July 13, 2017, 11:09 a.m. | OK | GNU C++11 | TESTS | 97 | 873 | 60211200 | 3100 | |
| 31880228 | King_George | F | Oct. 30, 2017, 2:47 a.m. | OK | GNU C++14 | TESTS | 97 | 764 | 150732800 | 3100 | |
| 29600692 | Hank2006 | F | Aug. 19, 2017, 2:21 p.m. | OK | GNU C++14 | TESTS | 97 | 857 | 89088000 | 3100 | |
| 42365051 | The_Unbeatable | F | Sept. 2, 2018, 2:06 p.m. | OK | GNU C++14 | TESTS | 97 | 873 | 79974400 | 3100 | |
| 32832587 | AprilGrimoire | F | Dec. 1, 2017, 2:33 p.m. | OK | GNU C++14 | TESTS | 97 | 873 | 81817600 | 3100 | |
| 36642480 | Geo_01 | F | March 26, 2018, 12:37 p.m. | OK | GNU C++14 | TESTS | 97 | 888 | 92979200 | 3100 | |
| 29514668 | -Morass- | F | Aug. 16, 2017, 9:55 p.m. | OK | GNU C++14 | TESTS | 97 | 904 | 89190400 | 3100 | |
| 29232652 | mengrao | F | Aug. 6, 2017, 4:20 a.m. | OK | GNU C++14 | TESTS | 97 | 919 | 68710400 | 3100 | |
| 39218146 | _LowestJN | F | June 13, 2018, 1:43 p.m. | OK | GNU C++14 | TESTS | 97 | 936 | 111513600 | 3100 | |
| 59508312 | Scut82 | F | Aug. 26, 2019, 7:01 a.m. | OK | GNU C++14 | TESTS | 97 | 982 | 92057600 | 3100 | |
| 28749841 | jiaqiyang | F | July 21, 2017, 12:30 p.m. | OK | GNU C++14 | TESTS | 97 | 1060 | 85196800 | 3100 |
Back to search problems