Task
Time limit:
1000 ms,
Memory limit:
256 Mb
Given two integers x and y - the coordinates of the point.
It is necessary to determine the color of this point in the figure.
Use the following notation to display colors:
W - white (all points beyond the border of the picture are considered white)
G - green
Y - yellow
R - red
B - black (if the point fell on the border of the areas of the picture)
One cell is 1
You can enlarge the picture by clicking on it (opens in a new window).
Examples
№ |
Input |
Output |
1 |
-6 2 |
W |
2 |
0 1 |
R |