Ticket 10775
Problem 1633 -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
10
1 5
144 
5 
3 11
8 772 9 
3 8 4 
3 1
716 92 571 
8 6 1 
3 3
373 466 583 
5 9 4 
3 10
179 578 913 
3 4 7 
2 7
89 370 
4 9 
3 2
251 968 644 
6 9 6 
1 2
950 
3 
2 9
43 157 
5 7 
3 8
895 802 394 
2 8 3 
Expected Output
0
8
0
0
3
0
0
0
7
0
Generator Parameters
--b_high 1000 --b_low 1 --c_high 9 --c_low 1 --k_high 12 --k_low 1 --n_high 3 --n_low 1 --t_high 10 --t_low 1