Educational Codeforces Round 110 (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
1535 Educational Codeforces Round 110 (Rated for Div. 2) FINISHED False 7200 114362663 June 4, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7880 ) D Playoff Tournament PROGRAMMING data structures implementation trees

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. For example, this picture describes the chronological order of games with k = 3 : Let the string s consisting of 2^k - 1 characters describe the results of the games in chronological order as follows: Let f(s) be the number of possible winners of the tournament described by the string s . A team i is a possible winner of the tournament if it is possible to replace every ? with either 1 or 0 in such a way that team i is the champion. You are given the initial state of the string s . You have to process q queries of the following form: The first line contains one integer k ( 1 <= k <= 18 ). The second line contains a string consisting of 2^k - 1 characters -- the initial state of the string s . Each character is either ?, 0, or 1. The third line contains one integer q ( 1 <= q <= 2 cdot 10^5 ) -- the number of queries. Then q lines follow, the i -th line contains an integer p and a character c ( 1 <= p <= 2^k - 1 ; c is either ?, 0, or 1), describing the '...

Tutorials

91481

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
118445614 ssvb D June 4, 2021, 5:21 p.m. OK D TESTS 19 468 24371200
118436724 monstersqwq D June 4, 2021, 4:27 p.m. OK FPC TESTS 19 701 8704000
118436077 zjh2017 D June 4, 2021, 4:26 p.m. OK GNU C++11 TESTS 19 78 1536000
118435137 tan900 D June 4, 2021, 4:23 p.m. OK GNU C++11 TESTS 19 93 21094400
118444442 Joler_ D June 4, 2021, 5:09 p.m. OK GNU C++11 TESTS 19 109 2355200
118441291 sarailQAQ D June 4, 2021, 4:44 p.m. OK GNU C++11 TESTS 19 109 5222400
118437416 myx12345 D June 4, 2021, 4:29 p.m. OK GNU C++11 TESTS 19 109 60108800
118442130 Limerance D June 4, 2021, 4:50 p.m. OK GNU C++11 TESTS 19 124 1331200
118433746 cjjst123 D June 4, 2021, 4:19 p.m. OK GNU C++11 TESTS 19 124 1536000
118467089 warr D June 5, 2021, 3:27 a.m. OK GNU C++11 TESTS 23 124 4505600
118443869 LinkZelda D June 4, 2021, 5:04 p.m. OK GNU C++11 TESTS 19 124 9420800
118438296 Tonyell D June 4, 2021, 4:32 p.m. OK GNU C++11 TESTS 19 124 69120000
118460295 zeit D June 4, 2021, 10:34 p.m. OK GNU C++14 TESTS 23 109 2150400
118460615 zeit D June 4, 2021, 10:55 p.m. OK GNU C++14 TESTS 23 124 2150400
118472848 RaviNadoda D June 5, 2021, 5:27 a.m. OK GNU C++14 TESTS 23 124 2150400
118469329 Sanjay422 D June 5, 2021, 4:22 a.m. OK GNU C++14 TESTS 23 124 2150400
118460500 zeit D June 4, 2021, 10:45 p.m. OK GNU C++14 TESTS 23 124 2150400
118460472 zeit D June 4, 2021, 10:43 p.m. OK GNU C++14 TESTS 23 124 2150400
118460382 zeit D June 4, 2021, 10:39 p.m. OK GNU C++14 TESTS 23 124 2150400
118460348 zeit D June 4, 2021, 10:37 p.m. OK GNU C++14 TESTS 23 124 2150400
118460278 zeit D June 4, 2021, 10:33 p.m. OK GNU C++14 TESTS 23 124 2150400
118460173 zeit D June 4, 2021, 10:27 p.m. OK GNU C++14 TESTS 23 124 2150400
118438014 winlmp D June 4, 2021, 4:31 p.m. OK GNU C++17 TESTS 19 62 48332800
118450182 complacent D June 4, 2021, 6:19 p.m. OK GNU C++17 TESTS 19 109 2150400
118446279 itish D June 4, 2021, 5:28 p.m. OK GNU C++17 TESTS 19 109 2150400
118445142 Yogi79 D June 4, 2021, 5:15 p.m. OK GNU C++17 TESTS 19 109 2150400
118434724 I_love_oops D June 4, 2021, 4:22 p.m. OK GNU C++17 TESTS 19 109 3481600
118453701 PC_E1052 D June 4, 2021, 7:18 p.m. OK GNU C++17 TESTS 23 109 69632000
118466090 ywxk D June 5, 2021, 3 a.m. OK GNU C++17 TESTS 23 124 1331200
118463777 BilibiliTDASC D June 5, 2021, 1:54 a.m. OK GNU C++17 TESTS 23 124 1331200
118440184 Neema_ D June 4, 2021, 4:38 p.m. OK GNU C++17 TESTS 19 124 1638400
118444054 Kusmir D June 4, 2021, 5:06 p.m. OK GNU C++17 TESTS 19 124 1843200
118442152 nsns D June 4, 2021, 4:50 p.m. OK GNU C++17 (64) TESTS 19 78 2150400
118450671 AB.devil D June 4, 2021, 6:27 p.m. OK GNU C++17 (64) TESTS 19 93 1638400
118445538 DreamingLeaf D June 4, 2021, 5:20 p.m. OK GNU C++17 (64) TESTS 19 93 2150400
118474759 FedShat D June 5, 2021, 5:57 a.m. OK GNU C++17 (64) TESTS 23 93 2150400
118441180 weijieer D June 4, 2021, 4:44 p.m. OK GNU C++17 (64) TESTS 19 93 2150400
118441933 lolzzz D June 4, 2021, 4:49 p.m. OK GNU C++17 (64) TESTS 19 93 2150400
118448583 Mostafa_Moharram D June 4, 2021, 5:57 p.m. OK GNU C++17 (64) TESTS 19 93 2355200
118451885 msatanzeel D June 4, 2021, 6:46 p.m. OK GNU C++17 (64) TESTS 19 93 2355200
118452234 AnonySharma D June 4, 2021, 6:51 p.m. OK GNU C++17 (64) TESTS 19 93 3174400
118452111 AnhonySharma D June 4, 2021, 6:49 p.m. OK GNU C++17 (64) TESTS 19 93 3174400
118444111 Airflow D June 4, 2021, 5:06 p.m. OK Haskell TESTS 19 1013 82022400
118445870 DevanshJ D June 4, 2021, 5:24 p.m. OK Java 11 TESTS 19 218 0
118470308 zoro_hiyori D June 5, 2021, 4:43 a.m. OK Java 11 TESTS 23 311 0
118455740 ricebox D June 4, 2021, 7:55 p.m. OK Java 11 TESTS 23 311 6041600
118456665 ak_ankit D June 4, 2021, 8:18 p.m. OK Java 11 TESTS 23 327 0
118455903 nitesh.dtu D June 4, 2021, 7:58 p.m. OK Java 11 TESTS 23 327 0
118458041 saurabh_kl D June 4, 2021, 9:01 p.m. OK Java 11 TESTS 23 342 0
118470763 zoro_hiyori D June 5, 2021, 4:51 a.m. OK Java 11 TESTS 23 342 0
118451613 SaberXpro D June 4, 2021, 6:41 p.m. OK Java 11 TESTS 19 358 0
118464397 pikachu_pika_pika D June 5, 2021, 2:17 a.m. OK Java 11 TESTS 23 358 4915200
118441594 pili D June 4, 2021, 4:46 p.m. OK Java 11 TESTS 19 373 6144000
118445733 naitikvarshney D June 4, 2021, 5:22 p.m. OK Java 8 TESTS 19 202 0
118470997 NerfThis D June 5, 2021, 4:56 a.m. OK Java 8 TESTS 23 202 1433600
118435532 LiandrysAnguish D June 4, 2021, 4:24 p.m. OK Java 8 TESTS 19 217 0
118459696 bubnov D June 4, 2021, 10:04 p.m. OK Java 8 TESTS 23 233 0
118449161 Dstoical D June 4, 2021, 6:05 p.m. OK Java 8 TESTS 19 233 0
118453311 aryan_rn D June 4, 2021, 7:10 p.m. OK Java 8 TESTS 19 233 3276800
118432959 kkkkush D June 4, 2021, 4:17 p.m. OK Java 8 TESTS 19 249 0
118434414 gagan_6730 D June 4, 2021, 4:21 p.m. OK Java 8 TESTS 19 249 21504000
118435359 Abdallah_Ragab00 D June 4, 2021, 4:24 p.m. OK Java 8 TESTS 19 264 0
118444045 aggarwalanshul01 D June 4, 2021, 5:05 p.m. OK Java 8 TESTS 19 265 0
118438334 ermolmak D June 4, 2021, 4:32 p.m. OK Kotlin TESTS 19 311 0
118460142 Potassium D June 4, 2021, 10:26 p.m. OK Kotlin TESTS 23 1887 512000
118473856 Potassium D June 5, 2021, 5:43 a.m. OK Kotlin TESTS 23 1933 512000
118434837 BIT D June 4, 2021, 4:22 p.m. OK Mono C# TESTS 19 1434 18022400
118466935 icecomet D June 5, 2021, 3:24 a.m. OK MS C++ 2017 TESTS 23 186 98508800
118439957 kim_young_hyun D June 4, 2021, 4:37 p.m. OK MS C++ 2017 TESTS 19 343 24166400
118433182 jonitox D June 4, 2021, 4:17 p.m. OK MS C++ 2017 TESTS 19 545 16998400
118470948 adasanvin12345 D June 5, 2021, 4:55 a.m. OK MS C++ 2017 TESTS 23 1045 10956800
118437283 dino_merlin D June 4, 2021, 4:29 p.m. OK MS C++ 2017 TESTS 19 1184 24985600
118438526 addabis D June 4, 2021, 4:32 p.m. OK .NET Core C# TESTS 19 1496 10137600
118439577 imalaniuk D June 4, 2021, 4:34 p.m. OK Node.js TESTS 19 1949 35123200
118454712 rivnam D June 4, 2021, 7:39 p.m. OK PyPy 3 TESTS 23 467 20275200
118445215 jaglike_makkar D June 4, 2021, 5:16 p.m. OK PyPy 3 TESTS 19 499 22323200
118470867 uttharapally.chandra D June 5, 2021, 4:53 a.m. OK PyPy 3 TESTS 23 514 25395200
118455099 rivnam D June 4, 2021, 7:47 p.m. OK PyPy 3 TESTS 23 530 20377600
118449882 peakyfuckingblinder D June 4, 2021, 6:15 p.m. OK PyPy 3 TESTS 19 607 33382400
118447010 The_Apurv_Rathore D June 4, 2021, 5:37 p.m. OK PyPy 3 TESTS 19 608 20787200
118446905 TheNoOneCoder D June 4, 2021, 5:36 p.m. OK PyPy 3 TESTS 19 608 20787200
118451499 silvertint D June 4, 2021, 6:39 p.m. OK PyPy 3 TESTS 19 686 19456000
118474495 sh1194 D June 5, 2021, 5:53 a.m. OK PyPy 3 TESTS 23 732 19353600
118435047 prd_xxx D June 4, 2021, 4:23 p.m. OK PyPy 3 TESTS 19 748 44748800
118439179 olliep D June 4, 2021, 4:34 p.m. OK Python 3 TESTS 19 1965 2969600
118436990 aditya.pusalkar D June 4, 2021, 4:28 p.m. OK Python 3 + libs TESTS 19 1622 0
118463369 nikgaevoy D June 5, 2021, 1:38 a.m. OK Rust TESTS 23 1981 3891200

remove filters

Back to search problems