Ticket 7208
Problem 1679 -b
Submission 157192323
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 5
4 1 
1 2 8
2 2
1 1 2
1 2 6
1 2 7
Expected Output
12
4
4
8
9
Your Output
12
4
4
8
13
Difference
Generator Parameters
--n_high 4 --n_low 1 --q_high 5 --q_low 1 --val_high 9 --val_low 1 --x_high 9 --x_low 1