Ticket 5676
Problem 1671 -d
Submission 154575224
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
10
2 9
4 4 
3 9
3 3 1 
4 1
3 5 4 4 
4 8
2 1 4 5 
3 1
4 5 5 
5 6
4 1 4 2 4 
4 6
4 1 2 2 
5 2
2 4 2 5 1 
1 10
2 
3 4
2 5 2 
Expected Output
8
8
5
8
4
12
6
11
9
7
Your Output
8
10
5
8
4
12
7
11
9
7
Difference
Generator Parameters
--n_high 5 --n_low 1 --t_high 10 --t_low 10 --val_high 5 --val_low 1 --x_high 10 --x_low 1