Ticket 8827
Problem 1675 -f
Submission 158919552
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
1

9 8
1 5
6 6 7 5 5 8 5 3 
9 1
6 9
2 4
2 9
8 3
9 5
8 9
4 7
Expected Output
14
Your Output
20
Difference
Generator Parameters
--n_high 9 --n_low 1 --t_high 1 --t_low 1