Mowing the lawn
2016-08-23
2 0 0
no vote
Other
Earn points
Have a lawn n*m (1<=n,m<=100), Prairie heights in the lawn is 100. Now use the mower to mow the lawn, to get a variety of patterns. Lawn mower only horizontal or vertical mowing. Mowing would first set a height cut height setting after the grass is cut into a set of height. Grass turned out to be 5, set the height of 4, then cut it after it becomes a 4.
Now to give a pictorial, asked if she could look like grass cut into patterns.
First line of the input contains two integers m and n.
Next n line input, each row contains positive integers not greater than 100 m.
If the pattern can be clipped into the input, the output "YES", the output of "NO".
c
修剪
草坪
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment