Ticket 17411
Problem 1941 -e
Submission 1
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
2
5 7 4 2
0 0 1 1 0 2 0
0 0 2 2 1 1 0
0 0 2 0 0 0 0
0 0 1 1 2 2 0
0 2 0 1 2 1 0
8 6 6 1
0 4 0 3 1 0
0 2 3 0 3 0
0 3 4 4 5 0
0 1 3 5 3 0
0 5 1 5 4 0
0 0 4 4 4 0
0 5 4 1 0 0
0 4 0 5 0 0
Expected Output
16
49
Your Output
16
47
Difference
Generator Parameters
--depth_high 9 --depth_low 0 --m_high 9 --m_low 3 --n_high 9 --n_low 1 --t_high 2 --t_low 1