Codeforces Round 769 (Div. 2)

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
1632 Codeforces Round 769 (Div. 2) FINISHED False 7200 93626663 Jan. 30, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1207 ) E1 Distance Tree (easy version) PROGRAMMING dfs and similar shortest paths trees

B"This version of the problem differs from the next one only in the constraint on n . A tree is a connected undirected graph without cycles. A weighted tree has a weight assigned to each edge. The distance between two vertices is the minimum sum of weights on the path connecting them. You are given a weighted tree with n vertices, each edge has a weight of 1 . Denote d(v) as the distance between vertex 1 and vertex v . Let f(x) be the minimum possible value of max limits_{1 <= q v <= q n} {d(v)} if you can temporarily add an edge with weight x between any two vertices a and b (1 <= a, b <= n) . Note that after this operation, the graph is no longer a tree. For each integer x from 1 to n , find f(x) . The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The first line of each test case contains a single integer n ( 2 <= n <= 3000 ). Each of the next n xe2 x88 x921 lines contains two integers u and v ( 1 <= u,v <= n ) indicating that there is an edge between vertices u and v . It is guaranteed that the given edges form a tree. It is guaranteed that the sum of n over all test cases doesn't exceed 3000 . For each test case, print n integers in a single line, x -th of which is equal to f(x) for all x from 1 to n . "...

Tutorials

