Ticket 7392
Problem 1680 -c
Submission 158281468
View hacks & all small testcases

Unable to dry run this testcase?
Try making a new request with small values of n_high, t_high, *_high, etc.


Retry
Input
17
111111111110100111010111111101111111101111
011111111111111111111111111111111111
00000000000000001000000000000100000000100000000000000000001001100
000000100000011001101000101101001001000000010100000100100011000101000000000000000011000
01110101011111011110010000011
1111110111111101111110111111101111111111111111111111111100110110111111
111111111111111111111111111101001011111111111111111111
0000000010000000010000000000000000000000000001000000010000010000000000000000000100010
10011001000000001100100011101101001010011111000000011000100110101111010001110
00100000
11111111111
1100100000011000010000100000010100000
11111111111111000001111101111111111111111101111111101111111111111111111111111111111111111101011
0101111110111111
111111111111111111111110111111111111111111111111111111111111111111111101111011111111111111111
0010010000100000101010000000101001000010010011001000110
1001001000001010000001101011000010100011010000000000000101010010010010010110000000100111
Expected Output
6
0
3
12
4
7
4
5
17
0
0
6
8
1
3
9
17
Your Output

          
Difference
Generator Parameters
--n_high 100 --n_low 1 --t_high 20 --t_low 1