Ticket 2690
Problem 1658 -b
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
283
239
109
233
Expected Output
0
0
0
0
Generator Parameters
--n_cap 1000 --n_high 300 --n_low 1 --t_cap 1000 --t_high 4 --t_low 3