Ticket 2492
Problem 1657 -b
Submission 150675311
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
8
12 699 54 309
3 29 878 623
16 564 381 478
20 669 449 529
18 447 746 559
5 933 661 464
20 400 650 956
9 171 974 777
Expected Output
4212
-2237
1994
3336
-2934
2040
-8040
-6949
Your Output
4212
-2237
1994
3336
-2934
2040
-8040
-10451
Difference
Generator Parameters
--n_cap 200000 --n_high 20 --n_low 1 --t_cap 10000 --t_high 10 --t_low 1 --val_cap 1000000000 --val_high 1000 --val_low 1