Ticket 11676
Problem 1681 -f
Submission 159992732
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
8
2 1 4
2 4 1
8 5 3
2 7 5
6 1 1
7 3 3
5 3 7
Expected Output
64
Your Output
52
Difference
Generator Parameters
--n_high 10 --n_low 2