Ticket 3324
Problem 1646 -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
20
14 20
15 20
14 10
11 18
2 5
11 5
12 8
17 16
6 1
16 3
4 16
1 16
9 19
12 16
1 11
19 7
14 1
13 1
14 7
Expected Output
12 21
1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 
Generator Parameters
--n_cap 200000 --n_high 20 --n_low 10