Ticket 3331
Problem 1646 -d
Submission 152512559
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
10
9 5
2 3
10 9
7 4
2 10
1 6
10 1
4 8
6 7
Expected Output
5 12
2 1 1 1 1 1 2 1 1 1 
Your Output
5 13
1 1 1 1 1 1 2 1 1 3 
Difference
Generator Parameters
--n_cap 200000 --n_high 10 --n_low 10