文件名称:temperature
-
所属分类:
- 标签属性:
- 上传时间:2013-10-10
-
文件大小:2.79kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
择使用数组储存数据。*x,*y分别装入观察站的地理坐标,temp装入的是温度信息,*tpx,*tpy分别用作对x,y进行快速排序(tpx[2]=8表示排在第2位的是x[8],rank[8]=2表示x[8]排在第2位)升序,rankx[i]即为最终x[i]的排名。
为了方便计算一个范围内的温度值,定义了一个long long 型的数组sum。算出比点p小的点(不包括点p本身)的所有温度值之和sum,之后范围的四点sum相加减,再对少数点做处理即可得到范围内的温度之和。sum[i][j]表示的是rankx=i,ranky=j左下方的温度之和,相当于一个hashtable(映射关系)-Optional use arrays to store data.* X,* y respectively, into the geographical coordinates of the Observatory, temp temperature information is loaded,* tpx,* tpy respectively used for x, y quick sort (tpx [2] = 8 means that in the first two rows of the is x [8], rank [8] = 2 means that x [8] ranked No. 2) ascending, rankx [i] shall be final and x [i] in the rankings. In order to facilitate the calculation of the temperature within a range that defines a long long type array sum. Point p is smaller than the calculated points (not including the point p itself) of all temperature values and the sum, sum the four points of the range after the addition and subtraction, then do not handle a small number of points can be obtained and a temperature within the range. sum [i] [j] represents the rankx = i, ranky = j the temperature of the lower left, the equivalent of a hashtable (mappings)
为了方便计算一个范围内的温度值,定义了一个long long 型的数组sum。算出比点p小的点(不包括点p本身)的所有温度值之和sum,之后范围的四点sum相加减,再对少数点做处理即可得到范围内的温度之和。sum[i][j]表示的是rankx=i,ranky=j左下方的温度之和,相当于一个hashtable(映射关系)-Optional use arrays to store data.* X,* y respectively, into the geographical coordinates of the Observatory, temp temperature information is loaded,* tpx,* tpy respectively used for x, y quick sort (tpx [2] = 8 means that in the first two rows of the is x [8], rank [8] = 2 means that x [8] ranked No. 2) ascending, rankx [i] shall be final and x [i] in the rankings. In order to facilitate the calculation of the temperature within a range that defines a long long type array sum. Point p is smaller than the calculated points (not including the point p itself) of all temperature values and the sum, sum the four points of the range after the addition and subtraction, then do not handle a small number of points can be obtained and a temperature within the range. sum [i] [j] represents the rankx = i, ranky = j the temperature of the lower left, the equivalent of a hashtable (mappings)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
temperature_lib.c
Temperature.cpp
temperature.h
Temperature.cpp
temperature.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.