Ticket 15808
Problem 1705 -e
Submission 164581658
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
7 5
2 9 9 9 1 8 2 
1 3
4 3
6 2
4 7
7 7
Expected Output
10
10
10
10
10
Your Output
11
11
11
11
12
Difference
Generator Parameters
--l_high 9 --l_low 1 --n_high 9 --n_low 2 --q_high 9 --q_low 1 --val_high 9 --val_low 1