Ticket 17163
Problem 1901 -e
Submission 1
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
6
-8 -5 8 1 7 9 
5 3
5 1
3 2
4 5
1 6
6
-8 -4 -3 4 2 1 
4 3
2 1
2 3
5 4
4 6
Expected Output
25
6
Your Output
16
7
Difference
Generator Parameters
--ai_high 9 --ai_low -9 --n_high 9 --n_low 2 --t_high 2 --t_low 1