시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 128 MB | 361 | 227 | 216 | 65.653% |
Given the coordinates (x,y) of some points in 2-dimensional plane, find out which quadrant(Q1-Q4) the points are located. If a point is located on X-axis or Y-axis, print out AXIS instead.
Each line contains a pair of real numbers which is the coordinate of a point. Input is terminated by 0 0
.
Print out in each line Q1, Q2, Q3, Q4 or AXIS for each point.
1 2 -1 -0.12 4 0 -10.4 200 0 0
Q1 Q3 AXIS Q2 AXIS