文件名称:flyaway
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:783byte
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
输入:第一行是3个正整数,m(1≤m≤100),n(1≤n≤100),D(1≤D≤100)。表示原野是m*n的矩阵,法里奥最多只能飞行距离为D。
接下来的m行每行有n个字符,相互之间没有空格。P表示当前位置是平地,L则表示湖泊。假定(1,1)和(m,n)一定是平地。
输出:一个整数,表示法里奥到达基地需要的最短时间。如果无法到达基地,则输出impossible。-Input: The first line is the three positive integers, m (1 ≤ m ≤ 100), n (1 ≤ n ≤ 100), D (1 ≤ D ≤ 100). That wilderness is m* n matrix, Fario maximum flight distance of D. The next m lines with n characters per line, with no spaces between each other. P indicates the current position is flat, L indicates the lake. Assume that (1,1) and (m, n) must be flat. Output: An integer representation of Leo the minimum time required to reach base. If you can not reach the base, then the output impossible.
接下来的m行每行有n个字符,相互之间没有空格。P表示当前位置是平地,L则表示湖泊。假定(1,1)和(m,n)一定是平地。
输出:一个整数,表示法里奥到达基地需要的最短时间。如果无法到达基地,则输出impossible。-Input: The first line is the three positive integers, m (1 ≤ m ≤ 100), n (1 ≤ n ≤ 100), D (1 ≤ D ≤ 100). That wilderness is m* n matrix, Fario maximum flight distance of D. The next m lines with n characters per line, with no spaces between each other. P indicates the current position is flat, L indicates the lake. Assume that (1,1) and (m, n) must be flat. Output: An integer representation of Leo the minimum time required to reach base. If you can not reach the base, then the output impossible.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
flyaway.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.