Room
Time limit1sMemory limit1024 MB
Given a room's width, length, and height in millimeters, decide whether the smaller side divided by the height is at least 2 and the larger side divided by the smaller is at most 2.
- Level
Easy1 of 10
- Topics
- Implementation, Math
- Solved
- No attempts yet
Problem
A room is described by three integers: its length, width, and height, all in millimeters. A room is good if the ratio of the smaller of the length and width to the height is at least , and the ratio of the larger of the length and width to the smaller is at most .
Given the dimensions of a room, determine whether it is good.
Input
Three integers , , and are given, each on its own line. They are the length, width, and height of the room, respectively ().
Output
If the room is good, print <<good>>. Otherwise, print <<bad>>.