Ticket 12803
Problem 1691 -f
Submission 161020061
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 1
1 3
3 2
Expected Output
17
Your Output
18
Difference
Generator Parameters
--n_high 3 --n_low 3