Ticket 13832
Problem 1679 -f
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
4 5
1 3
7 8
5 9
8 9
3 9
Expected Output
8525
Generator Parameters
--m_high 5 --m_low 5 --n_high 4 --n_low 4