Ticket 4919
Problem 1665 -c
Submission 153033872
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
5
3
3 1 
6
3 1 1 4 2 
11
1 9 5 1 5 5 9 1 1 9 
5
1 2 2 3 
18
8 1 5 9 16 10 9 3 9 1 8 2 3 14 8 9 7 
Expected Output
3
5
5
4
11
Your Output
3
5
4
4
11
Difference
Generator Parameters
--WA_ON_TC_20 0 --n_high 20 --n_low 2 --t_high 5 --t_low 1