Ticket 4414
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
10
445 531 858 40 12 866 778 54 4 421 
569 201 696 366 443 92 169 499 12 583 
4
340 25 988 621 
511 564 579 397 
Expected Output
4944
1895
Your Output
4944
1979
Difference
Generator Parameters
--n_high 10 --n_low 2 --t_high 2 --t_low 1 --val_high 1000 --val_low 1