Ticket 5315
Problem 1635 -d
Submission 154071173
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
28 18
5239043 6012802 55368146 58188310 127775555 136659340 166751931 196917861 211292010 251385274 273058338 295439288 308350652 374305678 414560846 415147221 426119429 428435361 452077902 520413037 526585933 559793500 632087668 667747488 710476033 721810649 767935783 863508912 
Expected Output
0
Your Output
4215466
Difference
Generator Parameters
--n_high 50 --n_low 1 --p_high 50 --p_low 1 --val_high 1000000000 --val_low 1