Codeforces Round 800 (Div. 1)

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
1693 Codeforces Round 800 (Div. 1) FINISHED False 7200 76433099 June 16, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2648 ) C Keshi in Search of AmShZ PROGRAMMING graphs greedy shortest paths 2300

B"AmShZ has traveled to Italy from Iran for the Thom Yorke concert. There are n cities in Italy indexed from 1 to n and m directed roads indexed from 1 to m . Initially, Keshi is located in the city 1 and wants to go to AmShZ's house in the city n . Since Keshi doesn't know the map of Italy, AmShZ helps him to see each other as soon as possible. In the beginning of each day, AmShZ can send one of the following two messages to Keshi: Note that AmShZ always knows Keshi's current location. AmShZ and Keshi want to find the smallest possible integer d for which they can make sure that they will see each other after at most d days. Help them find d . The first line of the input contains two integers n and m (2 <= n <= 2 cdot 10^5, 1 <= m <= 2 cdot 10^5) -- the number of cities and roads correspondingly. The i -th line of the following m lines contains two integers v_i and u_i (1 <= v_i , u_i <= n,v_i neq u_i) , denoting a directed road going from city v_i to city u_i . It is guaranteed that there is at least one route from city 1 to city n . Note that there may be more than one road between a pair of cities in each direction. Output the smallest possible integer d to make sure that AmShZ and Keshi will see each other after at most d days. In the first sample, it's enough for AmShZ to send the second type of message. In the second sample, on the first day, AmShZ blocks the first road. So the only reachable city from city 1 will be city 4 . Hence on the second day, AmShZ can tell Keshi to move and Keshi will arrive at AmShZ's house. It's also possible for AmShZ to tell Keshi to move for two days. "...

Tutorials

