Ticket 13854
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 4
0 4
6 8
0 6
2 6
Expected Output
8816
Generator Parameters
--m_high 4 --m_low 4 --n_high 4 --n_low 4