Ticket 6756
Problem 1678 -e
Submission 156354837
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
6 4 7 1 2 8 5 9 3 
6 8 2 4 9 5 1 3 7 
8
7 3 4 2 1 6 8 5 
4 8 3 7 5 1 2 6 
Expected Output
40
30
Your Output
40
28
Difference
Generator Parameters
--n_high 9 --n_low 1 --t_high 2 --t_low 1