CCC '04 S5 - Super Plumber


Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 256M

Problem type
Allowed languages
C++, Python
Down , Right , Right . For the second case, SP can collect $34.00 with the following sequence: Up , Right , Down .

Sample Input

5 10
..3.......
..........
..7.**....
.9**...1..
..8..9....
2 2
99
88
0 0

Sample Output

27
34

Comments

There are no comments at the moment.