Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop
Title: 111 Download
 Description: A n* m of lawn (1 < = n, m < = 100), the height of the prairie grass is 100. Now use the mower to mow the lawn to get a variety of patterns. Mower mowing only sideways or vertically. Every mowing will first set a height, height after height higher than the set would mown grass are cut into the set. For example, the prairie is 528, set height to 4, then after Gewan becomes 424. We will now be given a pattern, asked if he could put the lawn cut into a pattern look. Input Input The first line contains two integers n and m. Next, an n-line input, each line contains no more than 100 m a positive integer. Output If the input can be trimmed into a pattern, output " YES" , otherwise output " NO" . Sample input 3 3 2 1 2 1 1 1 2 1 2 Samput Output YES standard output:
 Downloaders recently: [More information of uploader ton]
 To Search:
File list (Check if you may need any files):
 

修剪草坪.cpp
未命名2.cpp
    

CodeBus www.codebus.net