Ticket 4412
Problem 1661 -a
Submission 153272765
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
2
21
591425095 989706251 935614110 599623422 671950872 707929968 497475740 82181562 903010164 267671301 719385216 892416715 310269201 390398449 17867978 586198138 169411278 882347453 680425771 632894192 136060797 
56292237 875580618 979006800 477816792 107694296 188071939 730715274 561712239 637482869 980051782 253850103 470590661 659881363 246020725 819246544 577066937 748889159 688770397 185548629 943895032 511544928 
5
133349144 751503086 283116290 980599656 495677818 
620548798 492644189 436868767 81258497 360860337 
Expected Output
11352630695
2524523911
Your Output
11696404375
2780333129
Difference
Generator Parameters
--n_high 25 --n_low 2 --t_high 2 --t_low 1 --val_high 1000000000 --val_low 1000