Ticket 3327
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
30
9 17
23 13
6 19
27 11
2 8
3 5
12 30
5 22
24 20
1 5
21 19
6 17
26 23
26 15
4 16
2 30
13 29
15 7
16 10
22 26
12 19
19 16
22 19
5 11
18 11
24 25
16 14
28 13
11 24
Expected Output
19 35
1 1 1 1 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 3 2 1 1 1 1 1 1 1 
Generator Parameters
--n_cap 200000 --n_high 50 --n_low 10