Toggle navigation
万里ACM
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem W: 坐标与象限
Problem W: 坐标与象限
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
1147
Solved:
740
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
已知二维平面上点P的坐标(x,y),且x、y均不为0,则P所在的象限是确定的
Input
点P的坐标x,y(
x,y均为实数并
满足x≠0且y≠0)
Output
点P所在的象限
Sample Input
Copy
1 3.14 -10 56 -34 -78 2.718 -100
Sample Output
Copy
1 2 3 4