Codeforces Round 692 (Div. 1, based on Technocup 2021 Elimination Round 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
1464 Codeforces Round 692 (Div. 1, based on Technocup 2021 Elimination Round 3) FINISHED False 7200 167928923 Dec. 20, 2020, 3:05 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 441 ) F My Beautiful Madness PROGRAMMING data structures trees

You are given a tree. We will consider simple paths on it. Let's denote path between vertices a and b as (a, b) . Let d -neighborhood of a path be a set of vertices of the tree located at a distance <= q d from at least one vertex of the path (for example, 0 -neighborhood of a path is a path itself). Let P be a multiset of the tree paths. Initially, it is empty. You are asked to maintain the following queries: The first line contains two integers n and q -- the number of vertices in the tree and the number of queries, accordingly ( 1 <= q n <= q 2 cdot 10^5 , 2 <= q q <= q 2 cdot 10^5 ). Each of the following n - 1 lines contains two integers x_i and y_i -- indices of vertices connected by i -th edge ( 1 <= x_i, y_i <= n ). The following q lines contain queries in the format described in the statement. It's guaranteed that: For each query of the third type output answer on a new line.

Tutorials

Technocup 2021 Elimination Round 3 and Round #692 (Div. 1 + Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
101920834 Morkovich F Dec. 20, 2020, 10:42 p.m. OK GNU C++17 TESTS 51 529 36864000
101915176 sincerity F Dec. 20, 2020, 7:51 p.m. OK GNU C++17 TESTS 51 670 99020800
101922707 Endagorion F Dec. 21, 2020, 12:20 a.m. OK GNU C++17 TESTS 51 686 102195200
101922644 Endagorion F Dec. 21, 2020, 12:16 a.m. OK GNU C++17 TESTS 51 686 102195200
101921592 ecnerwala F Dec. 20, 2020, 11:19 p.m. OK GNU C++17 (64) TESTS 51 373 52019200
101921368 ecnerwala F Dec. 20, 2020, 11:08 p.m. OK GNU C++17 (64) TESTS 51 373 52019200
101921489 ecnerwala F Dec. 20, 2020, 11:14 p.m. OK GNU C++17 (64) TESTS 51 436 52019200
101920713 ecnerwala F Dec. 20, 2020, 10:37 p.m. OK GNU C++17 (64) TESTS 51 467 47308800
101916398 Benq F Dec. 20, 2020, 8:19 p.m. OK GNU C++17 (64) TESTS 51 514 71884800
101923610 Benq F Dec. 21, 2020, 1:10 a.m. OK GNU C++17 (64) TESTS 51 748 74649600
101915019 Benq F Dec. 20, 2020, 7:48 p.m. OK GNU C++17 (64) TESTS 51 982 71884800

remove filters

Back to search problems