#D2821. Animal Companion in Maze
Animal Companion in Maze
Animal Companion in Maze
Example
Input
2 1 1 2 2
Output
1
inputFormat
Input
2 1 1 2 2
outputFormat
Output
1
样例
2 1
1 2 2
1
Example
Input
2 1 1 2 2
Output
1
Input
2 1 1 2 2
Output
1
2 1
1 2 2
1
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.