Ticket 511
Problem 1644 -c
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
1
11 7
-1 -7 8 -7 2 -3 4 9 7 -7 -2 
Expected Output
20 27 34 41 48 55 62 69 69 75 75 80
Generator Parameters
--n_cap 5000 --n_high 20 --n_low 1 --t_cap 1 --t_high 1 --t_low 1 --val_cap 100000 --val_floor -100000 --val_high 9 --val_low -9 --x_cap 100000 --x_high 9 --x_low 0