CodeTON Round 7 (Div. 1 + Div. 2, Rated, Prizes!)

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
1896 CodeTON Round 7 (Div. 1 + Div. 2, Rated, Prizes!) FINISHED False 9000 36256163 Nov. 25, 2023, 2:50 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 109 ) H2 Cyclic Hamming (Hard Version) PROGRAMMING dp fft math number theory

B"This is the hard version of the problem. The only difference between the two versions is the constraint on k . You can make hacks only if all versions of the problem are solved. In this statement, all strings are 0 -indexed. For two strings a , b of the same length p , we define the following definitions: You are given two binary strings s and t of length 2^{k+1} each. Both strings may contain missing characters (denoted by the character '?'). Your task is to count the number of ways to replace the missing characters in both strings with the characters '0' or '1' such that: As the result can be very large, you should print the value modulo 998 ,244 ,353 . The first line of the input contains a single integer k ( 1 <= k <= 12 ). The second line of the input contains string s of size 2^{k+1} , consisting of the characters '0', '1' and '?'. The third line of the input contains string t of size 2^{k+1} , consisting of the characters '0', '1' and '?'. It is guaranteed that both strings s and t contains no more than 2^k character '0' or '1'. Print a single integer -- the answer to the problem modulo 998 ,244 ,353 . In the first example, we can check that the condition h(s, c) ge 2^k for all cyclic shift c of t is satisfied. In particular: In the second example, there exists a cycle shift c of t such that h(s, c) < 2^k (in particular, c = mathtt{0011} , and h(s, c) = h( mathtt{0011}, mathtt{0011}) = 0 ). In the third example, there are 2 possible ways to recover the missing characters: In the fourth example, there are 3 possible ways to recover the missing characters: "...

Tutorials

CodeTON Round 7 (Div. 1 + Div. 2, Rated, Prizes!) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
234296876 rainboy H2 Nov. 25, 2023, 4:38 p.m. OK GNU C++17 (64) TESTS 142 374 1024000
234313145 amiya H2 Nov. 25, 2023, 5:52 p.m. OK GNU C++17 (64) TESTS 142 1497 159027200
234308430 amiya H2 Nov. 25, 2023, 5:17 p.m. OK GNU C++17 (64) TESTS 142 1949 158924800
234316807 ecnerwala H2 Nov. 25, 2023, 6:15 p.m. OK GNU C++20 (64) TESTS 142 249 1740800
234305435 Radewoosh H2 Nov. 25, 2023, 5:08 p.m. OK GNU C++20 (64) TESTS 142 499 54067200
234293989 ecnerwala H2 Nov. 25, 2023, 4:28 p.m. OK GNU C++20 (64) TESTS 142 530 1843200
234358132 Slamaa H2 Nov. 26, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 142 624 85811200
234307453 maroonrk H2 Nov. 25, 2023, 5:14 p.m. OK GNU C++20 (64) TESTS 142 654 85811200
234317754 A_G H2 Nov. 25, 2023, 6:24 p.m. OK GNU C++20 (64) TESTS 142 670 1740800
234324898 Benq H2 Nov. 25, 2023, 7:42 p.m. OK GNU C++20 (64) TESTS 142 780 3584000
234348461 244mhq H2 Nov. 26, 2023, 3:19 a.m. OK GNU C++20 (64) TESTS 142 1169 37171200
234317500 A_G H2 Nov. 25, 2023, 6:22 p.m. OK GNU C++20 (64) TESTS 142 1185 1536000
234339225 Sparkle_Twilight H2 Nov. 25, 2023, 11:43 p.m. OK GNU C++20 (64) TESTS 142 1232 1536000
234324288 arvindf232 H2 Nov. 25, 2023, 7:35 p.m. OK Kotlin 1.7 TESTS 142 1278 71270400

remove filters

Back to search problems