Obstacle Course
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 312 Accepted Submission(s): 187
Problem Description
![](https://i-blog.csdnimg.cn/blog_migrate/173b6719a6a74d33ec92276800765d78.jpeg)
You are working on the team assisting with programming for the Mars rover. To conserve energy, the rover needs to find optimal paths across the rugged terrain to get from its starting location to its final location. The following is the first approximation for the problem.
![](https://i-blog.csdnimg.cn/blog_migrate/2959635e73c517744d0ca0634f4c5257.jpeg)
N * N square matrices contain the expenses for traversing each individual cell. For each of them, your task is to find the minimum-cost traversal from the top left cell [0][0] to the bottom right cell [ N-1][ N-1]. Legal moves are up, down, left, and right; that is, either the row index ch