Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144875 吴昊 简单的分支结构 C++ Accepted 0 MS 268 KB 300 2026-01-24 19:21:36

Tests(1/1):


Code:

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