3 条题解

  • 0
    @ 2026-5-8 21:41:48
    
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int a,b,c,d;
        cin >> a >> b >> c >> d ;
        cout<<a+b+c+d;
        return 0;
    }
    
    • 0
      @ 2026-5-8 21:41:32
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
          int a,b,c,d;
          cin >> a >> b >> c >> d ;
          cout<<a+b+c+d;
          return 0;
      }
      
      • 0
        @ 2025-10-20 16:15:46
        #include<iostream>
        using namespace std;
        int main(){
            int a,b,c,d;
            while(true){
                cin>>a>>b>>c>>d;
                if(a>=0&&a<=100&&
                   b>=0&&b<=100&&
                   c>=0&&c<=100&&
                   d>=0&&d<=100){
                    break;
                }else{
                    cout<<"输入的分数格式不对重新输入"<<endl;
                }
            }
            cout<<a+b+c+d;
            return 0;
        }
        
        • 1

        信息

        ID
        238
        时间
        1000ms
        内存
        64MiB
        难度
        5
        标签
        递交数
        659
        已通过
        278
        上传者