Ticket 14888
Problem 1658 -f
Submission 162276060
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
236 50
11011110001000011000000000100100101001101001010111101010110101101001000001011111000111111110101101111000010101001111110110010001110011100111100101101110100011110010100100110000110111001101010111100000100011111100001001110100111011110111
211 153
1100011010110101011001011010101011001101110101000010001110000110111101111110100101001100101101001010010000100110010000000011011000000000000110011111100110111100111011001111111101001000011010110000101011100101110
239 117
00110000000100011100100000111101011110111011000100101001001101011011010100010011010001011011110001110100010100000010011010011000111100101101011100101001011000010000001010001110101110101010011100110011111100001010000001010110010010000010100
278 99
01101110001001001110110000101011111011100001000001111101111011110000010000000101110001111110100111011100010101110100101000101101001110100000010011101000001100110010010111101010101011101101111110000010000000011100101001100100001101101110110110111000100111010001110101000001011011
246 128
110111000011100101100100010100000011010011110011001101001100111101110001001011110010010101000010111111110110010001100110011000001101100011010011100111000010101001000010101101000111000101001010111111011010000111011111001100000000010011100010011110
293 247
01000101010100010100111001100111110110001011000010000100010101100100011110110110010110000000010111001010011100101001001100111110010010000100110010000100111111010010001011001011111000110101011101000010001100101101010010110011001100011010001110110100000111011100110111001000001111010001111111010
283 228
0100011110111010100001010001011111010111110101110010110110100001110001001111001001001100011001000110000110011001111000111101010100011110000010100001011111010101010000110001000111000000110011001011111111000001111101101110001000000111111001011011110010011100001000110001010110010100010
201 20
111000000000111110010011101000101011000011000011011011101000010000010001101001000100100000111100001110110000011010110100110010100011000011010101100111100000110101011110011001110100111001100110110010010
262 203
1100101000101101110111001110100010101110001011001001001101101010011000110000011001010011110010010010000011100011101101001100111011011101010110001010010110010101110111101011110100010101111010000100011101011011001011101001000010010001110010010011011000011100001100
276 253
100100010101100010001110011101011011111110010111001011101001100000110010010100111010110111011011010110111111000011110000111101001110111000100001111101110110011100011001000000001010101111111100110011100110101000011110011011101101100001110010011101101000101000010010000011001100
Expected Output
-1
-1
-1
-1
-1
-1
-1
-1
-1
2
1 7
31 276
Your Output
-1
-1
-1
-1
-1
-1
-1
-1
-1
3
2 245
264 268
256 259
Difference
Generator Parameters
--n_high 300 --n_low 200 --t_high 10 --t_low 10