Ticket 12898
Problem 1695 -a
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
1
3 3
-15 11 10 
-9 9 -11 
6 -25 -19 
Expected Output
6
Generator Parameters
--row_or_col_high 5 --row_or_col_low 1 --t_high 2 --t_low 1 --val_high 30 --val_low -30