1 条题解

  • 0
    @ 2025-11-30 16:24:21

    C++ :

    #include <iostream>
    using namespace std;
    int main() {
        int num;
        cin >> num;
        if (num % 2 == 0) {
            if (num > 5) {
                cout << "偶数且大于5" << endl;
            } else {
                cout << "偶数且不大于5" << endl;
            }
        } else {
            cout << "不是偶数" << endl;
        }
        return 0;
    }
    
    • 1

    信息

    ID
    627
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者