D. 练20.4  判断点在第几象限

    Type: Default 1000ms 64MiB

练20.4  判断点在第几象限

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

Input 22 integers xx and yy representing a point on a plane. Determine which quadrant the point is in and output the corresponding result.

Input Format

Input xx and yy values representing a coordinate point. The point will not be on the xx-axis, yy-axis, or at the origin. All data are within the range of int.

Output Format

Output the corresponding quadrant, using numbers 11, 22, 33, 44 to represent the four quadrants.

Sample

1 1
1

20251206 A班作业(9)

Not Claimed
Status
Done
Problem
5
Open Since
2025-12-6 0:00
Deadline
2025-12-14 23:59
Extension
24 hour(s)