#CCBCMCHIN0000051. Khoảng cách từ điểm đến gốc (Distance from the Origin)
Khoảng cách từ điểm đến gốc (Distance from the Origin)
Distance from the Origin
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given a point with real coordinates , classify whether it is the origin, on one of the coordinate axes but not the origin, or off both axes. No numerical distance is required.
Input
One line contains real values , each with at most one decimal digit.
Output
Print ORIGIN if both coordinates are zero, AXIS if exactly one is zero, or ELSE otherwise.
Subtasks
-
Subtask 1 (20 points): Coordinates are in [-2,2].
-
Subtask 2 (30 points): Coordinates are in [-100,100].
-
Subtask 3 (50 points): Coordinates are in [-1000,1000].
Examples
Example 1
Input
0.0 0.0
Output
ORIGIN
Explanation
For this input, the case-specific computation and the required exact output are shown above. Both coordinates are zero.
Example 2
Input
0.0 -2.5
Output
AXIS
Explanation
For this input, the case-specific computation and the required exact output are shown above. Exactly one coordinate is zero.