Codeforces Round 818 (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
1717 Codeforces Round 818 (Div. 2) FINISHED False 7200 69693899 Sept. 2, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4432 ) D Madoka and The Corruption Scheme PROGRAMMING combinatorics math 1900

B'Madoka decided to entrust the organization of a major computer game tournament "OSU"! In this tournament, matches are held according to the "Olympic system". In other words, there are 2^n participants in the tournament, numbered with integers from 1 to 2^n . There are n rounds in total in the tournament. In the i -th round there are 2^{n - i} matches between two players (one of whom is right, the other is left), after which the winners go further along the tournament grid, and the losing participants are eliminated from the tournament. Herewith, the relative order in the next round does not change. And the winner of the tournament -- is the last remaining participant. But the smaller the participant 's number, the more he will pay Madoka if he wins, so Madoka wants the participant with the lowest number to win. To do this, she can arrange the participants in the first round as she likes, and also determine for each match who will win -- the participant on the left or right. But Madoka knows that tournament sponsors can change the winner in matches no more than k times. (That is, if the participant on the left won before the change, then the participant on the right will win after the change, and if the participant on the right won, then the participant on the left will win after the change). Print the minimum possible number of the winner in the tournament, which Madoka can get regardless of changes in sponsors. But since the answer can be very large, output it modulo 10^9 + 7 . Note that we need to minimize the answer, and only then take it modulo. The first and the only line contains two integers n and k ( 1 <= n <= 10^5, 1 <= k <= min(2^n - 1, 10^9) ) -- the number of rounds in the tournament and the number of outcomes that sponsors can change. Print exactly one integer -- the minimum number of the winner modulo 10^9 + 7 In the first example, there is only one match between p'...

Tutorials

