Ticket 9959
Problem 1665 -c
Submission 159244536
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
8
7 8 6 2 1 6 4 
13
8 7 12 11 4 9 9 13 7 4 8 1 
14
5 5 5 12 12 8 12 11 12 1 11 3 10 
7
1 2 1 2 2 1 
4
1 2 2 
Expected Output
7
9
8
4
3
Your Output
7
9
8
3
3
Difference
Generator Parameters
--WA_ON_TC_20 0 --n_high 15 --n_low 2 --t_high 5 --t_low 1