0
已解决
#include<iostream>
using namespace std;
int main()
{
double y,x;
cin>>x;
if(x>0)
{
y=1;
}
if(x<0)
{
y=-1;
}
else
y=0;
cout<<y;
return 0;
}