1 条题解

  • 0
    @ 2026-1-21 11:39:55

    好弱智的题目。

    题目解析

    输入变一个整型变量,找出它与5的关系,并判断奇偶。

    个人思路

    如图(字丑莫怪):

    AC code

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int x;
        cin >> x;
        if(x<5)
        {
            cout << "normal";
        }
        else if(x>=5)
        {
            if(x%2==1)
            {
                cout << "easy";
            }
            else
            {
                cout << "difficult";
            }
        }
        return 0;
    }
    
    • 1

    信息

    ID
    8379
    时间
    1000ms
    内存
    256MiB
    难度
    10
    标签
    递交数
    5
    已通过
    2
    上传者