文件名称:DavidPeterman_C
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:780byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
问题描述:
虽然离开浦口了,但在浦口校区后山大家还都有印象吧,可你知道有一座小山在冬天下大雪的时候是可以滑雪的,SEU很喜欢滑雪,这并不奇怪, 因为滑雪的确很刺激,可是为了获得速度,滑雪区域必须向下倾斜,而且当你到底时不得不重新走到上面重滑。SEU想知道在这个区域中最长的滑坡。区域由一个二维数组给出。数组的每一个数字表示山坡上一个点的高度。
下面是一个例子:
一个人可以从一个点滑向上下左右相邻的四个点之一,当且仅当高度减小。在上面的例子中,一条可行的滑坡为24-17-16-1(从24开始,在1结束)。当然25-24-23-…-3-2-1更长。事实上,这是最长的一条。
输入要求:
从文件输入,输入的第一行为表示区域的二维数组的R行数和C列数(都在1到100之间)。下面是R行,每行有C个数,代表高度。
输出要求:
输出数据到文件,输出区域中最长滑坡的长度。
输入样例:
5 5
1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9
输出样例:
-Problem Descr iption : Although left Pukou, but in Pukou Campus of the mountain we also have the impression it. You know a hill under the snow in winter is the time to ski, ski SEU like, it is not surprising, because skiing is very stimulating, but in order to obtain the speed, skiing region must downward slopping. but in the end when you had to re-entering the sliding weight above. SEU would like to know the longest in the region of landslide. From the region is a two-dimensional array. Every one of the array of figures on the hillside a high point. Here is an example : a person can be slid from a point adjacent to the next around one of the four points, and only if highly reduced. In the example above, a possible landslide as 24 -17-16-1 (from 24, in a conclusion). Of course 25 -24-23
虽然离开浦口了,但在浦口校区后山大家还都有印象吧,可你知道有一座小山在冬天下大雪的时候是可以滑雪的,SEU很喜欢滑雪,这并不奇怪, 因为滑雪的确很刺激,可是为了获得速度,滑雪区域必须向下倾斜,而且当你到底时不得不重新走到上面重滑。SEU想知道在这个区域中最长的滑坡。区域由一个二维数组给出。数组的每一个数字表示山坡上一个点的高度。
下面是一个例子:
一个人可以从一个点滑向上下左右相邻的四个点之一,当且仅当高度减小。在上面的例子中,一条可行的滑坡为24-17-16-1(从24开始,在1结束)。当然25-24-23-…-3-2-1更长。事实上,这是最长的一条。
输入要求:
从文件输入,输入的第一行为表示区域的二维数组的R行数和C列数(都在1到100之间)。下面是R行,每行有C个数,代表高度。
输出要求:
输出数据到文件,输出区域中最长滑坡的长度。
输入样例:
5 5
1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9
输出样例:
-Problem Descr iption : Although left Pukou, but in Pukou Campus of the mountain we also have the impression it. You know a hill under the snow in winter is the time to ski, ski SEU like, it is not surprising, because skiing is very stimulating, but in order to obtain the speed, skiing region must downward slopping. but in the end when you had to re-entering the sliding weight above. SEU would like to know the longest in the region of landslide. From the region is a two-dimensional array. Every one of the array of figures on the hillside a high point. Here is an example : a person can be slid from a point adjacent to the next around one of the four points, and only if highly reduced. In the example above, a possible landslide as 24 -17-16-1 (from 24, in a conclusion). Of course 25 -24-23
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DavidPeterman_C.cpp
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.