Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
162863 王慕哲 简单的分支结构 C++ Accepted 1 MS 272 KB 222 2026-10-21 21:31:18

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; if(x<0){ cout<<"-1"; } if(x==0){ cout<<0; } if(x>0){ cout<<1; } return 0; }