Ticket 4247
Problem 1661 -c
Submission 153224817
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
10
5
4 3 1 2 3 
4
1 3 3 4 
3
4 2 1 
2
1 1 
5
1 2 1 3 3 
2
4 1 
2
3 1 
1
2 
1
3 
4
2 4 3 2 
Expected Output
5
5
4
0
4
2
2
0
0
4
Your Output
5
4
4
0
4
2
2
0
0
4
Difference
Generator Parameters
--h_high 4 --h_low 1 --n_high 5 --n_low 1 --t_high 10 --t_low 1