Ticket 14898
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
250 191
1000100000100000010000011010010010000010100001101101111001111111111000001001110111101001000100011001000001100001110010100111110111110010001110101110011111000011100001111101111101100111110001110001101010001101101011110011010010110101111010010100010110
250 150
0000000011001100111110110010110110111000101001011001101010010001110111001000111001111101111001110100101110000101110011111101010110101101111110100101100110011111111000001111010101000011000011100111001100100001000001111000111100111011110101010001101100
250 47
1010000010100101010101111110110110111011000000101101100001011110011000010100100001101010001011011100011001111000100110110000101000100010010101110010000011101110101111000010011111001001110001101001100010111010100110000000111010001011011101001001111011
250 108
0100110110101010110110011000000110111000100110100011010001100110110101100010010000011011110101111010101011000111000100000010010111000000010000010111111110110111100111001100101010100000101010110001111110000111001101000111011110011010110111111010000010
250 237
1011001110111110011001010000110101101100111001111010111110101011001110010001001010001001001101001000010011111000110111111000110010101011010101101011111101110111000010101110001010100010001101110100011011001110010101111100011011100110110111011101101011
250 144
0000001000001000110101001101000001000011100110110111001001110011101011000110001111001010010110101010111100111101101111010111010100011101010000111111001101101010010011111100100100110010101010111001000110011000011011011111001110011001000111110110010100
250 245
0101110001011110111001011100110011111010110011101001010000001111111101011011000101011110001011010100101100100100101000110101111111110000100000110000100100111110000010011000101110110101110010110110100011101011101101011100011110110100011000111010000001
250 163
1011111101111010100110110011110101000110101111110000111000001100011001101001011001100010111110111100110101100101001110000101111111100010111101110101011010011010011010010110010101001110110111000011111001111101110011010001011011100010011000110100110000
250 194
1111001100100010111111101001000101111100111001000000001111001010110011101110101000010000001010011001010000011001001001011111010111110110101001110000011001010011100010100101011000100011000011110100101100111010100010111010101101100110011010111100001111
250 97
1010111110110010110100001010111011001111000100111001010101000011101001101110000101111110011101010001000111001000100110110000101110100111111000110000100100010001011000001011110010110101010100111000011000111001101001111100100010011110111011110100101101
Expected Output
-1
-1
-1
-1
-1
-1
-1
-1
2
1 3
60 250
-1
Your Output
-1
-1
-1
-1
-1
-1
-1
-1
2
51 237
17 23
-1
Difference
Generator Parameters
--n_high 250 --n_low 250 --t_high 10 --t_low 10