Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149748 胡誉骞 简单的分支结构 C++ Accepted 1 MS 268 KB 161 2026-03-16 17:00:30

Tests(1/1):


Code:

#include <iostream> using namespace std; int main(){ int x,y; cin>>x; if(x==0){ cout<<"0"; } if(x>0){ cout<<"1"; } if(x<0){ cout<<"-1"; } }