Ticket 15700
Problem 1701 -f
Submission 164231339
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
10 5
6 1 3 2 5 4 3 3 7 4 
Expected Output
0
0
1
4
10
20
10
20
30
16
Your Output
0
0
1
4
10
18
8
18
19
8
Difference
Generator Parameters
--d_high 5 --d_low 1 --q_high 10 --q_low 1 --val_high 10 --val_low 1