Educational Codeforces Round 127 (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
1671 Educational Codeforces Round 127 (Rated for Div. 2) FINISHED False 7200 86628263 April 22, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2798 ) E Preorder PROGRAMMING combinatorics divide and conquer dp ds hashing trees

B"You are given a rooted tree of 2^n - 1 vertices. Every vertex of this tree has either 0 children, or 2 children. All leaves of this tree have the same distance from the root, and for every non-leaf vertex, one of its children is the left one, and the other child is the right one. Formally, you are given a perfect binary tree. The vertices of the tree are numbered in the following order: Every vertex of the tree has a letter written on it, either A or B. Let's define the character on the vertex x as s_x . Let the preorder string of some vertex x be defined in the following way: The preorder string of the tree is the preorder string of its root. Now, for the problem itself... You have to calculate the number of different strings that can be obtained as the preorder string of the given tree, if you are allowed to perform the following operation any number of times before constructing the preorder string of the tree: The first line contains one integer n ( 2 <= n <= 18 ). The second line contains a sequence of 2^n-1 characters s_1, s_2, ... , s_{2^n-1} . Each character is either A or B. The characters are not separated by spaces or anything else. Print one integer -- the number of different strings that can be obtained as the preorder string of the given tree, if you can apply any number of operations described in the statement. Since it can be very large, print it modulo 998244353 . "...

Tutorials

