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