Ticket 6972
Problem 1678 -d
Submission 156860421
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
4 5
01111101011110111111
4 5
01101011000101000001
Expected Output
0 2 3 4 5 6 7 7 7 7 7 8 8 8 8 8 9 9 9 9
0 2 3 3 4 4 5 5 5 5 5 6 6 7 7 7 8 8 7 8
Your Output
0 2 3 4 5 6 7 7 7 7 7 8 8 8 8 8 9 9 9 9 
0 2 3 3 4 4 5 5 5 5 5 6 5 7 7 7 7 6 7 7 
Difference
Generator Parameters
--row_or_col_high 5 --row_or_col_low 4 --t_high 2 --t_low 1