Ticket 15854
Problem 1708 -d
Submission 164618343
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
23
5
2 3 8 8 8 
7
0 2 3 5 7 8 9 
2
7 8 
8
0 2 3 4 5 8 9 9 
3
0 5 8 
7
0 1 3 5 6 8 8 
3
1 4 6 
7
0 1 1 4 5 7 9 
5
1 1 2 8 9 
2
6 6 
9
0 0 2 2 3 4 5 8 9 
2
2 8 
4
0 5 5 8 
7
0 1 5 6 6 7 9 
4
1 6 7 9 
3
0 2 3 
3
2 4 7 
5
0 4 6 9 9 
4
2 4 5 8 
6
1 1 2 2 4 6 
5
5 6 7 7 8 
8
1 2 4 4 5 8 8 8 
6
0 4 6 7 7 9 
Expected Output
2
1
1
1
2
1
1
1
3
0
1
6
1
1
2
1
1
1
0
1
1
1
1
Your Output
2
1
1
0
2
1
1
0
5
0
0
6
1
0
2
1
1
1
0
1
0
0
0
Difference
Generator Parameters
--n_high 9 --n_low 2 --t_high 23 --t_low 23 --val_high 9 --val_low 0