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
( 96 ) H1 Cyclic Hamming (Easy Version) PROGRAMMING divide and conquer dp fft math number theory

B"This is the easy 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 <= 7 ). 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
234305063 zh0ukangyang H1 Nov. 25, 2023, 5:07 p.m. OK GNU C++17 TESTS 67 156 13414400
234303366 hos.lyric H1 Nov. 25, 2023, 5:01 p.m. OK GNU C++17 TESTS 67 483 307200
234297022 rainboy H1 Nov. 25, 2023, 4:39 p.m. OK GNU C++17 (64) TESTS 67 15 1024000
234296832 amiya H1 Nov. 25, 2023, 4:38 p.m. OK GNU C++17 (64) TESTS 67 31 307200
234294076 ecnerwala H1 Nov. 25, 2023, 4:29 p.m. OK GNU C++20 (64) TESTS 67 15 102400
234305336 244mhq H1 Nov. 25, 2023, 5:07 p.m. OK GNU C++20 (64) TESTS 67 46 0
234339226 Sparkle_Twilight H1 Nov. 25, 2023, 11:44 p.m. OK GNU C++20 (64) TESTS 67 46 102400
234292381 A_G H1 Nov. 25, 2023, 4:23 p.m. OK GNU C++20 (64) TESTS 67 46 102400
234323860 Benq H1 Nov. 25, 2023, 7:30 p.m. OK GNU C++20 (64) TESTS 67 62 102400
234304469 maroonrk H1 Nov. 25, 2023, 5:05 p.m. OK GNU C++20 (64) TESTS 67 62 42086400
234300435 Radewoosh H1 Nov. 25, 2023, 4:50 p.m. OK GNU C++20 (64) TESTS 67 77 51404800
234335623 abeker H1 Nov. 25, 2023, 10:20 p.m. OK GNU C++20 (64) TESTS 67 296 102400
234301810 BigYellowDuck H1 Nov. 25, 2023, 4:55 p.m. OK GNU C++20 (64) TESTS 67 1981 102400
234323752 arvindf232 H1 Nov. 25, 2023, 7:29 p.m. OK Kotlin 1.6 TESTS 67 264 614400

remove filters

Back to search problems