Ticket 2227
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
18 2
4 12 40 54 92 169 201 366 421 443 445 499 531 569 696 778 858 866 
Expected Output
0
Your Output

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