Ticket 3762
Problem 1665 -c
Submission 153058630
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
2
9
5 5 6 1 5 6 5 8 
9
1 2 2 1 1 2 2 2 
Expected Output
5
4
Your Output
5
5
Difference
55
45
Generator Parameters
--n_high 9 --n_low 9 --t_high 2 --t_low 2