Codeforces Round 422 (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
822 Codeforces Round 422 (Div. 2) FINISHED False 7200 277394123 July 2, 2017, 4:05 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 373 ) F Madness PROGRAMMING constructive algorithms dfs and similar trees 2700

The second semester starts at the University of Pavlopolis. After vacation in Vičkopolis Noora needs to return to Pavlopolis and continue her study. Sometimes (or quite often) there are teachers who do not like you. Incidentally Noora also has one such teacher. His name is Yury Dmitrievich and he teaches graph theory. Yury Dmitrievich doesn't like Noora, so he always gives the girl the most difficult tasks. So it happened this time. The teacher gives Noora a tree with n vertices. Vertices are numbered with integers from 1 to n . The length of all the edges of this tree is 1 . Noora chooses a set of simple paths that pairwise don't intersect in edges. However each vertex should belong to at least one of the selected path. For each of the selected paths, the following is done: We choose exactly one edge ( u , v ) that belongs to the path. On the selected edge ( u , v ) there is a point at some selected distance x from the vertex u and at distance 1 - x from vertex v . But the distance x chosen by Noora arbitrarily, i. e. it can be different for different edges. One of the vertices u or v is selected. The point will start moving to the selected vertex. Let us explain how the point moves by example. Suppose that the path consists of two edges ( v 1 , v 2 ) and ( v 2 , v 3 ) , the point initially stands on the edge ( v 1 , v 2 ) and begins its movement to the vertex v 1 . Then the point will reach v 1 , then "turn around", because the end of the path was reached, further it will move in another direction to vertex v 2 , then to vertex v 3 , then "turn around" again, then move to v 2 and so on. The speed of the points is 1 edge per second. For example, for 0.5 second the point moves to the length of the half of an edge. A stopwatch is placed at each vertex of the tree. The time that the stopwatches indicate at start time is 0 seconds. Then at the starting moment of time, all points simultaneously start moving from the selected positions to selected directions al

Tutorials

