Ticket 11678
Problem 1681 -f
Submission 159993207
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
5
5 2 4
5 3 3
5 1 1
4 2 1
Expected Output
16
Your Output
10
Difference
Generator Parameters
--n_high 10 --n_low 2