Ticket 8718
Problem 1637 -f
Submission 158869264
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
5
7 7 3 1 9 
5 3
3 2
1 2
3 4
Expected Output
19
Your Output
9
Difference
Generator Parameters
--h_high 9 --h_low 1 --n_high 7 --n_low 2