Educational Codeforces Round 149 (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
1837 Educational Codeforces Round 149 (Rated for Div. 2) FINISHED False 7200 52241063 May 25, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2263 ) E Playoff Fixing PROGRAMMING combinatorics trees

B' 2^k teams participate in a playoff tournament. The teams are numbered from 1 to 2^k , in order of decreasing strength. So, team 1 is the strongest one, team 2^k is the weakest one. A team with a smaller number always defeats a team with a larger number. First of all, the teams are arranged in some order during a procedure called seeding. Each team is assigned another unique value from 1 to 2^k , called a seed, that represents its starting position in the playoff. The tournament consists of 2^k - 1 games. They are held as follows: the teams are split into pairs: team with seed 1 plays against team with seed 2 , team with seed 3 plays against team with seed 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. 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 "seed 1 vs seed 2 " plays against the winner of the game "seed 3 vs seed 4 ", then the winner of the game "seed 5 vs seed 6 " plays against the winner of the game "seed 7 vs seed 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: Now that we established the rules, we do a little rigging. In particular, we want: For example, this picture describes one of the possible ways the tournament can go with k = 3 , and the resulting places of the teams: Some seeds are already reserved for some teams (we are not the only ones rigging the tournament, apparently). We have to fill the rest of the seeds with the remaining teams to achieve the desired placements. How many ways are there to do that? Since that value might be large, print it '...

Tutorials

