Ticket 15971
Problem 1679 -b
Submission 166724744
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
4 12
8 1 5 4 
2 9
2 4
2 8
1 1 5
2 2
2 5
1 4 5
1 4 7
2 5
1 4 5
1 1 2
2 2
Expected Output
36
16
32
29
8
20
20
22
20
20
17
8
Your Output
36
16
32
29
8
20
20
22
20
18
20
8
Difference
Generator Parameters
--n_high 9 --n_low 1 --q_high 15 --q_low 1 --val_high 9 --val_low 1 --x_high 9 --x_low 1