Ticket 1626
Problem 1651 -e
Submission 149189124
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 6
2 5
2 4
1 4
3 5
3 6
Expected Output
43
Your Output
53
Difference
Generator Parameters
--n_cap 1500 --n_high 4 --n_low 2