Ticket 6708
Problem 1629 -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
5
2 1 1 1 1 
Expected Output
5
0 0 0 0 0
Generator Parameters
1222223333333333333333333333333333333333333333333333313