Ticket 2226
Problem 1635 -d
Submission 149970561
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 2
4 12 21 31 40 45 54 58 66 78 
Expected Output
0
Your Output

          
Difference
Generator Parameters
--n_cap 200000 --n_high 12 --n_low 1 --p_cap 200000 --p_high 10 --p_low 1 --val_cap 1000000000 --val_high 100 --val_low 1