Ticket 6788
Problem 1678 -e
Submission 156365411
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
9 3 7 1 2 8 5 6 4 
8 1 6 5 9 2 3 4 7 
8
6 5 8 1 2 4 7 3 
2 5 4 8 3 1 6 7 
Expected Output
36
30
Your Output
34
30
Difference
Generator Parameters
--n_high 10 --n_low 1 --t_high 2 --t_low 1