Codeforces Round #818 (Div. 2) Editorial.

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
170640666 Tdyx D Sept. 2, 2022, 4:19 p.m. OK C# 8 TESTS 14 78 614400 1900
170682462 jkrs2 D Sept. 3, 2022, 1:55 a.m. OK GNU C++14 TESTS 14 15 0 1900
170692411 fryezsh D Sept. 3, 2022, 4:56 a.m. OK GNU C++14 TESTS 14 15 819200 1900
170690520 ChampSp D Sept. 3, 2022, 4:27 a.m. OK GNU C++14 TESTS 14 15 819200 1900
170688764 sunchaoyi D Sept. 3, 2022, 3:55 a.m. OK GNU C++14 TESTS 14 15 819200 1900
170688617 jrxxx D Sept. 3, 2022, 3:53 a.m. OK GNU C++14 TESTS 14 15 819200 1900
170685047 addict_0x0F D Sept. 3, 2022, 2:47 a.m. OK GNU C++14 TESTS 14 15 819200 1900
170684360 Aitejiu D Sept. 3, 2022, 2:35 a.m. OK GNU C++14 TESTS 14 15 819200 1900
170681741 Chinese_zjc_ D Sept. 3, 2022, 1:39 a.m. OK GNU C++14 TESTS 14 15 819200 1900
170679087 BlueLove25 D Sept. 3, 2022, 12:27 a.m. OK GNU C++14 TESTS 14 15 819200 1900
170639301 Chtanda_El D Sept. 2, 2022, 4:15 p.m. OK GNU C++14 TESTS 14 15 819200 1900
170644615 UUUnmei D Sept. 2, 2022, 4:29 p.m. OK GNU C++17 TESTS 14 0 1638400 1900
170645430 Lurtruoso D Sept. 2, 2022, 4:31 p.m. OK GNU C++17 TESTS 14 15 0 1900
170693005 xiong_dream_master D Sept. 3, 2022, 5:05 a.m. OK GNU C++17 TESTS 14 15 819200 1900
170692585 A_Faker D Sept. 3, 2022, 4:59 a.m. OK GNU C++17 TESTS 14 15 819200 1900
170692141 sgsg D Sept. 3, 2022, 4:52 a.m. OK GNU C++17 TESTS 14 15 819200 1900
170688945 whhsteven D Sept. 3, 2022, 4 a.m. OK GNU C++17 TESTS 14 15 819200 1900
170684080 xjq D Sept. 3, 2022, 2:29 a.m. OK GNU C++17 TESTS 14 15 819200 1900
170661802 Zuka D Sept. 2, 2022, 6:48 p.m. OK GNU C++17 TESTS 14 15 819200 1900
170660962 aditya07agrawal D Sept. 2, 2022, 6:38 p.m. OK GNU C++17 TESTS 14 15 819200 1900
170652269 Kanika__bansal D Sept. 2, 2022, 5:12 p.m. OK GNU C++17 TESTS 14 15 819200 1900
170689840 KevinSo25 D Sept. 3, 2022, 4:15 a.m. OK GNU C++17 (64) TESTS 14 0 716800 1900
170691055 asd12 D Sept. 3, 2022, 4:36 a.m. OK GNU C++17 (64) TESTS 14 0 819200 1900
170683924 xhgua D Sept. 3, 2022, 2:26 a.m. OK GNU C++17 (64) TESTS 14 0 1638400 1900
170680813 hyjhyj D Sept. 3, 2022, 1:15 a.m. OK GNU C++17 (64) TESTS 14 0 1638400 1900
170651816 TrendBattles D Sept. 2, 2022, 5:08 p.m. OK GNU C++17 (64) TESTS 14 0 1638400 1900
170649146 VegeDog D Sept. 2, 2022, 4:51 p.m. OK GNU C++17 (64) TESTS 14 0 4812800 1900
170659960 pvzelyyds D Sept. 2, 2022, 6:27 p.m. OK GNU C++17 (64) TESTS 14 15 0 1900
170653384 sandoval D Sept. 2, 2022, 5:21 p.m. OK GNU C++17 (64) TESTS 14 15 409600 1900
170645190 yerarslan D Sept. 2, 2022, 4:31 p.m. OK GNU C++17 (64) TESTS 14 15 409600 1900
170697055 kongfang89 D Sept. 3, 2022, 5:56 a.m. OK GNU C++17 (64) TESTS 14 15 819200 1900
170696907 Ckcyi D Sept. 3, 2022, 5:54 a.m. OK GNU C++20 (64) TESTS 14 0 819200 1900
170694492 SA01 D Sept. 3, 2022, 5:23 a.m. OK GNU C++20 (64) TESTS 14 0 819200 1900
170690333 wangcan_1 D Sept. 3, 2022, 4:24 a.m. OK GNU C++20 (64) TESTS 14 0 819200 1900
170648226 Nero D Sept. 2, 2022, 4:47 p.m. OK GNU C++20 (64) TESTS 14 0 819200 1900
170681088 t1anmeng D Sept. 3, 2022, 1:23 a.m. OK GNU C++20 (64) TESTS 14 0 1126400 1900
170695201 jason-wang D Sept. 3, 2022, 5:33 a.m. OK GNU C++20 (64) TESTS 14 0 1638400 1900
170686454 hnust_zenggai D Sept. 3, 2022, 3:12 a.m. OK GNU C++20 (64) TESTS 14 0 1638400 1900
170683874 yiyiCat D Sept. 3, 2022, 2:25 a.m. OK GNU C++20 (64) TESTS 14 0 1638400 1900
170682738 frozenca D Sept. 3, 2022, 2 a.m. OK GNU C++20 (64) TESTS 14 0 1638400 1900
170656794 ingingin D Sept. 2, 2022, 5:53 p.m. OK GNU C++20 (64) TESTS 14 0 1740800 1900
170645840 Nicolas125841 D Sept. 2, 2022, 4:32 p.m. OK Java 11 TESTS 14 217 0 1900
170639614 T_PAVAN_NAGARAJU D Sept. 2, 2022, 4:16 p.m. OK Java 11 TESTS 14 217 0 1900
170665470 Ste D Sept. 2, 2022, 7:35 p.m. OK Java 11 TESTS 14 311 0 1900
170682273 Mamimi D Sept. 3, 2022, 1:50 a.m. OK Java 17 TESTS 14 265 102400 1900
170688957 brstplayer D Sept. 3, 2022, 4 a.m. OK Java 17 TESTS 14 295 819200 1900
170656192 megaspazz D Sept. 2, 2022, 5:47 p.m. OK Java 8 TESTS 14 124 0 1900
170656298 megaspazz D Sept. 2, 2022, 5:48 p.m. OK Java 8 TESTS 14 139 0 1900
170648991 ggghg D Sept. 2, 2022, 4:50 p.m. OK Java 8 TESTS 14 155 0 1900
170661230 karamkontar D Sept. 2, 2022, 6:42 p.m. OK Java 8 TESTS 14 639 37580800 1900
170645410 Goldenglow1427 D Sept. 2, 2022, 4:31 p.m. OK MS C++ 2017 TESTS 14 30 1638400 1900
170652271 misaka12435 D Sept. 2, 2022, 5:12 p.m. OK MS C++ 2017 TESTS 14 61 2662400 1900
170643803 Eldies D Sept. 2, 2022, 4:27 p.m. OK MS C++ 2017 TESTS 14 61 7987200 1900
170693431 6ziv D Sept. 3, 2022, 5:10 a.m. OK MS C++ 2017 TESTS 14 62 0 1900
170652843 Danbbler D Sept. 2, 2022, 5:17 p.m. OK MS C++ 2017 TESTS 14 93 819200 1900
170652796 Bossusuprem D Sept. 2, 2022, 5:16 p.m. OK MS C++ 2017 TESTS 14 93 819200 1900
170672647 nik1998 D Sept. 2, 2022, 9:39 p.m. OK MS C++ 2017 TESTS 14 249 2457600 1900
170648413 1_2_3_4_5_9 D Sept. 2, 2022, 4:48 p.m. OK PyPy 2 TESTS 14 638 72089600 1900
170668322 tan_delhi D Sept. 2, 2022, 8:19 p.m. OK PyPy 3 TESTS 14 389 9830400 1900
170644580 Greyhound D Sept. 2, 2022, 4:29 p.m. OK PyPy 3 TESTS 14 421 2867200 1900
170654114 bridgekiller D Sept. 2, 2022, 5:27 p.m. OK PyPy 3-64 TESTS 14 62 1740800 1900
170657625 shobonvip D Sept. 2, 2022, 6:02 p.m. OK PyPy 3-64 TESTS 14 62 4915200 1900
170666433 dalgu D Sept. 2, 2022, 7:49 p.m. OK PyPy 3-64 TESTS 14 77 2764800 1900
170648258 jaglike_makkar D Sept. 2, 2022, 4:47 p.m. OK PyPy 3-64 TESTS 14 93 11161600 1900
170671157 sarthak2308 D Sept. 2, 2022, 9:08 p.m. OK PyPy 3-64 TESTS 14 93 12083200 1900
170640568 nexusmind D Sept. 2, 2022, 4:19 p.m. OK PyPy 3-64 TESTS 14 108 2150400 1900
170643567 kryptosx D Sept. 2, 2022, 4:27 p.m. OK PyPy 3-64 TESTS 14 108 5529600 1900
170689571 ahmedsiad D Sept. 3, 2022, 4:10 a.m. OK PyPy 3-64 TESTS 14 140 9011200 1900
170649404 KA_Rma D Sept. 2, 2022, 4:52 p.m. OK PyPy 3-64 TESTS 14 155 5632000 1900
170646490 jasmin_studer D Sept. 2, 2022, 4:33 p.m. OK PyPy 3-64 TESTS 14 202 9830400 1900
170664233 clbis D Sept. 2, 2022, 7:18 p.m. OK Python 3 TESTS 14 124 0 1900
170658776 BigWhiteRabbit D Sept. 2, 2022, 6:13 p.m. OK Python 3 TESTS 14 139 4505600 1900
170646459 gmunkhbaatarmn D Sept. 2, 2022, 4:33 p.m. OK Python 3 TESTS 14 202 2560000 1900
170657398 BigWhiteRabbit D Sept. 2, 2022, 5:59 p.m. OK Python 3 TESTS 14 936 0 1900
170687723 Svlad_Cjelli D Sept. 3, 2022, 3:33 a.m. OK Rust 2021 TESTS 14 15 0 1900
170680006 Spheniscine D Sept. 3, 2022, 12:52 a.m. OK Rust 2021 TESTS 14 15 921600 1900
170673815 kena0ki D Sept. 2, 2022, 10:10 p.m. OK Rust 2021 TESTS 14 15 1638400 1900

remove filters

Back to search problems