Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
8062 | 吴承熹 | C语言5.3 | C++ | Accepted | 0 MS | 264 KB | 433 | 2025-06-08 11:48:44 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int x; cin>>x; if(x<0){ cout<<-1<<endl;; } else if(x==0){ cout<<0<<endl; } else{ cout<<1<<endl; } return 0; }