Ticket 6103
Problem 1671 -c
Submission 155171162
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
2 561466232
449605098 790157723 
2 987499365
885657921 589087671 
Expected Output
111861135
398411695
Your Output
111861135
7537313428
Difference
Generator Parameters
--n_high 2 --n_low 1 --t_high 2 --t_low 1 --val_high 1000000000 --val_low 100000000 --x_high 1000000000 --x_low 100000000