文件名称:Documents
介绍说明--下载内容来自于网络,使用问题请自行百度
有一个n*m的草坪(1<=n,m<=100),草坪中的草原来的高度都是100。现在使用割草机修剪草坪,来得到各种各样的图案。割草机只 能横着或者竖着割草。每次割草都会先设定一个高度,割完之后会把比设定高度高的草都割成设定的高度。比如草原来是5 2 8,设定高度为4,那么割完之后就变成了4 2 4。
现在给出一个图案,问是否可以把草坪割成图案的样子。
输入第一行包含两个整数n和m。
接下来为n行输入,每行包含m个不大于100的正整数。(There is a n*m lawn (1<=n, m<=100), grassland in the grassland to the height of 100. Now use lawn mowers to trim the lawn to get a variety of patterns. Only horizontally or vertically mower mowing. Every time the mowing is done, a height is first set, and then the height of the grass is cut to the set height. For example, the grassland is 528, and the setting height is 4. Then, after cutting, it becomes 424.
Now give a design and ask if you can cut the lawn in a pattern.
Enter the first line containing two integers, N and m.
Next, enter for the N line, each line containing m positive integers no greater than 100.)
现在给出一个图案,问是否可以把草坪割成图案的样子。
输入第一行包含两个整数n和m。
接下来为n行输入,每行包含m个不大于100的正整数。(There is a n*m lawn (1<=n, m<=100), grassland in the grassland to the height of 100. Now use lawn mowers to trim the lawn to get a variety of patterns. Only horizontally or vertically mower mowing. Every time the mowing is done, a height is first set, and then the height of the grass is cut to the set height. For example, the grassland is 528, and the setting height is 4. Then, after cutting, it becomes 424.
Now give a design and ask if you can cut the lawn in a pattern.
Enter the first line containing two integers, N and m.
Next, enter for the N line, each line containing m positive integers no greater than 100.)
相关搜索: 修路草坪
(系统自动生成,下载前可以参看下载内容)
下载文件列表
caoping.exe
caoping.cpp
caoping.cpp
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。