Ticket 6639
Problem 1658 -f
Submission 155923401
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
15
15 7
100110100101100
11 1
10101111100
17 2
10101011001110001
20 7
11101110010010001011
19 5
1100100000001101110
15 15
111110111100011
20 11
00110011000011101001
8 8
01001111
15 8
001010101011011
12 3
010010000010
12 9
000011101000
16 2
1001110101011000
10 3
1011110010
10 8
1000110000
1 1
0
Expected Output
-1
-1
-1
-1
-1
1
1 15
-1
1
1 8
-1
-1
2
1 2
6 12
1
1 2
-1
-1
1
1 1
Your Output
-1 
-1 
-1 
-1 
-1 
1 
1 15 
-1 
1 
1 8 
-1 
-1 
1 
1 2 
-1 
-1 
1 
1 1 
Difference
Generator Parameters
--n_high 20 --n_low 1 --t_high 20 --t_low 1