Ticket 7367
Problem 1684 -f
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
1
35 44
55 75 80 14 5 83 20 6 26 43 70 51 5 80 51 53 65 23 54 78 2 59 81 6 69 34 39 11 66 76 51 66 63 64 95 
6 12
6 15
6 8
22 31
28 29
18 27
26 29
15 23
15 18
14 22
2 29
3 24
32 33
15 31
14 24
9 10
32 32
2 22
33 35
12 34
10 22
16 18
2 15
19 28
22 35
34 35
16 34
21 35
6 22
22 24
4 34
15 33
9 24
22 35
6 22
1 14
25 29
9 27
16 22
1 8
28 32
3 11
2 16
16 27
Expected Output
18
Generator Parameters
--m_high 100 --m_low 1 --n_high 100 --n_low 1 --t_high 2 --t_low 1 --val_high 100 --val_low 1