Codeforces Round #800 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
160866099 hos.lyric C June 16, 2022, 3:48 p.m. OK D TESTS 55 420 26316800 2300
160878457 Gassa C June 16, 2022, 4:18 p.m. OK D TESTS 55 514 38400000 2300
160913369 CharlesWuQiushi C June 17, 2022, 2:04 a.m. OK GNU C++14 TESTS 55 77 10137600 2300
160875445 hualian C June 16, 2022, 4:10 p.m. OK GNU C++14 TESTS 55 93 10035200 2300
160871857 cunzai_zsy0531 C June 16, 2022, 4:01 p.m. OK GNU C++14 TESTS 55 93 10444800 2300
160853126 Sol3 C June 16, 2022, 3:19 p.m. OK GNU C++14 TESTS 55 93 11673600 2300
160876310 temp06 C June 16, 2022, 4:12 p.m. OK GNU C++14 TESTS 55 109 6451200 2300
160922661 walk_alone C June 17, 2022, 5:28 a.m. OK GNU C++14 TESTS 55 109 6656000 2300
160911169 peiwenjun C June 17, 2022, 12:41 a.m. OK GNU C++14 TESTS 55 124 7884800 2300
160884636 Milesian C June 16, 2022, 4:32 p.m. OK GNU C++14 TESTS 55 124 16076800 2300
160910520 SuperJ6 C June 17, 2022, 12:08 a.m. OK GNU C++14 TESTS 55 140 7680000 2300
160852610 Isonan C June 16, 2022, 3:18 p.m. OK GNU C++14 TESTS 55 140 43724800 2300
160863341 KroosTheKeenGlint C June 16, 2022, 3:42 p.m. OK GNU C++17 TESTS 55 139 7475200 2300
160906170 liyd.sl2 C June 16, 2022, 9:02 p.m. OK GNU C++17 TESTS 55 139 7782400 2300
160906213 liyd.sl2 C June 16, 2022, 9:03 p.m. OK GNU C++17 TESTS 55 140 7782400 2300
160888629 ErvinXie C June 16, 2022, 5:04 p.m. OK GNU C++17 TESTS 55 140 7884800 2300
160914975 strwbrry C June 17, 2022, 2:50 a.m. OK GNU C++17 TESTS 55 155 9420800 2300
160916546 chemthan C June 17, 2022, 3:28 a.m. OK GNU C++17 TESTS 55 155 10444800 2300
160911824 withinlover C June 17, 2022, 1:10 a.m. OK GNU C++17 TESTS 55 156 8499200 2300
160895529 dimdum C June 16, 2022, 6:03 p.m. OK GNU C++17 TESTS 55 156 8704000 2300
160919690 Baba_Sevawy C June 17, 2022, 4:37 a.m. OK GNU C++17 TESTS 55 156 9728000 2300
160898273 penguinhacker C June 16, 2022, 6:37 p.m. OK GNU C++17 TESTS 55 170 8499200 2300
160847471 QAQAutoMaton C June 16, 2022, 3:08 p.m. OK GNU C++17 (64) TESTS 55 93 14848000 2300
160893355 propane C June 16, 2022, 5:41 p.m. OK GNU C++17 (64) TESTS 55 109 6144000 2300
160866256 BreezeMYqwq C June 16, 2022, 3:48 p.m. OK GNU C++17 (64) TESTS 55 109 28876800 2300
160894651 propane C June 16, 2022, 5:53 p.m. OK GNU C++17 (64) TESTS 55 124 6144000 2300
160894783 propane C June 16, 2022, 5:55 p.m. OK GNU C++17 (64) TESTS 55 124 6348800 2300
160904816 mattagar6 C June 16, 2022, 8:30 p.m. OK GNU C++17 (64) TESTS 55 124 22528000 2300
160921870 rniya C June 17, 2022, 5:14 a.m. OK GNU C++17 (64) TESTS 55 139 10547200 2300
160869981 Kude C June 16, 2022, 3:57 p.m. OK GNU C++17 (64) TESTS 55 139 12390400 2300
160885051 Lonely. C June 16, 2022, 4:33 p.m. OK GNU C++17 (64) TESTS 55 140 7168000 2300
160913301 CharlesWuQiushi C June 17, 2022, 2:02 a.m. OK GNU C++17 (64) TESTS 55 140 8499200 2300
160849434 loveye C June 16, 2022, 3:12 p.m. OK GNU C++20 (64) TESTS 55 93 12697600 2300
160911380 Tyyyyyy C June 17, 2022, 12:50 a.m. OK GNU C++20 (64) TESTS 55 93 12800000 2300
160891059 rsy C June 16, 2022, 5:20 p.m. OK GNU C++20 (64) TESTS 55 93 14745600 2300
160893943 Nero C June 16, 2022, 5:46 p.m. OK GNU C++20 (64) TESTS 55 109 10547200 2300
160911072 fengzhengwei C June 17, 2022, 12:35 a.m. OK GNU C++20 (64) TESTS 55 124 8704000 2300
160891668 Bungmint C June 16, 2022, 5:25 p.m. OK GNU C++20 (64) TESTS 55 124 10547200 2300
160856701 ajpiano C June 16, 2022, 3:27 p.m. OK GNU C++20 (64) TESTS 55 124 10547200 2300
160854733 physics0523 C June 16, 2022, 3:23 p.m. OK GNU C++20 (64) TESTS 55 124 10547200 2300
160907957 wabadabakalakaboo C June 16, 2022, 9:59 p.m. OK GNU C++20 (64) TESTS 55 124 10752000 2300
160901122 Ripan-Roy C June 16, 2022, 7:19 p.m. OK GNU C++20 (64) TESTS 55 124 10752000 2300
160890815 humwawe C June 16, 2022, 5:19 p.m. OK Java 11 TESTS 55 389 18329600 2300
160916742 reborn.chris C June 17, 2022, 3:33 a.m. OK Java 8 TESTS 55 436 19353600 2300
160855038 SecondThread C June 16, 2022, 3:23 p.m. OK Java 8 TESTS 55 529 79769600 2300
160878379 MagentaCobra C June 16, 2022, 4:18 p.m. OK Java 8 TESTS 55 935 137420800 2300
160862030 Hakiobo C June 16, 2022, 3:39 p.m. OK Kotlin 1.4 TESTS 55 421 18739200 2300
160852563 Tlatoani C June 16, 2022, 3:18 p.m. OK Kotlin 1.6 TESTS 55 795 34099200 2300
160867490 Madball C June 16, 2022, 3:51 p.m. OK MS C++ 2017 TESTS 55 218 13721600 2300
160882465 machine_solution C June 16, 2022, 4:28 p.m. OK MS C++ 2017 TESTS 55 702 27750400 2300
160874357 SPD_9X2 C June 16, 2022, 4:07 p.m. OK PyPy 3 TESTS 55 904 37990400 2300
160838516 asdsasd C June 16, 2022, 2:53 p.m. OK PyPy 3-64 TESTS 55 467 36044800 2300
160891856 huangxw C June 16, 2022, 5:27 p.m. OK PyPy 3-64 TESTS 55 842 65024000 2300
160871809 chinerist C June 16, 2022, 4:01 p.m. OK PyPy 3-64 TESTS 55 842 89088000 2300
160855469 siganai C June 16, 2022, 3:24 p.m. OK PyPy 3-64 TESTS 55 857 61542400 2300
160890280 huangxw C June 16, 2022, 5:15 p.m. OK PyPy 3-64 TESTS 55 888 55091200 2300
160888838 huangxw C June 16, 2022, 5:05 p.m. OK PyPy 3-64 TESTS 55 951 55091200 2300
160869559 huikang C June 16, 2022, 3:56 p.m. OK PyPy 3-64 TESTS 55 1013 75468800 2300
160897821 titia C June 16, 2022, 6:30 p.m. OK PyPy 3-64 TESTS 55 1356 129638400 2300
160923461 Sempr C June 17, 2022, 5:42 a.m. OK Rust 2021 TESTS 55 77 22016000 2300
160923424 Sempr C June 17, 2022, 5:41 a.m. OK Rust 2021 TESTS 55 93 21913600 2300
160845715 sansen C June 16, 2022, 3:05 p.m. OK Rust 2021 TESTS 55 93 23449600 2300
160842585 Egor C June 16, 2022, 2:59 p.m. OK Rust 2021 TESTS 55 109 16896000 2300
160841549 qwerty787788 C June 16, 2022, 2:57 p.m. OK Rust 2021 TESTS 55 124 16281600 2300
160870524 cottoncotton C June 16, 2022, 3:58 p.m. OK Rust 2021 TESTS 55 155 92057600 2300

remove filters

Back to search problems