Ticket 6637
Problem 1668 -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
16 12
Expected Output
30
Generator Parameters
--row_or_col_high 20 --row_or_col_low 1 --t_high 10 --t_low 1