Ticket 8843
Problem 1671 -c
Submission 158933102
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
1 5
5 
9 30
3 5 4 1 3 1 4 2 3 
Expected Output
1
73
Your Output
1
-7510460087153174512
Difference
Generator Parameters
--n_high 9 --n_low 1 --t_high 2 --t_low 1 --val_high 9 --val_low 1 --x_high 30 --x_low 1