1 solutions

  • 0
    @ 2025-1-22 12:12:51

    C++ :

    #include <iostream>
    using namespace std;
    
    int main() {
        int choice;
        cin >> choice;  // 读取妈妈的回复
    
        if (choice == 1) {
            // 如果回复是1,直接输出"jiangyou"
            cout << "jiangyou" << endl;
        } else if (choice == 2) {
            // 如果回复是2,读取x并计算x + 5
            int x;
            cin >> x;
            cout << x + 5 << endl;
        }
    
        return 0;
    }
    
    • 1

    Information

    ID
    699
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    1
    Accepted
    1
    Uploaded By