Ticket 393
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
3
2 9
7 4
8 4
Expected Output
21
Your Output
22
Difference
Generator Parameters
--n_cap 100000 --n_high 7 --n_low 1 --val_cap 100000000000000 --val_high 9 --val_low 1