Ticket 4259
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
10267 27192 19490 3075 29068 4161 13176 19168 16284 11560 
Expected Output
14 12 14 14 13 15 12 10 13 12
Generator Parameters
--n_high 10 --n_low 10 --val_high 32767 --val_low 0