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