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 |
---|---|---|---|---|---|---|
1407 | Codeforces Round 669 (Div. 2) | FINISHED | False | 7200 | 137777111 | Sept. 8, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1743 ) | E | Egor in the Republic of Dagestan | PROGRAMMING | constructive algorithms dfs and similar dp graphs greedy shortest paths |
B"Egor is a famous Russian singer, rapper, actor and blogger, and finally he decided to give a concert in the sunny Republic of Dagestan. There are n cities in the republic, some of them are connected by m directed roads without any additional conditions. In other words, road system of Dagestan represents an arbitrary directed graph. Egor will arrive to the city 1 , travel to the city n by roads along some path, give a concert and fly away. As any famous artist, Egor has lots of haters and too annoying fans, so he can travel only by safe roads. There are two types of the roads in Dagestan, black and white: black roads are safe at night only, and white roads -- in the morning. Before the trip Egor's manager's going to make a schedule: for each city he'll specify it's color, black or white, and then if during the trip they visit some city, the only time they can leave it is determined by the city's color: night, if it's black, and morning, if it's white. After creating the schedule Egor chooses an available path from 1 to n , and for security reasons it has to be the shortest possible. Egor's manager likes Dagestan very much and wants to stay here as long as possible, so he asks you to make such schedule that there would be no path from 1 to n or the shortest path's length would be greatest possible. A path is one city or a sequence of roads such that for every road (excluding the first one) the city this road goes from is equal to the city previous road goes into. Egor can move only along paths consisting of safe roads only. The path length is equal to the number of roads in it. The shortest path in a graph is a path with smallest length. The first line contains two integers n , m ( 1 <= q n <= q 500000 , 0 <= q m <= q 500000 ) -- the number of cities and the number of roads. The i -th of next m lines contains three integers -- u_i , v_i and t_i ( 1 <= q u_i, v"... |
Codeforces Round #669 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
92309550 | zjf_juruo | E | Sept. 9, 2020, 1:03 a.m. | OK | GNU C++11 | TESTS | 69 | 108 | 16896000 | ||
92311035 | 2016wudi | E | Sept. 9, 2020, 1:58 a.m. | OK | GNU C++11 | TESTS | 69 | 109 | 20582400 | ||
92315185 | ce_amtic | E | Sept. 9, 2020, 3:47 a.m. | OK | GNU C++11 | TESTS | 69 | 109 | 41574400 | ||
92311512 | onglu1 | E | Sept. 9, 2020, 2:14 a.m. | OK | GNU C++11 | TESTS | 69 | 124 | 16281600 | ||
92313251 | Stump | E | Sept. 9, 2020, 3:02 a.m. | OK | GNU C++11 | TESTS | 69 | 156 | 24166400 | ||
92321518 | WaluntOvO | E | Sept. 9, 2020, 5:42 a.m. | OK | GNU C++11 | TESTS | 69 | 171 | 34099200 | ||
92321238 | _Backl1ght | E | Sept. 9, 2020, 5:38 a.m. | OK | GNU C++11 | TESTS | 69 | 187 | 28672000 | ||
92283427 | cxr_o__o_cxr | E | Sept. 8, 2020, 4:33 p.m. | OK | GNU C++11 | TESTS | 69 | 217 | 22323200 | ||
92280786 | mmh | E | Sept. 8, 2020, 4:28 p.m. | OK | GNU C++11 | TESTS | 69 | 234 | 20275200 | ||
92309408 | LiuYu_penguin | E | Sept. 9, 2020, 12:56 a.m. | OK | GNU C++11 | TESTS | 69 | 265 | 32972800 | ||
92310761 | YLWang | E | Sept. 9, 2020, 1:48 a.m. | OK | GNU C++14 | TESTS | 69 | 155 | 20275200 | ||
92311926 | lavenderwithbluish | E | Sept. 9, 2020, 2:27 a.m. | OK | GNU C++14 | TESTS | 69 | 311 | 28057600 | ||
92288572 | AgReB | E | Sept. 8, 2020, 5:19 p.m. | OK | GNU C++14 | TESTS | 69 | 358 | 14950400 | ||
92304243 | MarcosK | E | Sept. 8, 2020, 9:21 p.m. | OK | GNU C++14 | TESTS | 69 | 358 | 18124800 | ||
92313223 | ErdemKirez | E | Sept. 9, 2020, 3:01 a.m. | OK | GNU C++14 | TESTS | 69 | 373 | 22016000 | ||
92300873 | danya090699 | E | Sept. 8, 2020, 8 p.m. | OK | GNU C++14 | TESTS | 69 | 374 | 14848000 | ||
92287672 | lawfung | E | Sept. 8, 2020, 5:12 p.m. | OK | GNU C++14 | TESTS | 69 | 374 | 20070400 | ||
92291666 | admirabilis | E | Sept. 8, 2020, 5:48 p.m. | OK | GNU C++14 | TESTS | 69 | 374 | 20582400 | ||
92317148 | ssyze | E | Sept. 9, 2020, 4:26 a.m. | OK | GNU C++14 | TESTS | 69 | 374 | 23654400 | ||
92305572 | vrobyka | E | Sept. 8, 2020, 10:07 p.m. | OK | GNU C++14 | TESTS | 69 | 389 | 14848000 | ||
92311960 | Bennettz | E | Sept. 9, 2020, 2:27 a.m. | OK | GNU C++17 | TESTS | 69 | 296 | 20070400 | ||
92318688 | TsReaper | E | Sept. 9, 2020, 4:56 a.m. | OK | GNU C++17 | TESTS | 69 | 311 | 14028800 | ||
92309066 | He_Ren | E | Sept. 9, 2020, 12:42 a.m. | OK | GNU C++17 | TESTS | 69 | 312 | 12288000 | ||
92308936 | wish2lucky | E | Sept. 9, 2020, 12:35 a.m. | OK | GNU C++17 | TESTS | 69 | 327 | 12288000 | ||
92312971 | Aphelios | E | Sept. 9, 2020, 2:55 a.m. | OK | GNU C++17 | TESTS | 69 | 327 | 12595200 | ||
92316810 | m_99 | E | Sept. 9, 2020, 4:19 a.m. | OK | GNU C++17 | TESTS | 69 | 327 | 15257600 | ||
92321081 | arujbansal | E | Sept. 9, 2020, 5:35 a.m. | OK | GNU C++17 | TESTS | 69 | 358 | 14950400 | ||
92304833 | Psychik | E | Sept. 8, 2020, 9:42 p.m. | OK | GNU C++17 | TESTS | 69 | 358 | 14950400 | ||
92307779 | mohammedehab2002 | E | Sept. 8, 2020, 11:44 p.m. | OK | GNU C++17 | TESTS | 69 | 358 | 19046400 | ||
92290240 | kzvd4729 | E | Sept. 8, 2020, 5:33 p.m. | OK | GNU C++17 | TESTS | 69 | 358 | 20172800 | ||
92313105 | hld67890 | E | Sept. 9, 2020, 2:58 a.m. | OK | GNU C++17 (64) | TESTS | 69 | 264 | 22630400 | ||
92316832 | m_99 | E | Sept. 9, 2020, 4:19 a.m. | OK | GNU C++17 (64) | TESTS | 69 | 296 | 20992000 | ||
92294572 | nile_101 | E | Sept. 8, 2020, 6:21 p.m. | OK | GNU C++17 (64) | TESTS | 69 | 327 | 21401600 | ||
92308316 | Frame233 | E | Sept. 9, 2020, 12:07 a.m. | OK | GNU C++17 (64) | TESTS | 69 | 342 | 33075200 | ||
92314595 | heyuhhh | E | Sept. 9, 2020, 3:33 a.m. | OK | GNU C++17 (64) | TESTS | 69 | 343 | 20684800 | ||
92289701 | Mohammad_Yasser | E | Sept. 8, 2020, 5:29 p.m. | OK | GNU C++17 (64) | TESTS | 69 | 358 | 23552000 | ||
92298358 | alimq | E | Sept. 8, 2020, 7:16 p.m. | OK | GNU C++17 (64) | TESTS | 69 | 358 | 31948800 | ||
92296576 | _baba_yaga | E | Sept. 8, 2020, 6:49 p.m. | OK | GNU C++17 (64) | TESTS | 69 | 358 | 39321600 | ||
92305069 | Honey_Badger | E | Sept. 8, 2020, 9:50 p.m. | OK | GNU C++17 (64) | TESTS | 69 | 373 | 39321600 | ||
92290640 | YouKn0wWho | E | Sept. 8, 2020, 5:37 p.m. | OK | GNU C++17 (64) | TESTS | 69 | 374 | 25907200 | ||
92283340 | Dukkha | E | Sept. 8, 2020, 4:33 p.m. | OK | Java 11 | TESTS | 69 | 436 | 39424000 | ||
92319013 | galen_colin | E | Sept. 9, 2020, 5:02 a.m. | OK | Java 11 | TESTS | 69 | 935 | 69529600 | ||
92286832 | mphillotry | E | Sept. 8, 2020, 5:08 p.m. | OK | Java 11 | TESTS | 69 | 1153 | 67788800 | ||
92313190 | DivyaSree20 | E | Sept. 9, 2020, 3 a.m. | OK | Java 8 | TESTS | 69 | 795 | 37376000 | ||
92318968 | SecondThread | E | Sept. 9, 2020, 5:01 a.m. | OK | Java 8 | TESTS | 69 | 889 | 78028800 | ||
92285396 | pajenegod | E | Sept. 8, 2020, 5:02 p.m. | OK | PyPy 2 | TESTS | 69 | 998 | 97177600 | ||
92318088 | SPD_9X2 | E | Sept. 9, 2020, 4:45 a.m. | OK | PyPy 3 | TESTS | 69 | 1528 | 62976000 | ||
92285766 | nehan_der_thal | E | Sept. 8, 2020, 5:03 p.m. | OK | PyPy 3 | TESTS | 69 | 1902 | 94924800 | ||
92297343 | sh1194 | E | Sept. 8, 2020, 7:01 p.m. | OK | Python 3 | TESTS | 69 | 1716 | 62156800 |
Back to search problems