Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
96009 蔡胤泽 07判断正负数 C++ Accepted 1 MS 280 KB 199 2024-11-02 17:14:16

Tests(10/10):


Code:

#include <iostream> using namespace std; int main() { int a; cin >> a; if(a != 0) { if(a * -1 > a) { cout<<"NO"; } else { cout<<"YES"; } } return 0; }