Ticket 4260
Problem 1661 -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
10
9520 2070 5153 29504 21775 4982 17798 16039 31580 21023 
Expected Output
11 14 15 9 12 14 14 13 13 11
Generator Parameters
--n_high 10 --n_low 10 --val_high 32767 --val_low 0