Ticket 1312
Problem 1644 -d
Submission 148762779
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
6
8 5 9 6
4 2
6 2
5 4
3 1
7 3
8 2
2 8 3 6
2 5
2 6
1 7
2 6
2 8
1 3
6 8 7 3
2 4
2 6
1 8
1 8 7 2
1 2
1 8
3 3 6 6
1 3
2 3
2 3
3 1
1 2
3 3
1 4 1 6
1 4
1 2
1 4
1 1
1 1
1 4
Expected Output
531441
9
343
7
216
1
Your Output
531441
243
343
7
1296
1
Difference
Generator Parameters
--k_cap 200000 --k_high 10 --k_low 1 --m_cap 200000 --m_high 10 --m_low 1 --n_cap 200000 --n_high 10 --n_low 1 --q_cap 200000 --q_high 6 --q_low 1 --t_cap 10000 --t_high 10 --t_low 1