Educational Codeforces Round 113 (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
1569 Educational Codeforces Round 113 (Rated for Div. 2) FINISHED False 7200 100711499 Sept. 8, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 812 ) E Playoff Restoration PROGRAMMING bitmasks brute force hashing implementation meet-in-the-middle

B' 2^k teams participate in a playoff tournament. The tournament consists of 2^k - 1 games. They are held as follows: first of all, the teams are split into pairs: team 1 plays against team 2 , team 3 plays against team 4 (exactly in this order), and so on (so, 2^{k-1} games are played in that phase). When a team loses a game, it is eliminated, and each game results in elimination of one team (there are no ties). After that, only 2^{k-1} teams remain. If only one team remains, it is declared the champion; otherwise, 2^{k-2} games are played: in the first one of them, the winner of the game " 1 vs 2 " plays against the winner of the game " 3 vs 4 ", then the winner of the game " 5 vs 6 " plays against the winner of the game " 7 vs 8 ", and so on. This process repeats until only one team remains. After the tournament ends, the teams are assigned places according to the tournament phase when they were eliminated. In particular: For example, this picture describes one of the possible ways the tournament can go with k = 3 , and the resulting places of the teams: After a tournament which was conducted by the aforementioned rules ended, its results were encoded in the following way. Let p_i be the place of the i -th team in the tournament. The hash value of the tournament h is calculated as h = ( sum limits_{i=1}^{2^k} i cdot A^{p_i}) bmod 998244353 , where A is some given integer. Unfortunately, due to a system crash, almost all tournament-related data was lost. The only pieces of data that remain are the values of k , A and h . You are asked to restore the resulting placing of the teams in the tournament, if it is possible at all. The only line contains three integers k , A and h ( 1 <= k <= 5 ; 100 <= A <= 10^8 ; 0 <= h <= 998244352 ). If it is impossible to find any placing of the te'...

Tutorials

94721

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
128302884 zhangjianjuncd E Sept. 9, 2021, 12:46 a.m. OK GNU C++14 TESTS 42 46 4300800
128311826 RobeZH E Sept. 9, 2021, 4:49 a.m. OK GNU C++14 TESTS 42 61 13926400
128284821 fr200110218102 E Sept. 8, 2021, 5:18 p.m. OK GNU C++14 TESTS 42 62 3993600
128275370 LincHpin E Sept. 8, 2021, 4:26 p.m. OK GNU C++14 TESTS 42 62 4096000
128307426 WNJXYK E Sept. 9, 2021, 3:08 a.m. OK GNU C++14 TESTS 42 62 4505600
128273853 Aphelios E Sept. 8, 2021, 4:23 p.m. OK GNU C++14 TESTS 42 62 6246400
128286659 jiufeng E Sept. 8, 2021, 5:40 p.m. OK GNU C++14 TESTS 42 77 21913600
128306993 tsugu E Sept. 9, 2021, 2:57 a.m. OK GNU C++14 TESTS 42 77 49664000
128284364 testing_123 E Sept. 8, 2021, 5:13 p.m. OK GNU C++14 TESTS 42 78 7168000
128298639 ankit_1107 E Sept. 8, 2021, 9:47 p.m. OK GNU C++14 TESTS 42 78 9113600
128282370 azukun E Sept. 8, 2021, 4:55 p.m. OK .NET Core C# TESTS 42 124 15974400
128275982 mban259 E Sept. 8, 2021, 4:28 p.m. OK .NET Core C# TESTS 42 202 26112000

remove filters

Back to search problems