Codeforces Round 610 (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
1282 Codeforces Round 610 (Div. 2) FINISHED False 7200 154625099 Dec. 24, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1154 ) E The Cake Is a Lie PROGRAMMING constructive algorithms data structures dfs and similar graphs 2400

B'We are committed to the well being of all participants. Therefore, instead of the problem, we suggest you enjoy a piece of cake. Uh oh. Somebody cut the cake. We told them to wait for you, but they did it anyway. There is still some left, though, if you hurry back. Of course, before you taste the cake, you thought about how the cake was cut. It is known that the cake was originally a regular n -sided polygon, each vertex of which had a unique number from 1 to n . The vertices were numbered in random order. Each piece of the cake is a triangle. The cake was cut into n - 2 pieces as follows: each time one cut was made with a knife (from one vertex to another) such that exactly one triangular piece was separated from the current cake, and the rest continued to be a convex polygon. In other words, each time three consecutive vertices of the polygon were selected and the corresponding triangle was cut off. A possible process of cutting the cake is presented in the picture below. You are given a set of n-2 triangular pieces in random order. The vertices of each piece are given in random order -- clockwise or counterclockwise. Each piece is defined by three numbers -- the numbers of the corresponding n -sided cake vertices. For example, for the situation in the picture above, you could be given a set of pieces: [3, 6, 5], [5, 2, 4], [5, 4, 6], [6, 3, 1] . You are interested in two questions. Formally, you have to find two permutations p_1, p_2, ... , p_n ( 1 <= p_i <= n ) and q_1, q_2, ... , q_{n - 2} ( 1 <= q_i <= n - 2 ) such that if the cake vertices are numbered with the numbers p_1, p_2, ... , p_n in order clockwise or counterclockwise, then when cutting pieces of the cake in the order q_1, q_2, ... , q_{n - 2} always cuts off a triangular piece so that the remaining part forms one convex polygon. For example, in the picture above the answer permutations could be: p=[2, 4, 6, '...

Tutorials

