Run ID:107464
提交时间:2025-01-17 23:16:55
#include <iostream> using namespace std; int main () { int x,y; cin >> x; if(x>0) y=1; else if(x<0) y=-1; else y=0; cout<<y; return 0; }