Ticket 7197
Problem 1678 -d
Submission 157296481
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
8 8
0000000000000000000000100000000000000000000000000000000000000010
5 4
00000000000010000000
Expected Output
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3
0 0 0 0 0 0 0 0 0 0 0 0 2 2 2 2 2 2 2 2
Your Output
0 0 0 0 0 0 0 -1 -1 -1 -1 -1 -1 -1 -1 -2 -2 -2 -2 -2 -2 -2 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 1 
0 0 0 -1 -1 -1 -1 -2 -2 -2 -2 -3 0 0 0 -1 0 0 0 -1 
Difference
Generator Parameters
--row_or_col_high 9 --row_or_col_low 1 --t_high 2 --t_low 1