Ticket 14167
Problem 1679 -b
Submission 161587023
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 15
4 1 7 8 8 3 2 
1 7 2
1 3 6
1 5 7
1 7 9
2 7
1 3 2
2 2
1 1 3
1 7 2
1 2 5
2 3
2 4
1 5 8
2 6
2 5
Expected Output
33
32
31
38
49
44
14
15
15
18
21
28
32
42
35
Your Output
33
32
31
38
49
44
14
15
14
16
21
28
32
42
35
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