Ticket 7404
Problem 1681 -f
Submission 158291243
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
7
4 1 2
3 4 1
2 1 6
5 6 5
6 3 5
3 7 5
Expected Output
37
Your Output
38
Difference
Generator Parameters
--n_high 7 --n_low 2