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