2 solutions

  • 0
    @ 2026-3-1 16:18:51

    别看上面的,代码很短的, 因为都在int范围之内,所以可以直接这样写

    #include<iostream>
    using namespace std;
    int main(){
        int a,b;
        cin>>a>>b;
        cout<<a+b;
        return 0;
    }
    

    Information

    ID
    11914
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    1
    Tags
    # Submissions
    98
    Accepted
    77
    Uploaded By