Ticket 15904
Problem 1705 -d
Submission 165366918
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
8
16
1011110001001100
0001100100111011
3
000
000
20
00000001000100000000
00000110111111000000
20
11100101110100101111
01110101011000111111
10
0000000100
0000000010
8
11111110
11110000
12
111000110110
110000110010
12
101110111111
111111110110
Expected Output
-1
0
8
-1
2
3
2
-1
Your Output
-1
0
4
-1
2
3
0
-1
Difference
Generator Parameters
--answer_exists 0 --n_high 20 --n_low 3 --q_high 10 --q_low 1