Description: A n* m of lawn (1 < n, m < 100), the height of the lawn to prairie is 100. Now use the mower to mow the lawn, to get a variety of patterns. Mower mowing only sideways or vertically. Each mowing will first set a height, the height would then mown grass higher than the set height are cut into the set. For example, the prairie is 528, set the height of 4, then after mown becomes 424. We will now be given a pattern and asked if I can cut into the lawn pattern look. Input The first line contains two integers n and m. Next, the n input lines, each line contains no more than 100 m a positive integer. If the input can be trimmed into a pattern, the output " YES" , otherwise output " NO" .
To Search:
File list (Check if you may need any files):
cut glass\Makefile.win
.........\cut glass.txt
.........\cut.dev
.........\cut.exe
.........\cut.layout
.........\main.cpp
.........\main.o
cut glass