Editorial of Codeforces Round #769

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
144610502 snowflame E1 Jan. 31, 2022, 4:13 a.m. OK GNU C11 TESTS 39 31 10035200
144586613 Potassium E1 Jan. 30, 2022, 5:26 p.m. OK GNU C++14 TESTS 39 15 1433600
144603867 LinkZelda E1 Jan. 30, 2022, 11:49 p.m. OK GNU C++14 TESTS 39 15 6553600
144604673 xuanxuan001 E1 Jan. 31, 2022, 12:41 a.m. OK GNU C++14 TESTS 39 15 11673600
144604595 xuanxuan001 E1 Jan. 31, 2022, 12:35 a.m. OK GNU C++14 TESTS 39 15 12492800
144578198 Forza_Ferrari E1 Jan. 30, 2022, 4:25 p.m. OK GNU C++14 TESTS 39 15 16896000
144614691 schrodingerstom E1 Jan. 31, 2022, 5:26 a.m. OK GNU C++14 TESTS 39 15 18432000
144576457 HoshinaSuzu E1 Jan. 30, 2022, 4:20 p.m. OK GNU C++14 TESTS 39 15 26009600
144604418 themoon E1 Jan. 31, 2022, 12:25 a.m. OK GNU C++14 TESTS 39 15 31539200
144610019 JoesSR E1 Jan. 31, 2022, 4:01 a.m. OK GNU C++14 TESTS 39 15 37580800
144587922 Lonely. E1 Jan. 30, 2022, 5:37 p.m. OK GNU C++14 TESTS 39 15 73625600
144599116 Tiagodfs E1 Jan. 30, 2022, 8:26 p.m. OK GNU C++17 TESTS 39 15 307200
144598329 Tiagodfs E1 Jan. 30, 2022, 8:09 p.m. OK GNU C++17 TESTS 39 15 307200
144599260 Tiagodfs E1 Jan. 30, 2022, 8:30 p.m. OK GNU C++17 TESTS 39 15 307200
144593820 YuDabin E1 Jan. 30, 2022, 6:47 p.m. OK GNU C++17 TESTS 39 15 409600
144603112 helcsnewsxd E1 Jan. 30, 2022, 10:59 p.m. OK GNU C++17 TESTS 39 15 409600
144599495 tchki E1 Jan. 30, 2022, 8:36 p.m. OK GNU C++17 TESTS 39 15 512000
144606063 blue_warrior E1 Jan. 31, 2022, 2:02 a.m. OK GNU C++17 TESTS 39 15 512000
144599843 Twangybeast E1 Jan. 30, 2022, 8:47 p.m. OK GNU C++17 TESTS 39 15 716800
144605402 magnuseifr E1 Jan. 31, 2022, 1:27 a.m. OK GNU C++17 TESTS 39 15 819200
144588676 jeroenodb E1 Jan. 30, 2022, 5:45 p.m. OK GNU C++17 TESTS 39 15 2867200
144581254 gazelle E1 Jan. 30, 2022, 4:32 p.m. OK GNU C++17 (64) TESTS 39 15 512000
144593559 tourist E1 Jan. 30, 2022, 6:43 p.m. OK GNU C++17 (64) TESTS 39 15 614400
144581648 celesta E1 Jan. 30, 2022, 4:32 p.m. OK GNU C++17 (64) TESTS 39 15 1331200
144597561 pakhandi98 E1 Jan. 30, 2022, 7:54 p.m. OK GNU C++17 (64) TESTS 39 15 7680000
144606373 wygzgyw E1 Jan. 31, 2022, 2:15 a.m. OK GNU C++17 (64) TESTS 39 15 11264000
144591683 lemu17 E1 Jan. 30, 2022, 6:18 p.m. OK GNU C++17 (64) TESTS 39 15 22118400
144585302 Roundgod E1 Jan. 30, 2022, 5:18 p.m. OK GNU C++17 (64) TESTS 39 15 42393600
144598232 Prateek E1 Jan. 30, 2022, 8:07 p.m. OK GNU C++17 (64) TESTS 39 30 80998400
144615916 archit.bikram E1 Jan. 31, 2022, 5:45 a.m. OK GNU C++17 (64) TESTS 39 31 512000
144613609 Starline E1 Jan. 31, 2022, 5:09 a.m. OK GNU C++17 (64) TESTS 39 31 12492800
144597232 dean.menezes E1 Jan. 30, 2022, 7:47 p.m. OK GNU C++20 (64) TESTS 39 15 409600
144609669 Mukul202 E1 Jan. 31, 2022, 3:54 a.m. OK GNU C++20 (64) TESTS 39 15 409600
144595636 Mangooste E1 Jan. 30, 2022, 7:17 p.m. OK GNU C++20 (64) TESTS 39 15 512000
144616913 OnlyDeniko E1 Jan. 31, 2022, 5:59 a.m. OK GNU C++20 (64) TESTS 39 15 614400
144594756 Prateek E1 Jan. 30, 2022, 7:02 p.m. OK GNU C++20 (64) TESTS 39 15 2457600
144577087 Bench0310 E1 Jan. 30, 2022, 4:22 p.m. OK GNU C++20 (64) TESTS 39 15 5734400
144602490 kaiboy E1 Jan. 30, 2022, 10:24 p.m. OK GNU C++20 (64) TESTS 39 15 10035200
144602513 kaiboy E1 Jan. 30, 2022, 10:25 p.m. OK GNU C++20 (64) TESTS 39 15 10035200
144585859 generic_placeholder_name E1 Jan. 30, 2022, 5:21 p.m. OK GNU C++20 (64) TESTS 39 15 10035200
144609911 SYCstudio E1 Jan. 31, 2022, 3:59 a.m. OK GNU C++20 (64) TESTS 39 15 11366400
144603360 anvorguesa E1 Jan. 30, 2022, 11:15 p.m. OK Go TESTS 39 31 23859200
144598040 robinz62 E1 Jan. 30, 2022, 8:03 p.m. OK Java 11 TESTS 39 1091 83763200
144596033 OLOGY E1 Jan. 30, 2022, 7:24 p.m. OK PyPy 2 TESTS 39 187 4812800
144586769 FlakeLCR E1 Jan. 30, 2022, 5:27 p.m. OK PyPy 3 TESTS 39 140 5222400
144586223 Igorfardoc E1 Jan. 30, 2022, 5:23 p.m. OK PyPy 3 TESTS 39 452 91750400
144585339 FlakeLCR E1 Jan. 30, 2022, 5:18 p.m. OK PyPy 3-64 TESTS 39 264 10956800
144599149 OLOGY E1 Jan. 30, 2022, 8:27 p.m. OK Python 2 TESTS 39 46 1638400
144604402 clause E1 Jan. 31, 2022, 12:24 a.m. OK Rust 2021 TESTS 39 15 1126400

remove filters

Back to search problems