Ticket 452
Problem 1631 -b
Submission 146792191
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
18
2
1 1 
8
8 4 2 2 6 4 5 1 
1
1 
6
5 4 5 5 4 5 
3
1 1 2 
1
1 
4
3 1 1 4 
6
2 6 1 4 6 6 
2
2 2 
9
5 1 8 2 2 5 8 1 5 
9
4 4 7 5 7 9 5 4 9 
6
4 5 1 3 1 1 
4
3 4 2 2 
6
3 6 1 2 4 1 
6
3 1 6 5 2 5 
3
2 2 2 
6
3 4 3 3 1 4 
8
1 7 2 1 1 6 1 4 
Expected Output
0
3
0
2
2
0
2
2
0
3
4
2
1
3
2
0
3
3
Your Output
0
3
0
2
2
0
2
2
0
3
4
2
1
3
3
0
3
3
Difference
Generator Parameters
--n_cap 200000 --n_high 10 --n_low 1 --t_cap 20000 --t_high 20 --t_low 1