Ticket 16490
Problem 1733 -d2
Submission 182959627
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
10 2 9
0000011111
1110011110
10 7 9
1110011111
1010011101
Expected Output
11
9
Your Output
11
18
Difference
Generator Parameters
--n_high 10 --n_low 10 --t_high 2 --t_low 1 --x_high 9 --x_low 1 --y_high 9 --y_low 1