Ticket 6973
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
6 6
111111010111111110111111010101111110
6 7
111010110100111011001000000001101100001111
Expected Output
2 3 4 5 6 7 8 8 8 8 8 8 9 9 9 9 9 9 10 10 10 10 10 10 11 11 11 11 11 11 12 12 12 12 12 12
2 3 4 4 5 5 6 7 7 7 7 7 8 8 9 9 9 10 10 10 10 11 11 11 11 11 11 10 11 12 12 12 12 12 11 12 13 13 13 13 13 12
Your Output
2 3 4 5 6 7 8 8 8 8 8 8 9 9 9 9 9 9 10 10 10 10 10 10 11 11 11 11 11 11 12 12 12 12 12 12 
2 3 4 4 5 5 6 7 7 7 7 7 8 8 9 9 9 10 10 10 10 11 11 11 10 10 10 10 11 12 12 11 11 11 11 12 13 13 12 12 12 12 
Difference
Generator Parameters
--row_or_col_high 7 --row_or_col_low 6 --t_high 2 --t_low 1