Ticket 8837
Problem 1668 -a
Submission 158928270
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
36
25
15
33
30
-1
37
15
Difference
Generator Parameters
--row_or_col_high 20 --row_or_col_low 1 --t_high 10 --t_low 1