-
2
说明: 有一个长度为整数L(1<=L<=10000)的马路,可以想象成数轴上长度为L的一个线段,起点是坐标原点,在每个整数坐标点有一棵树,即在0,1,2,...,L共L+1个位置上有L+1棵树。
现在要移走一些树,移走的树的区间用一对数字表示,如 100 200表示移走从100到200之间(包括端点)所有的树。
可能有M(1<=M<=100)个区间,区间之间可能有重叠。现在要求移走所有区间的树之后剩下的树的个数。
输入:
两个整数L(1<=L<=10000)和M(1<=M<=100)。
接下来有M组整数,每组有一对数字。
输出:
可能有多组输入数据,对于每组输入数据,输出一个数,表示移走所有区间的树之后剩下的树的个数。(Has a length of integer L (1 < = L < = 10000) of the road, one can imagine a number line segment of length L, the starting point is the coordinate origin, each integer coordinate points in a tree, i.e. 0,1 , 2, ..., L total has L+1 L+1 positions on the tree. Now to remove some trees, tree removed by a range of digitally represented, such as 100 200 represents removed (inclusive) between 100 and 200 all the trees. There may be M (1 < = M < = 100) intervals, there may be overlap between the intervals. Now, after the number of trees require the removal of all remaining sections of the tree. Input: two integer L (1 < = L < = 10000) and M (1 < = M < = 100). Then there is an integer M groups, each with a pair of numbers. Output: there may be multiple sets of input data, for each set of input data, the output of a number indicating the number of the removal of all remaining sections of the tree after tree.)
- 2015-03-22 23:35:47下载
- 积分:1
-
gs
说明: 光栅图形矢量化方法分析与评价,一篇不错的书籍(Raster graphics vector analysis and evaluation methods, a good book)
- 2014-02-21 03:01:05下载
- 积分:1
-
matlab0809
用MATLAB引警做VC和MATLAB的混合编程,将图像读出,并绘制灰度直方图。(Use MATLAB engine to acomplish VC and MATLAB mixed programming, read out the image and draw the histogram.)
- 2010-08-11 16:48:00下载
- 积分:1
-
quxiannihe
求联合概率密度的matlab编程,可用于大部分数学或曲线拟合的场合(Seek the joint probability density)
- 2012-06-09 09:44:30下载
- 积分:1
-
kt878
仿真图是速度、距离、幅度三维图像,合成孔径雷达(SAR)目标成像仿真,可以广泛的应用于数据预测及数据分析。( FIG simulation speed, distance, amplitude three-dimensional image, Synthetic Aperture Radar (SAR) imaging simulation target, Can be widely used in data analysis and forecast data.)
- 2017-05-07 23:04:37下载
- 积分:1
-
matlab4
利用matlab进行五点三次法平滑处理(时域和频域)(Using matlab 5.3 times France smoothing process (time domain and frequency domain))
- 2013-09-15 10:46:29下载
- 积分:1
-
turbo
说明: turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型turbo是一种极好的码型(用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码用于编码)
- 2010-04-06 14:23:03下载
- 积分:1
-
bp-algorithm-CPP-Fortran-and-Matlab
分别用C++,matlab以及Fortran语言实现bp算法(bp algorithm using C++, matlaband Fortran language)
- 2011-05-10 15:21:49下载
- 积分:1
-
KFCM
基于粗糙熵和K-均值聚类算法的图像分割 (Based on Rough Entropy and K-means clustering algorithm for image segmentation)
- 2008-03-20 18:16:56下载
- 积分:1
-
AIMI561
This the free version of my Basis of AI Backprop designed to
accompany my not yet published textbook, _The Basis of AI_. This
program contains enough features for students in an ordinary AI or
Neural Networking course. It includes the quickprop and delta-bar-delta
algorithms for faster training and a fast integer version for machines
without floating point hardware.
This particular package includes C source for DOS and UNIX, examples, an
ASCII manual and a number of DOS binaries. The binaries are for systems
with floating point hardware (bp.exe), one for systems without floating
point hardware (bp486sx.exe) and an integer version binary
(ibp486sx.exe) for systems without floating point hardware.
- 2007-11-10 11:59:38下载
- 积分:1