文件名称:2dp
-
所属分类:
- 标签属性:
- 上传时间:2013-06-05
-
文件大小:522byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
传说HMH大沙漠中有一个M*N迷宫,里面藏有许多宝物。某天,Dr.Kong找到了迷宫的地图,他发现迷宫内处处有宝物,最珍贵的宝物就藏在右下角,迷宫的进出口在左上角。当然,迷宫中的通路不是平坦的,到处都是陷阱。Dr.Kong决定让他的机器人卡多去探险。
但机器人卡多从左上角走到右下角时,只会向下走或者向右走。从右下角往回走到左上角时,只会向上走或者向左走,而且卡多不走回头路。(即:一个点最多经过一次)。当然卡多顺手也拿走沿路的每个宝物。
Dr.Kong希望他的机器人卡多尽量多地带出宝物。请你编写程序,帮助Dr.Kong计算一下,卡多最多能带出多少宝物。
-HMH Desert legend has a M* N maze, there are many hidden treasures. One day, Dr.Kong found a map of the maze, the maze everywhere he found treasures, the most precious treasure is hidden in the bottom right corner of the maze of import and export in the upper left corner. Of course, the maze path is not flat, full of traps. Dr.Kong decided to let his robot Caddo go on a safari. But robots Caddo went from the top left bottom right corner, only to go down or go right. Come from the lower right back left corner, only to go up or go left, and Caddo no turning back. (Ie: a point after a maximum). Of course, it took Caddo smoothly along each treasure. Dr.Kong hopes his robot Caddo bring out as many treasures. Please write a program to help Dr.Kong calculations, cards up to bring out many more treasures.
但机器人卡多从左上角走到右下角时,只会向下走或者向右走。从右下角往回走到左上角时,只会向上走或者向左走,而且卡多不走回头路。(即:一个点最多经过一次)。当然卡多顺手也拿走沿路的每个宝物。
Dr.Kong希望他的机器人卡多尽量多地带出宝物。请你编写程序,帮助Dr.Kong计算一下,卡多最多能带出多少宝物。
-HMH Desert legend has a M* N maze, there are many hidden treasures. One day, Dr.Kong found a map of the maze, the maze everywhere he found treasures, the most precious treasure is hidden in the bottom right corner of the maze of import and export in the upper left corner. Of course, the maze path is not flat, full of traps. Dr.Kong decided to let his robot Caddo go on a safari. But robots Caddo went from the top left bottom right corner, only to go down or go right. Come from the lower right back left corner, only to go up or go left, and Caddo no turning back. (Ie: a point after a maximum). Of course, it took Caddo smoothly along each treasure. Dr.Kong hopes his robot Caddo bring out as many treasures. Please write a program to help Dr.Kong calculations, cards up to bring out many more treasures.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
2dp.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.