Ticket 392
Problem 1539 -d
Submission 146339526
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 4
5 4
Expected Output
13
Your Output
16
Difference
Generator Parameters
--n_cap 100000 --n_high 3 --n_low 1 --val_cap 100000000000000 --val_high 5 --val_low 1