jjzjj

c++ - 找到填充矩形的最少 MS Paint 操作数

我在比赛的某个地方发现了这个问题,但还没有想出解决方案。Ican"select","copy","insert"and"move"inanotherplaceafiguresonthescreen.InitiallyIhavetherectanglewithsize1x1.WhattheleastquantityoftheseoperationsIhavetodoforbuildingofanotherrectangle,whichsizeisAxB.这是我的错误代码:#include#include#definesize1002usingnamespacestd;intmain(){