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