Ticket 3074
Problem 1660 -d
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
4
7
10 10 10 10 10 10 10 
8
10 10 10 10 10 10 10 10 
6
10 10 10 10 10 10 
8
10 10 10 10 10 10 10 10 
Expected Output
0 0
0 0
0 0
0 0
Generator Parameters
--n_cap 200000 --n_high 8 --n_low 4 --t_cap 10000 --t_high 4 --t_low 4 --val_cap 2 --val_floor 10 --val_high 10 --val_low 10