Ticket 14191
Problem 1658 -f
Submission 161609400
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
10
11 4
00010101111
11 8
11101001111
11 9
11100100100
13 11
1100001011100
12 1
001010010011
14 10
00011110111000
13 9
1011110111100
12 12
100101111000
15 2
010000111011111
13 8
0101011011011
Expected Output
-1
-1
-1
-1
-1
2
1 1
6 14
-1
1
1 12
-1
-1
Your Output
-1
-1
-1
-1
-1
3
1 9
12 12
-1
1
1 12
-1
-1
Difference
Generator Parameters
--n_high 15 --n_low 10 --t_high 10 --t_low 10