Ticket 14900
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
240 143
011101101111100001111000100111110010100101100110101110011110010101001100001111100101010000110011000101100011001100100110110110001101011101001000100011000101110101000111010011011011001001010110011100111110011010110000110110110111110001110001
240 95
101100110001001000101010011101011010011010100010000101000010111010100001011110111000101001001101000101101111011011100011011011001001111000111100111001101110101001110111000110001010010000000110100011010001011001111100110110101100010100100010
240 239
001010010000001111000011110000101100010001110111100000100010011000111001101111111101010100000000110011000110010101111000011001000100100111100011011000100101110101111011011111001100111101101000011111110000111101100111101100110001110100111110
240 2
100110011010101000000101001010010100101110110001101010001000111001000111011000110111111110111101001110000011100010001011100000011011010010101010100110111110101101001100101111101101010111110111011011100101101011001111001110110111110000110101
240 168
110110011111001100111100010001000110100111100110000000010010100011100111001000101100110100100011001101011110011110111111010011110110100100000111011110010100110010100001111111001000101000010100100000101100011000000011100001010001101111111100
240 15
000110001110000010110011100010100011011010101010101011111101111001001110000101010111110011001111100011010111111100000111110110100101010010000110011001000101100110011111100010100000001110110110010100111110101110101011000111000101000011001111
240 198
101110111101000111111000010001101001101100011000001101000100010011101110011010101110011110111001100001100011111100001011000010000000101001100000011011011111000101000100010101010101000011100101110011111100111101110100110000101101100101101011
240 3
001101111000100110101011000011000101101010100000011011000000110000111010100001011110110111011101001001010111111000011100100100101000011010001011000011010100111010011100010111010001010100110110000110000000111001101111110100110110100000010001
240 7
100001111010101000110000011001110011111100100011100000000101011010101001001011100001111010110011101001000101001110111011001001011111000101000111111101000111110100110100101110011001010110100011110011011110101011011110111110111010111001010000
240 224
001110110100000001010011010001100111101001000101101110100111000010111000111110001110000100010111110000111100001011010101001001010101110100010110100000001101010001100010010011011001011100011101111011010010101001110000110001001100000011011010
Expected Output
-1
-1
-1
-1
-1
-1
2
1 5
48 240
-1
-1
-1
Your Output
-1
-1
-1
-1
-1
-1
2
26 218
16 20
-1
-1
-1
Difference
Generator Parameters
--n_high 240 --n_low 240 --t_high 10 --t_low 10