Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
8061 | 吴承熹 | C语言5.3 | C++ | Wrong Answer | 0 MS | 260 KB | 420 | 2025-06-08 11:47:52 |
#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; if(x<0){ cout<<-1<<endl;; } else if(x==0){ cout<<0<<endl; } else{ cout<<1<<endl; } return 0; }
------Input------
-12
------Answer-----
-1
------Your output-----
0