Woburn Challenge 1996
Given is an
For example, here is a 4 by 4 grid:
.a.a <-B
..aa
a.a.
A-> ....
Each square can have at most one apple (this includes squares
Input Specification
Your program should read in the size of the grid, 0 0
and have the same format as the one below.
In our example, the input would be
4 4
2 1
2 3
3 3
3 4
4 2
4 4
0 0
Output Specification
Give the number of apples on the path with the most number of them. In this case
5
Comments