Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop Other
Title: 2 Download
 Description: 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 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.
 Downloaders recently: [More information of uploader 李顿名]
 To Search:
File list (Check if you may need any files):
 

Cpp1.cpp
Debug
.....\Cpp1.exe
.....\Cpp1.ilk
.....\Cpp1.obj
.....\Cpp1.pch
.....\Cpp1.pdb
.....\vc60.idb
.....\vc60.pdb
    

CodeBus www.codebus.net