Codeforces Round 575 (Div. 3)

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
1196 Codeforces Round 575 (Div. 3) FINISHED False 7200 173460287 July 24, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2738 ) F K-th Path PROGRAMMING brute force constructive algorithms shortest paths sortings 2500

B'You are given a connected undirected weighted graph consisting of n vertices and m edges. You need to print the k -th smallest shortest path in this graph (paths from the vertex to itself are not counted, paths from i to j and from j to i are counted as one). More formally, if d is the matrix of shortest paths, where d_{i, j} is the length of the shortest path between vertices i and j ( 1 <= i < j <= n ), then you need to print the k -th element in the sorted array consisting of all d_{i, j} , where 1 <= i < j <= n . The first line of the input contains three integers n, m and k ( 2 <= n <= 2 cdot 10^5 , n - 1 <= m <= min Big( frac{n(n-1)}{2}, 2 cdot 10^5 Big) , 1 <= k <= min Big( frac{n(n-1)}{2}, 400 Big) -- the number of vertices in the graph, the number of edges in the graph and the value of k , correspondingly. Then m lines follow, each containing three integers x , y and w ( 1 <= x, y <= n , 1 <= w <= 10^9 , x ne y ) denoting an edge between vertices x and y of weight w . It is guaranteed that the given graph is connected (there is a path between any pair of vertices), there are no self-loops (edges connecting the vertex with itself) and multiple edges (for each pair of vertices x and y , there is at most one edge between this pair of vertices in the graph). Print one integer -- the length of the k -th smallest shortest path in the given graph (paths from the vertex to itself are not counted, paths from i to j and from j to i are counted as one). '...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
58198306 4c5948 F Aug. 3, 2019, 2:24 a.m. OK Clang++17 Diagnostics TESTS 31 468 66355200 2500
57761319 ruban F July 25, 2019, 6:07 p.m. OK Delphi TESTS 31 1248 180224000 2500
57761514 ruban F July 25, 2019, 6:12 p.m. OK FPC TESTS 31 1091 180224000 2500
57745625 MRoy F July 25, 2019, 12:55 p.m. OK GNU C11 TESTS 31 1185 21811200 2500
57745559 MRoy F July 25, 2019, 12:53 p.m. OK GNU C11 TESTS 31 1232 21913600 2500
57745529 MRoy F July 25, 2019, 12:53 p.m. OK GNU C11 TESTS 31 1528 22528000 2500
57745513 MRoy F July 25, 2019, 12:53 p.m. OK GNU C11 TESTS 31 2167 23244800 2500
58113417 The_Crossing F Aug. 1, 2019, 8:03 a.m. OK GNU C++11 TESTS 31 61 6451200 2500
61466904 Glu_TtoNy F Sept. 29, 2019, 10:47 a.m. OK GNU C++11 TESTS 31 61 8396800 2500
57730799 chenyewei_1234 F July 25, 2019, 8:32 a.m. OK GNU C++11 TESTS 31 61 14950400 2500
61466856 vjudge2 F Sept. 29, 2019, 10:46 a.m. OK GNU C++11 TESTS 31 62 8396800 2500
57730553 chenyewei_1234 F July 25, 2019, 8:28 a.m. OK GNU C++11 TESTS 31 62 14950400 2500
62762678 luogu_bot2 F Oct. 17, 2019, 7:28 a.m. OK GNU C++11 TESTS 31 62 33996800 2500
64787644 DennyQi F Nov. 13, 2019, 9:47 a.m. OK GNU C++11 TESTS 31 77 19046400 2500
58311531 nowhere132 F Aug. 4, 2019, 11:45 p.m. OK GNU C++11 TESTS 31 77 19558400 2500
58349655 Flimuntus F Aug. 5, 2019, 4:36 p.m. OK GNU C++11 TESTS 31 77 27136000 2500
57743572 EncodeTalker F July 25, 2019, 12:15 p.m. OK GNU C++11 TESTS 31 78 9216000 2500
58052120 vjudge5 F July 31, 2019, 3:05 a.m. OK GNU C++14 TESTS 31 124 9011200 2500
58854378 vjudge2 F Aug. 15, 2019, 8:43 a.m. OK GNU C++14 TESTS 31 139 9011200 2500
64330700 Deobrah F Nov. 5, 2019, 7:11 p.m. OK GNU C++14 TESTS 31 140 5324800 2500
57726551 Floraqiu F July 25, 2019, 7:20 a.m. OK GNU C++14 TESTS 31 140 5939200 2500
58383047 HanZhongBalls F Aug. 6, 2019, 10:49 a.m. OK GNU C++14 TESTS 31 140 15769600 2500
58922826 tokitsukaze F Aug. 16, 2019, 5:58 p.m. OK GNU C++14 TESTS 31 155 10137600 2500
57914975 Wolf. F July 29, 2019, 12:24 a.m. OK GNU C++14 TESTS 31 155 12595200 2500
57746818 _tlsr_ F July 25, 2019, 1:19 p.m. OK GNU C++14 TESTS 31 156 8908800 2500
57729621 phoenix28 F July 25, 2019, 8:12 a.m. OK GNU C++14 TESTS 31 156 9728000 2500
57804822 Origenes F July 26, 2019, 2:43 p.m. OK GNU C++14 TESTS 31 156 15974400 2500
57771144 nickluo F July 26, 2019, 12:53 a.m. OK GNU C++17 TESTS 31 78 14131200 2500
58082171 vjudge5 F July 31, 2019, 2:15 p.m. OK GNU C++17 TESTS 31 139 9011200 2500
57728151 Gallinari F July 25, 2019, 7:47 a.m. OK GNU C++17 TESTS 31 139 13926400 2500
63711482 oshawott_cute F Oct. 29, 2019, 10:12 a.m. OK GNU C++17 TESTS 31 140 6963200 2500
60496229 bluefi F Sept. 13, 2019, 4:30 p.m. OK GNU C++17 TESTS 31 140 8908800 2500
68119876 sain F Jan. 3, 2020, 12:54 p.m. OK GNU C++17 TESTS 31 140 9011200 2500
58197324 Gallinari F Aug. 3, 2019, 1:42 a.m. OK GNU C++17 TESTS 31 140 13926400 2500
59379520 HIT_Attacker F Aug. 24, 2019, 1:49 a.m. OK GNU C++17 TESTS 31 140 17612800 2500
57793212 HOU_HOU F July 26, 2019, 10:22 a.m. OK GNU C++17 TESTS 31 140 22016000 2500
68427794 910306264 F Jan. 9, 2020, 5:01 a.m. OK GNU C++17 TESTS 31 140 40857600 2500
63853659 vjudge1 F Oct. 30, 2019, 4:34 p.m. OK Go TESTS 31 1216 31027200 2500
63853505 WangJialei F Oct. 30, 2019, 4:31 p.m. OK Go TESTS 31 1216 31027200 2500
69551587 potatmen F Jan. 26, 2020, 6:45 a.m. OK Java 11 TESTS 31 1606 9113600 2500
62924934 dyhu083 F Oct. 19, 2019, 11:05 a.m. OK Java 8 TESTS 31 186 2560000 2500
57794901 mTvTm F July 26, 2019, 11:02 a.m. OK Java 8 TESTS 31 264 14233600 2500
67246832 kalyanirishabh1198 F Dec. 19, 2019, 5:31 p.m. OK Java 8 TESTS 31 311 16896000 2500
57870510 SpargelTarzan F July 28, 2019, 1:21 a.m. OK Java 8 TESTS 31 327 6451200 2500
57814489 derrick20 F July 26, 2019, 6:58 p.m. OK Java 8 TESTS 31 358 13312000 2500
64615178 bleh0.5 F Nov. 10, 2019, 4:23 a.m. OK Java 8 TESTS 31 436 11468800 2500
57746739 reborn_chris F July 25, 2019, 1:18 p.m. OK Java 8 TESTS 31 436 37990400 2500
57734276 WashRoom F July 25, 2019, 9:28 a.m. OK Java 8 TESTS 31 467 41472000 2500
57751505 kollektiv F July 25, 2019, 2:56 p.m. OK Java 8 TESTS 31 482 12492800 2500
57728708 4mda4mda F July 25, 2019, 7:57 a.m. OK Java 8 TESTS 31 498 32665600 2500
58013201 PugachAG F July 30, 2019, 3:27 p.m. OK Kotlin TESTS 31 545 27033600 2500
60196017 Benq F Sept. 7, 2019, 1:47 a.m. OK Kotlin TESTS 31 810 26112000 2500
58062613 og.kostya F July 31, 2019, 7:55 a.m. OK Mono C# TESTS 31 264 33689600 2500
57747766 omikad F July 25, 2019, 1:40 p.m. OK Mono C# TESTS 31 390 27750400 2500
57792687 ololonso F July 26, 2019, 10:07 a.m. OK Mono C# TESTS 31 1528 24473600 2500
58428882 vjudge5 F Aug. 7, 2019, 11 a.m. OK MS C++ TESTS 31 46 14848000 2500
57767049 tarattata1 F July 25, 2019, 9:12 p.m. OK MS C++ TESTS 31 108 9216000 2500
57965769 scorpiowf F July 30, 2019, 2:38 a.m. OK MS C++ TESTS 31 124 6963200 2500
61347253 vjudge1 F Sept. 27, 2019, 5:51 a.m. OK MS C++ TESTS 31 265 24064000 2500
61353366 vjudge4 F Sept. 27, 2019, 9:24 a.m. OK MS C++ TESTS 31 576 10035200 2500
61347052 vjudge5 F Sept. 27, 2019, 5:44 a.m. OK MS C++ TESTS 31 639 9932800 2500
61352990 vjudge2 F Sept. 27, 2019, 9:13 a.m. OK MS C++ TESTS 31 654 16896000 2500
61351337 vjudge4 F Sept. 27, 2019, 8:20 a.m. OK MS C++ TESTS 31 655 14131200 2500
64672344 vjudge4 F Nov. 11, 2019, 6:33 a.m. OK MS C++ TESTS 31 717 26419200 2500
68108043 vjudge1 F Jan. 3, 2020, 8:11 a.m. OK MS C++ TESTS 31 732 9625600 2500
57919117 ai.lugle1997 F July 29, 2019, 3:29 a.m. OK MS C++ 2017 TESTS 31 529 9113600 2500
58158840 Saber_Altria F Aug. 2, 2019, 6:42 a.m. OK MS C++ 2017 TESTS 31 967 15769600 2500
69512358 vjudge5 F Jan. 25, 2020, 10:53 a.m. OK MS C++ 2017 TESTS 31 1014 12800000 2500
60404664 ainch96 F Sept. 11, 2019, 6:05 p.m. OK MS C++ 2017 TESTS 31 1060 34508800 2500
58143471 Sanqer F Aug. 1, 2019, 7:24 p.m. OK MS C++ 2017 TESTS 31 1123 9216000 2500
58548653 AtomG F Aug. 10, 2019, 6:13 p.m. OK MS C++ 2017 TESTS 31 1341 15872000 2500
58548254 AtomG F Aug. 10, 2019, 6 p.m. OK MS C++ 2017 TESTS 31 1357 15872000 2500
57857153 xsc F July 27, 2019, 3:38 p.m. OK MS C++ 2017 TESTS 31 1372 14131200 2500
57795474 pmitkov F July 26, 2019, 11:14 a.m. OK MS C++ 2017 TESTS 31 1434 16793600 2500
58114994 nik1998 F Aug. 1, 2019, 8:34 a.m. OK MS C++ 2017 TESTS 31 1684 19865600 2500
58206604 yumtam F Aug. 3, 2019, 7:14 a.m. OK PyPy 2 TESTS 31 810 35328000 2500
57754170 Kiri8128 F July 25, 2019, 3:43 p.m. OK PyPy 3 TESTS 31 966 26112000 2500
57754671 Kiri8128 F July 25, 2019, 3:53 p.m. OK PyPy 3 TESTS 31 1028 26112000 2500
57905132 Helli.code F July 28, 2019, 5:18 p.m. OK Python 2 TESTS 31 997 29388800 2500

remove filters

Back to search problems