1 条题解

  • 0
    @ 2025-9-15 0:43:57
    #include<bits/stdc++.h>
    using namespace std;
    // const int N=1e6+10;
    
    signed main(){
        int _=1;
        // cin>>_;
        while (_--) {
            int ans=0,x;
            while(cin>>x){
                if(x==-1) break;
                ans+=x;
            }
            cout<<ans;
        }
    }
    
    • 1

    信息

    ID
    66
    时间
    1000ms
    内存
    64MiB
    难度
    7
    标签
    递交数
    84
    已通过
    21
    上传者