Problem B
Rounded Buttons
Most styles of graphical user interface make use of lots of rectangles. Buttons are rectangular, menus are rectangular and windows are rectangular. Some styles of user interface exhibit a softer appearance by using rounded rectangles for some components. As illustrated below, a rounded rectangle replaces the sharp corners of an ordinary rectangle with a smooth quarter circles.
![\includegraphics[width=0.5\textwidth ]{rect}](/problems/roundedbuttons/file/statement/en/img-0001.png)
Using a coordinate system with the
Input
Input begins with a line containing an integer
Output
For each mouse click location, output inside if the location is inside the rounded rectangle, or outside otherwise. A mouse click right on the edge of a rounded rectangle should be classified as inside.
Sample Input 1 | Sample Output 1 |
---|---|
3 1 8 14 13 3 5 8 6 15 8 12 11 14 21 2.5 20 2 2 13 14 4 5 4 4 4 16 13 14 3 3 3 9 85.7 114.7 3.2 6.0 1.2 3 86.3 114.8 88.1 118.2 85.9 120.7 |
outside outside inside outside inside inside outside inside outside inside outside inside outside |