Educational Codeforces Round 155 (Rated for 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
1879 Educational Codeforces Round 155 (Rated for Div. 2) FINISHED False 7200 41613863 Sept. 24, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1299 ) E Interactive Game with Coloring PROGRAMMING brute force constructive algorithms graphs implementation interactive math trees 2400

B"This is an interactive problem. Remember to flush your output while communicating with the testing program. You may use fflush(stdout) in C++, system.out.flush() in Java, stdout.flush() in Python or flush(output) in Pascal to flush the output. If you use some other programming language, consult its documentation. You may also refer to the guide on interactive problems: https://codeforces.com/blog/entry/45307. You are given a tree on n vertices; vertex 1 is the root of the tree. For every i in [2, n] , the parent of the i -th vertex is p_i , and p_i < i . You have to color all edges of the tree using the minimum possible number of colors such that you can win the game on that tree (every edge should be painted into exactly one color). The game we're going to play will be conducted as follows. After you paint the edges and print their colors, the jury will place a chip into one of the vertices of the tree (except for the root). Your goal is to move this chip to the root in exactly d moves, where d is the distance from the root to that vertex (the distance is equal to the number of edges on the path). If the chip reaches the root in d moves, you win. Otherwise, you lose. The jury won't tell you where the chip is located. You won't even know the value of d in advance. However, at the start of each move, you will be told how many edges of each color are incident to the current vertex (this includes both the edge leading up the tree and the edges leading away from the root). You have to choose one of these colors, and the chip will be moved along the edge of the chosen color (if there are multiple edges with that color incident to the current vertex, the jury gets to choose one of them). After the chip is moved, you will be told the same information about the current vertex again, and the game continues, until you either reach the root, or you make d moves without reaching the root. The interactor fo"...

Tutorials

