1 条题解

  • 0
    @ 2024-6-1 11:54:20
    #include<iostream>
    using namespace std;
    int main()
    {
        int a;
        cin >> a;
        if (a < 8)
        {
            cout << "You are too young!";
        }
        else if (a >= 8 && a <= 12)
        {
            cout << "Welcome to Junior Class!";
        }
        else if (a >= 13 && a <= 18)
        {
            cout << "Welcome to Senior Class!";
        }
        else
        {
            cout << "You are too old!";
        }
        return 0;
    }
    
    • 1

    信息

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