Ticket 16691
Problem 1661 -c
Submission 188676619
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
7
2
8 1 
6
6 4 1 9 4 7 
3
5 6 5 
3
8 4 2 
8
9 8 5 5 3 4 8 6 
1
1 
4
3 9 3 1 
Expected Output
5
16
3
7
16
0
14
Your Output
5
16
4
7
16
0
14
Difference
Generator Parameters
--h_high 9 --h_low 1 --n_high 9 --n_low 1 --t_high 10 --t_low 1