120773

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
224978932 ishmeal E Sept. 24, 2023, 4:54 p.m. OK Clang++20 Diagnostics TESTS 29 31 4198400 2400
225013734 TermostatoEn24 E Sept. 25, 2023, 12:38 a.m. OK GNU C11 TESTS 30 15 0 2400
225013664 Sukwants E Sept. 25, 2023, 12:36 a.m. OK GNU C++14 TESTS 30 15 0 2400
224998883 whatss7 E Sept. 24, 2023, 7:38 p.m. OK GNU C++14 TESTS 30 15 0 2400
225019076 DeaphetS E Sept. 25, 2023, 2:40 a.m. OK GNU C++14 TESTS 30 15 0 2400
224978454 xkcdjerry E Sept. 24, 2023, 4:52 p.m. OK GNU C++14 TESTS 29 15 102400 2400
224991334 pnlong2706 E Sept. 24, 2023, 6:19 p.m. OK GNU C++14 TESTS 30 15 102400 2400
224989089 pnlong2706 E Sept. 24, 2023, 6:01 p.m. OK GNU C++14 TESTS 29 15 102400 2400
225024153 Dannlca E Sept. 25, 2023, 4:07 a.m. OK GNU C++14 TESTS 30 15 204800 2400
225019695 Moon_rainbow E Sept. 25, 2023, 2:51 a.m. OK GNU C++14 TESTS 30 15 204800 2400
225031901 heaksicn E Sept. 25, 2023, 5:57 a.m. OK GNU C++14 TESTS 30 15 204800 2400
225024402 Wzh134009181 E Sept. 25, 2023, 4:12 a.m. OK GNU C++14 TESTS 30 15 204800 2400
225022971 CSHwang E Sept. 25, 2023, 3:47 a.m. OK GNU C++17 TESTS 30 15 0 2400
225011361 GoatTamer E Sept. 24, 2023, 11:27 p.m. OK GNU C++17 TESTS 30 15 102400 2400
225007234 DinoHadzic E Sept. 24, 2023, 9:42 p.m. OK GNU C++17 TESTS 30 15 102400 2400
224993128 csegura E Sept. 24, 2023, 6:35 p.m. OK GNU C++17 TESTS 30 15 102400 2400
224982217 Alexander_0918 E Sept. 24, 2023, 5:11 p.m. OK GNU C++17 TESTS 29 15 102400 2400
225020020 chaewon E Sept. 25, 2023, 2:57 a.m. OK GNU C++17 TESTS 30 15 102400 2400
224981288 georgerapeanu E Sept. 24, 2023, 5:06 p.m. OK GNU C++17 TESTS 29 15 102400 2400
224979260 vhnvn E Sept. 24, 2023, 4:56 p.m. OK GNU C++17 TESTS 29 15 102400 2400
224981039 Ujjwalkool E Sept. 24, 2023, 5:04 p.m. OK GNU C++17 TESTS 29 15 102400 2400
224981663 KiFaH_HeLaL E Sept. 24, 2023, 5:08 p.m. OK GNU C++17 TESTS 29 15 102400 2400
225016473 servants E Sept. 25, 2023, 1:47 a.m. OK GNU C++17 (64) TESTS 30 15 0 2400
225025387 surfing E Sept. 25, 2023, 4:29 a.m. OK GNU C++17 (64) TESTS 30 15 0 2400
225023914 wangjunchao E Sept. 25, 2023, 4:03 a.m. OK GNU C++17 (64) TESTS 30 15 0 2400
225020313 XianztsZhong E Sept. 25, 2023, 3:02 a.m. OK GNU C++17 (64) TESTS 30 15 0 2400
225017578 zhang_yt E Sept. 25, 2023, 2:10 a.m. OK GNU C++17 (64) TESTS 30 15 0 2400
225017101 CN_how E Sept. 25, 2023, 2:01 a.m. OK GNU C++17 (64) TESTS 30 15 0 2400
225015150 wsyear E Sept. 25, 2023, 1:15 a.m. OK GNU C++17 (64) TESTS 30 15 0 2400
225009487 kondasujay2 E Sept. 24, 2023, 10:32 p.m. OK GNU C++17 (64) TESTS 30 15 0 2400
225009198 enslaved E Sept. 24, 2023, 10:26 p.m. OK GNU C++17 (64) TESTS 30 15 0 2400
225006952 Basilhijaz E Sept. 24, 2023, 9:37 p.m. OK GNU C++17 (64) TESTS 30 15 0 2400
225031786 Aicu E Sept. 25, 2023, 5:56 a.m. OK GNU C++20 (64) TESTS 30 15 0 2400
225031677 Aicu E Sept. 25, 2023, 5:54 a.m. OK GNU C++20 (64) TESTS 30 15 0 2400
225031222 vikram_kv E Sept. 25, 2023, 5:49 a.m. OK GNU C++20 (64) TESTS 30 15 0 2400
225030074 QazallMaleki- E Sept. 25, 2023, 5:34 a.m. OK GNU C++20 (64) TESTS 30 15 0 2400
225029990 qmdjfislw E Sept. 25, 2023, 5:33 a.m. OK GNU C++20 (64) TESTS 30 15 0 2400
225028664 Jared_McDs E Sept. 25, 2023, 5:16 a.m. OK GNU C++20 (64) TESTS 30 15 0 2400
225028148 Noctambulant E Sept. 25, 2023, 5:10 a.m. OK GNU C++20 (64) TESTS 30 15 0 2400
225027895 Je3ter E Sept. 25, 2023, 5:06 a.m. OK GNU C++20 (64) TESTS 30 15 0 2400
225025598 Francesco4203 E Sept. 25, 2023, 4:33 a.m. OK GNU C++20 (64) TESTS 30 15 0 2400
225032307 wzihan E Sept. 25, 2023, 6:01 a.m. OK GNU C++20 (64) TESTS 30 15 0 2400
224980916 dusty.and.rusty E Sept. 24, 2023, 5:04 p.m. OK Java 17 TESTS 29 233 819200 2400
224988161 a3g1s E Sept. 24, 2023, 5:54 p.m. OK Java 8 TESTS 29 139 0 2400
225000015 hxu10 E Sept. 24, 2023, 7:51 p.m. OK PyPy 3 TESTS 30 93 409600 2400
224975783 bradley.louie1 E Sept. 24, 2023, 4:41 p.m. OK PyPy 3 TESTS 29 124 2150400 2400
225013751 ct17 E Sept. 25, 2023, 12:39 a.m. OK PyPy 3-64 TESTS 30 62 0 2400
224991001 W5Y E Sept. 24, 2023, 6:16 p.m. OK PyPy 3-64 TESTS 29 62 0 2400
224990064 bronze_coder E Sept. 24, 2023, 6:09 p.m. OK PyPy 3-64 TESTS 29 77 0 2400
224982808 9.86960440109 E Sept. 24, 2023, 5:15 p.m. OK PyPy 3-64 TESTS 29 93 1331200 2400
224977085 MaxLevitsky E Sept. 24, 2023, 4:46 p.m. OK Python 3 TESTS 29 46 102400 2400
225002966 mihael1peklar E Sept. 24, 2023, 8:30 p.m. OK Rust 2021 TESTS 30 15 0 2400
224976669 robostac E Sept. 24, 2023, 4:44 p.m. OK Rust 2021 TESTS 29 30 409600 2400

remove filters

Back to search problems