Ticket 7193
Problem 1678 -d
Submission 157293370
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
2
9 8
001000000000000000001100001000000000100001100000001001000000000000000000
3 8
011010000000001101001000
Expected Output
0 0 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 4 5 5 5 5 5 5 5 6 6 6 6 6 6 5 5 7 7 7 7 7 8 7 7 9 9 9 9 9 9 8 8 10 10 10 10 10 10 9 9 11 10 10 10 10 10 9 9 11 10 10 10
0 2 3 3 4 4 4 4 4 5 5 5 4 4 6 7 7 8 8 8 7 7 8 8
Your Output
0 0 2 2 2 2 2 2 1 1 2 2 2 2 3 3 2 2 3 3 4 5 6 6 5 5 6 6 5 5 7 7 6 6 7 7 6 6 8 8 7 8 9 9 8 8 10 10 9 9 10 10 9 9 11 10 9 9 10 10 9 9 11 10 9 9 10 10 9 9 11 10 
0 2 3 3 4 4 4 4 4 5 5 5 5 5 6 7 7 8 8 8 8 8 7 7 
Difference
Generator Parameters
--row_or_col_high 9 --row_or_col_low 1 --t_high 2 --t_low 1