116752

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
207299894 Tdyx E May 26, 2023, 3:10 a.m. OK C# 10 TESTS 38 171 41369600
207295603 MakaPakka E May 26, 2023, 1:39 a.m. OK GNU C++14 TESTS 38 46 11571200
207266992 astilate E May 25, 2023, 5:08 p.m. OK GNU C++14 TESTS 38 124 8396800
207305210 TrendBattles E May 26, 2023, 4:43 a.m. OK GNU C++14 TESTS 38 140 4403200
207292987 myst-6 E May 26, 2023, 12:29 a.m. OK GNU C++14 TESTS 38 140 11571200
207294609 Krystallos E May 26, 2023, 1:14 a.m. OK GNU C++14 TESTS 38 140 16793600
207294687 LiUHF E May 26, 2023, 1:16 a.m. OK GNU C++14 TESTS 38 140 35225600
207305903 TrendBattles E May 26, 2023, 4:54 a.m. OK GNU C++14 TESTS 38 155 4403200
207302934 JKF_ZZ E May 26, 2023, 4:04 a.m. OK GNU C++14 TESTS 38 155 14028800
207263307 LilWang E May 25, 2023, 4:46 p.m. OK GNU C++14 TESTS 38 156 4198400
207292652 wa_233 E May 26, 2023, 12:19 a.m. OK GNU C++14 TESTS 38 156 7270400
207298293 rqoi031 E May 26, 2023, 2:39 a.m. OK GNU C++17 TESTS 38 61 33075200
207269506 manoj_1729 E May 25, 2023, 5:28 p.m. OK GNU C++17 TESTS 38 108 2457600
207297850 rqoi031 E May 26, 2023, 2:30 a.m. OK GNU C++17 TESTS 38 109 32051200
207284202 Catee E May 25, 2023, 8:25 p.m. OK GNU C++17 TESTS 38 124 2150400
207267277 lddlinan E May 25, 2023, 5:10 p.m. OK GNU C++17 TESTS 38 124 30412800
207298080 rqoi031 E May 26, 2023, 2:35 a.m. OK GNU C++17 TESTS 38 124 32051200
207291735 MarioYC E May 25, 2023, 11:47 p.m. OK GNU C++17 TESTS 38 140 2150400
207279725 patou E May 25, 2023, 7:16 p.m. OK GNU C++17 TESTS 38 140 4300800
207277068 eldonak E May 25, 2023, 6:41 p.m. OK GNU C++17 TESTS 38 140 4300800
207266563 lxyb E May 25, 2023, 5:05 p.m. OK GNU C++17 TESTS 38 140 8396800
207292019 enslaved E May 25, 2023, 11:58 p.m. OK GNU C++17 (64) TESTS 38 93 3174400
207294204 efficient E May 26, 2023, 1:05 a.m. OK GNU C++17 (64) TESTS 38 93 6348800
207267126 Kude E May 25, 2023, 5:09 p.m. OK GNU C++17 (64) TESTS 38 93 8396800
207267494 Reaper_org E May 25, 2023, 5:11 p.m. OK GNU C++17 (64) TESTS 38 93 10547200
207295662 CurryWOE E May 26, 2023, 1:41 a.m. OK GNU C++17 (64) TESTS 38 93 14438400
207262546 flukehn E May 25, 2023, 4:41 p.m. OK GNU C++17 (64) TESTS 38 93 14745600
207308093 Once_I_Liked_AGirl E May 26, 2023, 5:25 a.m. OK GNU C++17 (64) TESTS 38 108 12595200
207309490 I_LOVE_TCA E May 26, 2023, 5:44 a.m. OK GNU C++17 (64) TESTS 43 108 12800000
207302163 Irmuun.Ch E May 26, 2023, 3:50 a.m. OK GNU C++17 (64) TESTS 38 108 18841600
207260684 AmirElarbi E May 25, 2023, 4:34 p.m. OK GNU C++17 (64) TESTS 38 108 24064000
207310742 webmaster E May 26, 2023, 6 a.m. OK GNU C++20 (64) TESTS 43 46 2355200
207307508 ppt1524 E May 26, 2023, 5:17 a.m. OK GNU C++20 (64) TESTS 38 77 13312000
207291269 tranxuantruong E May 25, 2023, 11:31 p.m. OK GNU C++20 (64) TESTS 38 77 22118400
207263587 A_G E May 25, 2023, 4:48 p.m. OK GNU C++20 (64) TESTS 38 78 3174400
207285812 Igen E May 25, 2023, 8:55 p.m. OK GNU C++20 (64) TESTS 38 78 5324800
207293955 LXH-cat E May 26, 2023, 12:58 a.m. OK GNU C++20 (64) TESTS 38 78 6348800
207267766 shmax_ E May 25, 2023, 5:14 p.m. OK GNU C++20 (64) TESTS 38 78 6348800
207305241 Fiatiustitia E May 26, 2023, 4:44 a.m. OK GNU C++20 (64) TESTS 38 78 8396800
207279653 RAVIwaves E May 25, 2023, 7:15 p.m. OK GNU C++20 (64) TESTS 38 78 8396800
207292436 Satinii E May 26, 2023, 12:13 a.m. OK GNU C++20 (64) TESTS 38 78 9523200
207299597 pxhero E May 26, 2023, 3:04 a.m. OK Java 11 TESTS 38 280 16281600
207299343 pxhero E May 26, 2023, 3 a.m. OK Java 11 TESTS 38 404 31744000
207280463 MagentaCobra E May 25, 2023, 7:27 p.m. OK Java 17 TESTS 38 311 9318400
207260351 warks E May 25, 2023, 4:34 p.m. OK Java 17 TESTS 38 608 19353600
207269374 RMA-NB E May 25, 2023, 5:27 p.m. OK Java 8 TESTS 38 1575 39833600
207265625 Vasily_PML30 E May 25, 2023, 4:59 p.m. OK MS C++ 2017 TESTS 38 560 23142400
207289629 random__person E May 25, 2023, 10:29 p.m. OK PyPy 3 TESTS 38 483 56832000
207277657 Ayush710 E May 25, 2023, 6:48 p.m. OK PyPy 3-64 TESTS 38 249 61644800
207275096 el_tunel E May 25, 2023, 6:20 p.m. OK PyPy 3-64 TESTS 38 249 61644800
207299998 mikeac E May 26, 2023, 3:12 a.m. OK PyPy 3-64 TESTS 38 249 65638400
207296935 Quick-One E May 26, 2023, 2:10 a.m. OK PyPy 3-64 TESTS 38 265 61644800
207266603 yeche2023 E May 25, 2023, 5:05 p.m. OK PyPy 3-64 TESTS 38 280 61644800
207266412 yeche2023 E May 25, 2023, 5:04 p.m. OK PyPy 3-64 TESTS 38 311 61644800
207308703 Little_Sheep_Yawn E May 26, 2023, 5:34 a.m. OK PyPy 3-64 TESTS 43 326 69734400
207295548 xy_yx E May 26, 2023, 1:38 a.m. OK PyPy 3-64 TESTS 38 342 68505600
207301679 Little_Sheep_Yawn E May 26, 2023, 3:40 a.m. OK PyPy 3-64 TESTS 38 358 87449600
207262493 PROELECTRO444 E May 25, 2023, 4:41 p.m. OK PyPy 3-64 TESTS 38 389 62361600
207278125 nvllable E May 25, 2023, 6:53 p.m. OK Python 3 TESTS 38 780 67993600
207272539 magnus.hegdahl E May 25, 2023, 5:56 p.m. OK Rust 2021 TESTS 38 46 8704000
207274853 magnus.hegdahl E May 25, 2023, 6:18 p.m. OK Rust 2021 TESTS 38 46 11776000
207274722 magnus.hegdahl E May 25, 2023, 6:16 p.m. OK Rust 2021 TESTS 38 46 18124800
207273844 magnus.hegdahl E May 25, 2023, 6:08 p.m. OK Rust 2021 TESTS 38 46 18124800
207271585 0npata E May 25, 2023, 5:47 p.m. OK Rust 2021 TESTS 38 77 10547200
207287510 kost E May 25, 2023, 9:30 p.m. OK Rust 2021 TESTS 38 77 31641600
207273864 robostac E May 25, 2023, 6:08 p.m. OK Rust 2021 TESTS 38 592 49971200

remove filters

Back to search problems