Toggle navigation
万里ACM
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem T: Sign
Problem T: Sign
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
754
Solved:
579
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
请判断实数x的符号。如果x>0,输出1;
如果x为0,输出0;
如果x<0,输出-1
Input
实数x
Output
x的符号:1、0或
-1
Sample Input
Copy
100
Sample Output
Copy
1