Ticket 17193
Problem 1721 -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
7
3 4 6 7 7 7 9 
7 7 8 10 10 13 15 
Expected Output
4 3 1 0 0 0 1
12 11 9 8 8 8 6
Generator Parameters
--a_i_high 9 --a_i_low 1 --hidden_di_high 9 --hidden_di_low 0 --n_high 9 --n_low 1 --t_high 2 --t_low 1