Ticket 386
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 12
323 
7 
2 1
761 443 
8 2 
3 12
892 645 24 
9 9 3 
3 1
801 14 184 
4 8 2 
3 12
23 744 263 
3 1 7 
1 6
650 
7 
2 4
400 54 
7 4 
3 11
579 796 206 
6 1 4 
1 3
666 
4 
3 7
306 176 724 
4 2 9 
Expected Output
7
0
9
0
7
0
0
6
0
0
Generator Parameters
--b_cap 1000 --b_high 1000 --b_low 1 --c_cap 1000000 --c_high 9 --c_low 1 --k_cap 1000000 --k_high 12 --k_low 1 --n_cap 1000 --n_high 3 --n_low 1 --t_cap 100 --t_high 10 --t_low 1