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 |
---|---|---|---|---|---|---|
1930 | think-cell Round 1 | FINISHED | False | 10800 | 28999463 | Feb. 17, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 75 ) | I | Counting Is Fun | PROGRAMMING | combinatorics |
B'You are given a binary ^ dagger pattern p of length n . A binary string q of the same length n is called good if for every i ( 1 <= q i <= q n ), there exist indices l and r such that: Count the number of good binary strings modulo 998 ,244 ,353 . ^ dagger A binary string is a string that only consists of characters mathtt{0} and mathtt{1} . ^ ddagger Character c is a mode of string t of length m if the number of occurrences of c in t is at least lceil frac{m}{2} rceil . For example, mathtt{0} is a mode of mathtt{010} , mathtt{1} is not a mode of mathtt{010} , and both mathtt{0} and mathtt{1} are modes of mathtt{011010} . The first line of input contains a single integer n ( 1 <= n <= 10^5 ) -- the length of the binary string p . The second line of input contains a binary string p of length n consisting of characters 0 and 1. Output the number of good strings modulo 998 ,244 ,353 . In the second example, the good strings are '... |
think-cell Round 1 Editorial |
No solutions yet.