Codeforces Round 808 (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
1707 Codeforces Round 808 (Div. 1) FINISHED False 7200 73841099 July 16, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1534 ) C DFS Trees PROGRAMMING data structures dfs and similar ds graphs greedy trees

B'You are given a connected undirected graph consisting of n vertices and m edges. The weight of the i -th edge is i . Here is a wrong algorithm of finding a minimum spanning tree (MST) of a graph: Each of the calls findMST(1), findMST(2), ..., findMST(n) gives you a spanning tree of the graph. Determine which of these trees are minimum spanning trees. The first line of the input contains two integers n , m ( 2 <= n <= 10^5 , n-1 <= m <= 2 cdot 10^5 ) -- the number of vertices and the number of edges in the graph. Each of the following m lines contains two integers u_i and v_i ( 1 <= u_i, v_i <= n , u_i ne v_i ), describing an undirected edge (u_i,v_i) in the graph. The i -th edge in the input has weight i . It is guaranteed that the graph is connected and there is at most one edge between any pair of vertices. You need to output a binary string s , where s_i=1 if findMST(i) creates an MST, and s_i = 0 otherwise. Here is the graph given in the first example. There is only one minimum spanning tree in this graph. A minimum spanning tree is (1,2),(3,5),(1,3),(2,4) which has weight 1+2+3+5=11 . Here is a part of the process of calling findMST(1): In the end, it will select edges (1,2),(2,3),(3,5),(2,4) with total weight 1+4+2+5=12>11 , so findMST(1) does not find a minimum spanning tree. It can be shown that the other trees are all MSTs, so the answer is 01111. '...

Tutorials

104930

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
164498666 hos.lyric C July 16, 2022, 3:30 p.m. OK D TESTS 23 265 27852800
164564737 win10 C July 17, 2022, 2:58 a.m. OK GNU C++14 TESTS 24 108 18534400
164567837 wsyhb C July 17, 2022, 3:44 a.m. OK GNU C++14 TESTS 24 108 19046400
164574737 binsearch C July 17, 2022, 5:34 a.m. OK GNU C++14 TESTS 24 109 17817600
164573634 Tyyyyyy C July 17, 2022, 5:19 a.m. OK GNU C++14 TESTS 24 124 15667200
164574252 zhangshaojia C July 17, 2022, 5:27 a.m. OK GNU C++14 TESTS 24 139 9625600
164556029 asjcx C July 17, 2022, 12:30 a.m. OK GNU C++14 TESTS 24 140 10547200
164523437 xukai C July 16, 2022, 4:27 p.m. OK GNU C++14 TESTS 23 140 17100800
164574533 harshit15 C July 17, 2022, 5:31 a.m. OK GNU C++14 TESTS 24 140 21913600
164558938 ix35 C July 17, 2022, 1:30 a.m. OK GNU C++14 TESTS 24 140 32256000
164503807 CE_WA_TLE C July 16, 2022, 3:40 p.m. OK GNU C++14 TESTS 23 140 123596800
164545079 AlexanderL C July 16, 2022, 8:03 p.m. OK GNU C++17 TESTS 24 109 12595200
164519715 Spitfire_F_Mk_IX C July 16, 2022, 4:18 p.m. OK GNU C++17 TESTS 23 139 15052800
164548213 otrecnoc C July 16, 2022, 8:57 p.m. OK GNU C++17 TESTS 24 140 13926400
164534374 Agreb C July 16, 2022, 5:53 p.m. OK GNU C++17 TESTS 23 140 16998400
164519642 frokaikan C July 16, 2022, 4:18 p.m. OK GNU C++17 TESTS 23 155 17203200
164552034 spoi C July 16, 2022, 10:27 p.m. OK GNU C++17 TESTS 24 155 28467200
164553947 BaXij C July 16, 2022, 11:28 p.m. OK GNU C++17 TESTS 24 155 36249600
164564674 LuoShaoyinn C July 17, 2022, 2:57 a.m. OK GNU C++17 TESTS 24 156 9113600
164508982 123hei C July 16, 2022, 3:51 p.m. OK GNU C++17 TESTS 23 156 30924800
164531165 Solnechniy_kray C July 16, 2022, 5:26 p.m. OK GNU C++17 TESTS 23 170 27750400
164549248 Kude C July 16, 2022, 9:20 p.m. OK GNU C++17 (64) TESTS 24 124 25804800
164477312 yosupo C July 16, 2022, 2:59 p.m. OK GNU C++17 (64) TESTS 23 124 29184000
164555291 lndjy C July 17, 2022, 12:10 a.m. OK GNU C++17 (64) TESTS 24 124 63180800
164534178 Lucina C July 16, 2022, 5:51 p.m. OK GNU C++17 (64) TESTS 23 139 48742400
164503045 AutumnKite C July 16, 2022, 3:39 p.m. OK GNU C++17 (64) TESTS 23 140 16691200
164532282 magnified C July 16, 2022, 5:35 p.m. OK GNU C++17 (64) TESTS 23 140 24678400
164514827 TheScrasse C July 16, 2022, 4:05 p.m. OK GNU C++17 (64) TESTS 23 140 30105600
164501132 Froggygua C July 16, 2022, 3:35 p.m. OK GNU C++17 (64) TESTS 23 140 39321600
164503632 basic_string C July 16, 2022, 3:40 p.m. OK GNU C++17 (64) TESTS 23 140 43315200
164493586 kal013 C July 16, 2022, 3:21 p.m. OK GNU C++17 (64) TESTS 23 155 20889600
164533621 Mangooste C July 16, 2022, 5:46 p.m. OK GNU C++20 (64) TESTS 23 78 18841600
164493269 maspy C July 16, 2022, 3:21 p.m. OK GNU C++20 (64) TESTS 23 78 31539200
164539796 HarryPottersLuck C July 16, 2022, 6:50 p.m. OK GNU C++20 (64) TESTS 23 108 20377600
164574481 keta_tsimakuridze C July 17, 2022, 5:30 a.m. OK GNU C++20 (64) TESTS 24 108 24371200
164497535 _su1sen C July 16, 2022, 3:28 p.m. OK GNU C++20 (64) TESTS 23 124 14745600
164509135 nikgaevoy C July 16, 2022, 3:52 p.m. OK GNU C++20 (64) TESTS 23 124 15769600
164530830 lox123 C July 16, 2022, 5:23 p.m. OK GNU C++20 (64) TESTS 23 124 18739200
164499518 Endagorion C July 16, 2022, 3:32 p.m. OK GNU C++20 (64) TESTS 23 124 24166400
164545959 forgothandle C July 16, 2022, 8:18 p.m. OK GNU C++20 (64) TESTS 24 124 25600000
164574516 harshit15 C July 17, 2022, 5:31 a.m. OK GNU C++20 (64) TESTS 24 124 31436800
164495408 sansen C July 16, 2022, 3:24 p.m. OK Rust 2021 TESTS 23 93 25804800

remove filters

Back to search problems