4 条题解

  • 0
    @ 2026-7-19 14:10:30

    #include <bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c>>d; cout<<" "<<a+b+c+d<<endl; return 0; }$$

    • 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
          难度
          4
          标签
          递交数
          663
          已通过
          282
          上传者