102181

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
154603603 NewSaeed E April 22, 2022, 11:21 p.m. OK GNU C++14 TESTS 58 15 3174400
154612542 duoluoluo E April 23, 2022, 3:28 a.m. OK GNU C++14 TESTS 58 15 3891200
154864817 Solitary_Walker E April 24, 2022, 2:54 p.m. OK GNU C++14 TESTS 61 15 11059200
154826775 akaman123 E April 24, 2022, 8:31 a.m. OK GNU C++14 TESTS 61 30 1228800
154865782 ErwinSchrodingersCat E April 24, 2022, 3:05 p.m. OK GNU C++14 TESTS 61 30 1228800
154606225 TheDeliverator E April 23, 2022, 12:51 a.m. OK GNU C++14 TESTS 58 30 1638400
154623007 hk_shenoy E April 23, 2022, 6:18 a.m. OK GNU C++14 TESTS 58 30 1638400
154656223 _pai E April 23, 2022, 12:33 p.m. OK GNU C++14 TESTS 58 30 3379200
154677463 turni E April 23, 2022, 1:10 p.m. OK GNU C++14 TESTS 58 30 11264000
154652000 Write_Hape_Code E April 23, 2022, 11:44 a.m. OK GNU C++14 TESTS 58 30 25088000
154783662 arun_kaluva11 E April 23, 2022, 7:23 p.m. OK GNU C++17 TESTS 58 15 1228800
154622507 izlyforever E April 23, 2022, 6:13 a.m. OK GNU C++17 TESTS 58 15 1843200
154633660 Thrasio E April 23, 2022, 8:22 a.m. OK GNU C++17 TESTS 58 30 1228800
154601582 1.618033 E April 22, 2022, 10:17 p.m. OK GNU C++17 TESTS 58 30 1228800
154603417 rajkon E April 22, 2022, 11:15 p.m. OK GNU C++17 TESTS 58 30 1638400
154646882 ayush567 E April 23, 2022, 10:46 a.m. OK GNU C++17 TESTS 58 30 1638400
154606886 bitwim E April 23, 2022, 1:09 a.m. OK GNU C++17 TESTS 58 30 1638400
154606665 mohamedelsadek E April 23, 2022, 1:04 a.m. OK GNU C++17 TESTS 58 30 1638400
154584315 perchuts E April 22, 2022, 5:43 p.m. OK GNU C++17 TESTS 58 30 1638400
154597569 Blue_EyesWhiteDragon E April 22, 2022, 8:55 p.m. OK GNU C++17 TESTS 58 30 1843200
154652438 XZC__Bobby E April 23, 2022, 11:49 a.m. OK GNU C++17 (64) TESTS 58 15 307200
154629711 kal013 E April 23, 2022, 7:32 a.m. OK GNU C++17 (64) TESTS 58 15 1433600
154583911 Kyooma E April 22, 2022, 5:38 p.m. OK GNU C++17 (64) TESTS 58 15 1433600
154583783 clam E April 22, 2022, 5:36 p.m. OK GNU C++17 (64) TESTS 58 15 3174400
154622472 1127193030 E April 23, 2022, 6:12 a.m. OK GNU C++17 (64) TESTS 58 15 4505600
154618256 SaeedSabbagh E April 23, 2022, 5:16 a.m. OK GNU C++17 (64) TESTS 58 15 7372800
154618208 alocytus E April 23, 2022, 5:16 a.m. OK GNU C++17 (64) TESTS 58 15 9420800
154611142 gqf123 E April 23, 2022, 2:56 a.m. OK GNU C++17 (64) TESTS 58 30 1228800
154829029 Muly E April 24, 2022, 8:53 a.m. OK GNU C++17 (64) TESTS 61 30 3174400
154640834 The_Berserker E April 23, 2022, 9:39 a.m. OK GNU C++17 (64) TESTS 58 30 8192000
154603298 Tiagodfs E April 22, 2022, 11:11 p.m. OK GNU C++20 (64) TESTS 58 15 1024000
154603327 Tiagodfs E April 22, 2022, 11:12 p.m. OK GNU C++20 (64) TESTS 58 15 1024000
154603291 Tiagodfs E April 22, 2022, 11:11 p.m. OK GNU C++20 (64) TESTS 58 15 1024000
154603250 Tiagodfs E April 22, 2022, 11:09 p.m. OK GNU C++20 (64) TESTS 58 15 1126400
154649992 aniket_kundu E April 23, 2022, 11:22 a.m. OK GNU C++20 (64) TESTS 58 15 1331200
154638328 pseong E April 23, 2022, 9:13 a.m. OK GNU C++20 (64) TESTS 58 15 1433600
154784188 Thallium54 E April 23, 2022, 7:31 p.m. OK GNU C++20 (64) TESTS 58 15 1433600
154691390 georgievskiy E April 23, 2022, 1:33 p.m. OK GNU C++20 (64) TESTS 58 15 1433600
154657524 clams E April 23, 2022, 12:39 p.m. OK GNU C++20 (64) TESTS 58 15 1433600
154635719 WAtoAC2001 E April 23, 2022, 8:45 a.m. OK GNU C++20 (64) TESTS 58 15 1433600
154602852 dzhi E April 22, 2022, 10:56 p.m. OK Java 11 TESTS 58 202 2969600
154802424 AhmedZ E April 24, 2022, 2:40 a.m. OK Java 11 TESTS 61 234 0
154587593 dusty.and.rusty E April 22, 2022, 6:24 p.m. OK Java 11 TESTS 58 327 19353600
154596794 warks E April 22, 2022, 8:42 p.m. OK Java 11 TESTS 58 343 19251200
154587438 dusty.and.rusty E April 22, 2022, 6:22 p.m. OK Java 11 TESTS 58 389 16691200
154866555 profchi E April 24, 2022, 3:14 p.m. OK Java 11 TESTS 61 404 28160000
154584237 dusty.and.rusty E April 22, 2022, 5:42 p.m. OK Java 11 TESTS 58 421 34201600
154606772 ziduoyi E April 23, 2022, 1:07 a.m. OK Java 8 TESTS 58 124 0
154596153 ywjylx E April 22, 2022, 8:33 p.m. OK Java 8 TESTS 58 170 0
154691664 SecondThread E April 23, 2022, 1:36 p.m. OK Java 8 TESTS 58 280 82636800
154586152 paparwinthai E April 22, 2022, 6:06 p.m. OK Kotlin 1.6 TESTS 58 327 5734400
154775717 sweetMilk E April 23, 2022, 5:45 p.m. OK MS C++ 2017 TESTS 58 31 1126400
154804942 yuanyuan2048 E April 24, 2022, 3:36 a.m. OK MS C++ 2017 TESTS 61 46 29900800
154615697 setsuna_suki E April 23, 2022, 4:34 a.m. OK MS C++ 2017 TESTS 58 62 37580800
154863076 Liswiera E April 24, 2022, 2:36 p.m. OK .NET Core C# TESTS 61 405 30720000
154822024 lemiao12 E April 24, 2022, 7:38 a.m. OK PyPy 3 TESTS 61 109 14745600
154593142 eepsilon E April 22, 2022, 7:47 p.m. OK PyPy 3 TESTS 58 171 16896000
154597572 codicon E April 22, 2022, 8:55 p.m. OK PyPy 3 TESTS 58 186 8294400
154625948 hxu10 E April 23, 2022, 6:49 a.m. OK PyPy 3 TESTS 58 249 16076800
154623101 hxu10 E April 23, 2022, 6:19 a.m. OK PyPy 3 TESTS 58 280 16076800
154605067 hxu10 E April 23, 2022, 12:11 a.m. OK PyPy 3 TESTS 58 296 16076800
154690904 3juhwan E April 23, 2022, 1:26 p.m. OK PyPy 3 TESTS 58 389 9830400
154623272 3juhwan E April 23, 2022, 6:20 a.m. OK PyPy 3 TESTS 58 389 9830400
154611275 xuanji E April 23, 2022, 2:59 a.m. OK PyPy 3 TESTS 58 405 37580800
154834708 nicku123 E April 24, 2022, 9:57 a.m. OK PyPy 3-64 TESTS 61 140 10240000
154589253 conqueror_of_tourist E April 22, 2022, 6:47 p.m. OK PyPy 3-64 TESTS 58 140 10240000
154622660 oadey89 E April 23, 2022, 6:14 a.m. OK PyPy 3-64 TESTS 58 140 10649600
154642433 niumeng E April 23, 2022, 9:56 a.m. OK PyPy 3-64 TESTS 58 233 10752000
154617676 xxh1999 E April 23, 2022, 5:08 a.m. OK PyPy 3-64 TESTS 58 280 13312000
154863138 shy3205 E April 24, 2022, 2:36 p.m. OK PyPy 3-64 TESTS 61 280 160460800
154695740 codingmasterhw E April 23, 2022, 2:08 p.m. OK PyPy 3-64 TESTS 58 343 48128000
154808579 codingmasterhw E April 24, 2022, 4:51 a.m. OK PyPy 3-64 TESTS 61 389 46592000
154593126 jakob99 E April 22, 2022, 7:46 p.m. OK PyPy 3-64 TESTS 58 467 12083200
154806803 Heatz E April 24, 2022, 4:14 a.m. OK PyPy 3-64 TESTS 61 623 64716800
154804465 asmisha E April 24, 2022, 3:25 a.m. OK Python 3 TESTS 61 670 14540800
154808619 codingmasterhw E April 24, 2022, 4:52 a.m. OK Python 3 TESTS 61 842 24576000
154806464 Heatz E April 24, 2022, 4:07 a.m. OK Python 3 TESTS 61 1357 45875200
154629251 toomer E April 23, 2022, 7:26 a.m. OK Rust 2021 TESTS 58 31 3174400
154586747 LittleFall E April 22, 2022, 6:13 p.m. OK Rust 2021 TESTS 58 46 1638400
154587565 46hinat E April 22, 2022, 6:24 p.m. OK Rust 2021 TESTS 58 46 5324800
154596822 warks E April 22, 2022, 8:43 p.m. OK Rust 2021 TESTS 58 62 17715200
154597579 robostac E April 22, 2022, 8:55 p.m. OK Rust 2021 TESTS 58 358 2764800

remove filters

Back to search problems