Codeforces Round #422 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
30659802 lllllllllllllllllllllll F Sept. 24, 2017, 8:08 a.m. OK GNU C++ TESTS 98 15 0 2700
28276396 zhangchen F July 4, 2017, 9:12 a.m. OK GNU C++ TESTS 98 15 1945600 2700
35592030 mengbierr F Feb. 23, 2018, 9:03 a.m. OK GNU C++ TESTS 98 15 2048000 2700
28314435 vjudge1 F July 6, 2017, 1:56 a.m. OK GNU C++ TESTS 98 15 2150400 2700
28307813 progg_admin F July 5, 2017, 3:56 p.m. OK GNU C++ TESTS 98 15 2150400 2700
28373396 guoyu1098 F July 8, 2017, 4:42 p.m. OK GNU C++ TESTS 98 30 2150400 2700
28330980 gamenewer F July 6, 2017, 3:38 p.m. OK GNU C++ TESTS 98 30 2150400 2700
28298408 satyajit97 F July 5, 2017, 8:04 a.m. OK GNU C++ TESTS 98 30 2150400 2700
40980593 ReaLNero1 F July 30, 2018, 5:36 p.m. OK GNU C++ TESTS 98 31 0 2700
31005368 vjudge1 F Oct. 5, 2017, 1:35 a.m. OK GNU C++ TESTS 98 31 0 2700
32001317 luke0201 F Nov. 3, 2017, 8:14 a.m. OK GNU C++11 TESTS 98 15 0 2700
28487344 Hermits F July 13, 2017, 2:46 a.m. OK GNU C++11 TESTS 98 15 1945600 2700
28342514 luke0201 F July 7, 2017, 6:25 a.m. OK GNU C++11 TESTS 98 15 1945600 2700
28315312 AkaneSasu F July 6, 2017, 3:27 a.m. OK GNU C++11 TESTS 98 15 1945600 2700
34504235 ltf0501 F Jan. 24, 2018, 5:53 a.m. OK GNU C++11 TESTS 98 15 2048000 2700
34082105 otrecnoc F Jan. 11, 2018, 6:20 a.m. OK GNU C++11 TESTS 98 15 2048000 2700
29276787 just_soso F Aug. 8, 2017, 3:27 a.m. OK GNU C++11 TESTS 98 15 2150400 2700
29016717 ffbh F July 30, 2017, 4:22 p.m. OK GNU C++11 TESTS 98 15 2150400 2700
28778253 zhangzy F July 22, 2017, 12:13 p.m. OK GNU C++11 TESTS 98 15 2150400 2700
28753360 Yurik F July 21, 2017, 2:27 p.m. OK GNU C++11 TESTS 98 15 2150400 2700
32005652 zookhee F Nov. 3, 2017, 11:28 a.m. OK GNU C++14 TESTS 98 15 0 2700
32002573 high_alps F Nov. 3, 2017, 9:09 a.m. OK GNU C++14 TESTS 98 15 204800 2700
30643706 Hank2006 F Sept. 23, 2017, 1:54 p.m. OK GNU C++14 TESTS 98 15 204800 2700
34216823 CQzhangyu F Jan. 16, 2018, 8:43 a.m. OK GNU C++14 TESTS 98 15 1945600 2700
28740479 zookhee F July 21, 2017, 5:41 a.m. OK GNU C++14 TESTS 98 15 1945600 2700
28299190 5120154209 F July 5, 2017, 8:36 a.m. OK GNU C++14 TESTS 98 15 1945600 2700
28297042 NiroBC F July 5, 2017, 7:10 a.m. OK GNU C++14 TESTS 98 15 1945600 2700
28293242 y553546436 F July 5, 2017, 3:30 a.m. OK GNU C++14 TESTS 98 15 1945600 2700
35143826 1e13 F Feb. 11, 2018, 6:17 a.m. OK GNU C++14 TESTS 98 15 2048000 2700
28937991 Vercingetorix F July 27, 2017, 8:50 p.m. OK GNU C++14 TESTS 98 15 2048000 2700
64627679 hjk1030 F Nov. 10, 2019, 9:05 a.m. OK GNU C++17 TESTS 98 31 102400 2700
63785767 Anachor F Oct. 30, 2019, 12:16 p.m. OK GNU C++17 TESTS 98 31 102400 2700
55765440 Muskmelon_seed F June 19, 2019, 3:14 p.m. OK GNU C++17 TESTS 98 31 102400 2700
41330569 Ilya-bar F Aug. 8, 2018, 8:28 a.m. OK GNU C++17 TESTS 98 31 102400 2700
62602740 Ari F Oct. 15, 2019, 6:24 a.m. OK GNU C++17 TESTS 98 31 204800 2700
57000624 paul01 F July 14, 2019, 3:15 a.m. OK GNU C++17 TESTS 98 31 204800 2700
56981135 llbra9z F July 13, 2019, 1:56 p.m. OK GNU C++17 TESTS 98 31 204800 2700
56876811 libra9z F July 12, 2019, 8:38 a.m. OK GNU C++17 TESTS 98 31 204800 2700
56949175 luogu_bot4 F July 13, 2019, 1:14 a.m. OK GNU C++17 TESTS 98 31 307200 2700
56886846 vjudge4 F July 12, 2019, 1 p.m. OK GNU C++17 TESTS 98 31 307200 2700
28863434 tri F July 25, 2017, 2:55 a.m. OK Java 8 TESTS 98 124 20889600 2700
28486355 Dey F July 13, 2017, 1:57 a.m. OK Java 8 TESTS 98 139 20889600 2700
28322330 donli F July 6, 2017, 9:27 a.m. OK Java 8 TESTS 98 171 21299200 2700
53958033 vjudge3 F May 10, 2019, 12:47 p.m. OK MS C++ TESTS 98 46 0 2700

remove filters

Back to search problems