72461

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
68200889 mohana-256 E Jan. 4, 2020, 3:43 p.m. OK GNU C11 TESTS 40 748 11366400 2400
67560924 robin646087 E Dec. 24, 2019, 5:33 p.m. OK GNU C11 TESTS 40 748 11366400 2400
67534158 rainboy E Dec. 24, 2019, 3:02 p.m. OK GNU C11 TESTS 40 795 11366400 2400
67594036 Sugarii E Dec. 25, 2019, 9:56 a.m. OK GNU C++11 TESTS 40 156 9830400 2400
67550424 UMP45 E Dec. 24, 2019, 4:08 p.m. OK GNU C++11 TESTS 40 186 7577600 2400
68737842 Anthropos E Jan. 13, 2020, 9:27 p.m. OK GNU C++11 TESTS 40 186 19456000 2400
69146954 ryuIo E Jan. 19, 2020, 4:11 p.m. OK GNU C++11 TESTS 40 187 16588800 2400
67555422 V4yne E Dec. 24, 2019, 4:30 p.m. OK GNU C++11 TESTS 40 202 9625600 2400
67560893 qxforever E Dec. 24, 2019, 5:32 p.m. OK GNU C++11 TESTS 40 218 22118400 2400
68126637 crybymyself E Jan. 3, 2020, 3:25 p.m. OK GNU C++11 TESTS 40 233 13312000 2400
67695104 dredwerkz E Dec. 27, 2019, 12:40 p.m. OK GNU C++11 TESTS 40 234 17510400 2400
67685449 tiger0132 E Dec. 27, 2019, 8:39 a.m. OK GNU C++11 TESTS 40 249 13004800 2400
67967058 tiger0132 E Dec. 30, 2019, 1:42 p.m. OK GNU C++11 TESTS 40 249 13004800 2400
68009883 gasin E Dec. 31, 2019, 3:10 p.m. OK GNU C++14 TESTS 40 140 7782400 2400
67576504 Retro3014 E Dec. 25, 2019, 2:51 a.m. OK GNU C++14 TESTS 40 140 18124800 2400
67565006 Nagrarok E Dec. 24, 2019, 6:54 p.m. OK GNU C++14 TESTS 40 155 11161600 2400
67551723 _Karuna E Dec. 24, 2019, 4:14 p.m. OK GNU C++14 TESTS 40 202 16691200 2400
67975002 ..vince E Dec. 30, 2019, 4:32 p.m. OK GNU C++14 TESTS 40 234 21401600 2400
67544546 353cerega E Dec. 24, 2019, 3:42 p.m. OK GNU C++14 TESTS 40 264 13312000 2400
67581087 silxi E Dec. 25, 2019, 6:06 a.m. OK GNU C++14 TESTS 40 265 16793600 2400
68073646 antguz E Jan. 2, 2020, 11:32 a.m. OK GNU C++14 TESTS 40 265 18227200 2400
67970720 Autron E Dec. 30, 2019, 2:55 p.m. OK GNU C++14 TESTS 40 265 18329600 2400
68469144 vjudge4 E Jan. 9, 2020, 11:17 p.m. OK GNU C++14 TESTS 40 280 59596800 2400
67590173 user202729_ E Dec. 25, 2019, 9:22 a.m. OK GNU C++17 TESTS 40 61 4403200 2400
68332066 zjsdut E Jan. 6, 2020, 7:19 p.m. OK GNU C++17 TESTS 40 124 2867200 2400
68332651 zjsdut E Jan. 6, 2020, 7:38 p.m. OK GNU C++17 TESTS 40 124 2867200 2400
68331967 zjsdut E Jan. 6, 2020, 7:16 p.m. OK GNU C++17 TESTS 40 124 3481600 2400
67661904 Aphelios E Dec. 26, 2019, 4:11 p.m. OK GNU C++17 TESTS 40 140 15462400 2400
67670149 MicGor E Dec. 26, 2019, 7:54 p.m. OK GNU C++17 TESTS 40 155 9011200 2400
67683249 Drice E Dec. 27, 2019, 7:32 a.m. OK GNU C++17 TESTS 40 156 12083200 2400
67551007 saketh E Dec. 24, 2019, 4:10 p.m. OK GNU C++17 TESTS 40 171 7065600 2400
67548105 Ronnie007 E Dec. 24, 2019, 3:57 p.m. OK GNU C++17 TESTS 40 171 8908800 2400
67553412 Marckess E Dec. 24, 2019, 4:22 p.m. OK GNU C++17 TESTS 40 171 10752000 2400
67540248 Dukkha E Dec. 24, 2019, 3:25 p.m. OK Java 11 TESTS 40 779 18432000 2400
67623976 TheSawan E Dec. 25, 2019, 8:21 p.m. OK Java 11 TESTS 40 1528 76595200 2400
67624126 TheSawan E Dec. 25, 2019, 8:26 p.m. OK Java 11 TESTS 40 1731 128204800 2400
68147147 luchy0120 E Jan. 4, 2020, 5:06 a.m. OK Java 8 TESTS 40 452 26316800 2400
68146730 luchy0120 E Jan. 4, 2020, 4:52 a.m. OK Java 8 TESTS 40 701 55910400 2400
67622656 SpargelTarzan E Dec. 25, 2019, 7:37 p.m. OK Java 8 TESTS 40 701 63590400 2400
68146032 luchy0120 E Jan. 4, 2020, 4:26 a.m. OK Java 8 TESTS 40 717 55910400 2400
67575962 dalt E Dec. 25, 2019, 2:13 a.m. OK Java 8 TESTS 40 717 83353600 2400
68146689 luchy0120 E Jan. 4, 2020, 4:50 a.m. OK Java 8 TESTS 40 764 55910400 2400
67943074 Ahmad E Dec. 30, 2019, 3:09 a.m. OK Java 8 TESTS 40 841 50995200 2400
67610867 BaZ_ E Dec. 25, 2019, 3:20 p.m. OK Java 8 TESTS 40 857 59494400 2400
67552005 Nutella3000 E Dec. 24, 2019, 4:15 p.m. OK Java 8 TESTS 40 873 38195200 2400
67568267 YahiaSherif E Dec. 24, 2019, 8:26 p.m. OK Java 8 TESTS 40 904 40448000 2400
67554466 camypaper E Dec. 24, 2019, 4:26 p.m. OK Mono C# TESTS 40 483 43827200 2400
68317606 SpinDOS E Jan. 6, 2020, 1:46 p.m. OK Mono C# TESTS 40 670 56217600 2400
68319182 SpinDOS E Jan. 6, 2020, 2:19 p.m. OK Mono C# TESTS 40 685 56012800 2400
68318317 SpinDOS E Jan. 6, 2020, 2 p.m. OK Mono C# TESTS 40 701 55910400 2400
67559174 r57shell E Dec. 24, 2019, 5:09 p.m. OK MS C++ TESTS 40 390 28876800 2400
67677471 pichulia E Dec. 27, 2019, 3:42 a.m. OK MS C++ 2017 TESTS 40 171 8294400 2400
68084016 MT_07 E Jan. 2, 2020, 3:29 p.m. OK MS C++ 2017 TESTS 40 623 16998400 2400
67558362 nukeykt E Dec. 24, 2019, 5:01 p.m. OK MS C++ 2017 TESTS 40 654 28876800 2400
68059448 AlexanderL E Jan. 2, 2020, 1:57 a.m. OK MS C++ 2017 TESTS 40 748 23449600 2400
67547787 bcollet E Dec. 24, 2019, 3:56 p.m. OK PyPy 2 TESTS 40 748 49766400 2400
67992399 xiema E Dec. 31, 2019, 5:57 a.m. OK PyPy 3 TESTS 40 858 69836800 2400
68011134 addammy E Dec. 31, 2019, 3:51 p.m. OK PyPy 3 TESTS 40 1777 76595200 2400
67609357 mitribunskiy E Dec. 25, 2019, 2:46 p.m. OK PyPy 3 TESTS 40 1981 80896000 2400
67557005 nwi E Dec. 24, 2019, 4:34 p.m. OK Python 2 TESTS 40 1325 66150400 2400
67866243 mahir01 E Dec. 29, 2019, 9:47 a.m. OK Python 3 TESTS 40 1466 52633600 2400
67605721 nexus.chebykin E Dec. 25, 2019, 1:30 p.m. OK Python 3 TESTS 40 1528 160051200 2400
67688731 NocturneBflat E Dec. 27, 2019, 10:06 a.m. OK Python 3 TESTS 40 1699 48947200 2400

remove filters

Back to search problems