Ticket 4884
Problem 1665 -c
Submission 153544385
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
3
18
3 1 1 1 1 3 3 1 3 1 3 1 3 1 3 3 1
6
1 5 6 1 5 
10
5 6 10 4 4 5 4 4 1 
Expected Output
7
4
6
Your Output
6
4
6
Difference
Generator Parameters
--WA_ON_TC_20 1 --n_high 10 --n_low 2 --t_high 5 --t_low 1