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