Ticket 2148
Problem 1631 -a
Submission 149745283
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
4
1 8 9 3 
9 4 3 2 
3
1 1 6 
5 3 9 
Expected Output
36
54
Your Output
9
54
Difference
Generator Parameters
--n_cap 100 --n_high 5 --n_low 1 --t_cap 100 --t_high 2 --t_low 1 --val_cap 10000 --val_high 9 --val_low 1