Ticket 13883
Problem 1681 -f
Submission 161447770
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
36
Difference
Generator Parameters
--n_high 9 --n_low 2