Ticket 16690
Problem 1661 -c
Submission 188675542
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
8 5 
5
2 3 8 2 1 
4
5 2 1 9 
7
1 9 1 5 4 4 7 
2
3 1 
2
1 7 
5
9 6 4 6 1 
8
3 5 9 3 7 2 9 2 
5
5 5 6 5 5 
9
5 6 1 7 2 9 1 6 1 
Expected Output
2
16
13
22
2
4
13
22
6
29
Your Output
2
16
13
22
2
4
13
22
7
29
Difference
Generator Parameters
--h_high 9 --h_low 1 --n_high 9 --n_low 1 --t_high 10 --t_low 1