Ticket 4413
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
699 54 309 263 29 878 623 576 564 381 478 960 669 449 529 638 447 746 559 805 933 
661 464 780 400 650 956 709 171 974 777 614 989 946 409 851 962 962 625 882 947 334 
5
165 281 556 950 692 
998 684 682 440 532 
Expected Output
10269
1441
Your Output
10603
1441
Difference
Generator Parameters
--n_high 25 --n_low 2 --t_high 2 --t_low 1 --val_high 1000 --val_low 1