Ticket 1741
Problem 1646 -c
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
1
897263133716
Expected Output
14
Generator Parameters
--n_cap 1000000000000 --n_high 1000000000000 --n_low 500000000000 --t_cap 100 --t_high 1 --t_low 1