| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 145789 | 潘明泽 | 简单的分支结构 | C++ | Wrong Answer | 0 MS | 260 KB | 203 | 2026-01-25 19:02:52 |
#include<bits/stdc++.h> using namespace std; int n; int main(){ if(n>0){ cout<<"1"; }else if(n==0){ cout<<"0"; }else{ cout<<"-1"; } return 0; }
------Input------
-12
------Answer-----
-1
------Your output-----
0