Ticket 14314
Problem 1665 -c
Submission 161695462
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
10
1 8 9 4 2 2 7 7 6 
10
4 4 8 1 1 8 1 4 8 
9
8 9 9 8 1 4 1 1 
6
5 6 1 6 4 
7
4 7 1 7 4 4 
Expected Output
8
5
5
5
4
Your Output
8
4
5
5
4
Difference
Generator Parameters
--WA_ON_TC_20 0 --n_high 10 --n_low 2 --t_high 5 --t_low 1