Ticket 6791
Problem 1678 -e
Submission 156365571
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
3
1 2 3 
3 1 2 
10
10 7 9 2 6 4 8 1 5 3 
2 3 1 6 10 8 5 7 4 9 
Expected Output
4
48
Your Output
4
47
Difference
Generator Parameters
--n_high 10 --n_low 1 --t_high 2 --t_low 1