Ticket 2078
Problem 1631 -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
2
7 4
2 7 7 1 6 3 1 
5 3
5 3 4 3 5 
Expected Output
1 7
1 1
2 2
3 3
4 7
3 5
1 1
2 2
3 5
Generator Parameters
--n_cap 200000 --n_high 7 --n_low 1 --t_cap 30000 --t_high 2 --t_low 1