Ticket 6515
Problem 1668 -a
Submission 155798771
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
8
12 19
14 9
3 9
18 3
16 4
1 18
20 9
9 9
Expected Output
35
25
16
33
30
-1
37
16
Your Output
37
25
16
33
30
-1
37
16
Difference
Generator Parameters
--row_or_col_high 20 --row_or_col_low 1 --t_high 10 --t_low 1