You can select, copy (entirely), paste, and move figures in a graphics editor such as PAINT.
Given a single unit square on the screen, what is the minimal number of these operations required to construct a rectangle of size A \times B, divided into unit squares like the original? Here, is the width and is the height.
Two natural numbers and (1 \leq A, B \leq 1000).
The minimal number of operations.
Example 1