Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
104743 | 胡海峰老师 | 简单的分支结构 | C++ | Accepted | 1 MS | 268 KB | 296 | 2025-01-09 21:36:03 |
#include <iostream> using namespace std; int main(){ int x ; cin>>x; if(x<0) cout<<-1; if(x==0) cout<<0; if(x>0) cout<<1; } /* x = input() x = int(x) if x<0: print(-1) elif x==0: print(0) else: print(1) */