Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
105011 张智博 简单的分支结构 C++ Wrong Answer 1 MS 264 KB 282 2025-01-11 22:04:29

Tests(0/1):


Code:

#include <iostream> using namespace std; int main() { int n; cin >> n; if (n<1) { cout << "1" << endl; } else if(n==0) { cout << "0" << endl; } else { cout << "-1" << endl; } return 0; }


Run Info:

------Input------
-12
------Answer-----
-1
------Your output-----
1