#K88532. Square Flower Beds Arrangement
Square Flower Beds Arrangement
Square Flower Beds Arrangement
You are given the dimensions of a rectangular area with width and height. The goal is to determine if it is possible to completely cover the area by arranging square flower beds in a grid such that the number of beds along the width is equal to the number of beds along the height. In other words, the entire area can be covered if and only if the width and height are equal.
The necessary and sufficient condition for an arrangement is given by the formula: $$ width = height $$.
Note that the dimensions can be zero or even negative, and the same equality rule applies.
inputFormat
The input consists of two space-separated integers:
- width: the width of the rectangular area
- height: the height of the rectangular area
These integers are provided via standard input (stdin).
outputFormat
Output a single line to standard output (stdout) containing either True
or False
(without quotes). The output should be True
if the width is equal to the height, and False
otherwise.
200 200
True