3 条题解

  • 0
    @ 2025-7-28 14:55:40

    ``c++ #include<bits/stdc++.h> using namespace std; int main() { int a,b; while(cin>>a>>b) cout<<a+b<<endl; }

    • 0
      @ 2024-12-24 9:49:41

      C :

      #include<stdio.h>
      int main()
      {
      int a,b;
      while(scanf("%d%d",&a,&b)!=EOF)
      {
      printf("%d\n",a+b);
      }
      return 0;
      } 
      

      C++ :

      #include<iostream>
      using namespace std;
      int main()
      {
        double a,b;
        
      //  double result;
        while(cin>>a>>b)
        {
          cout<<a+b<<endl;
        }
        return 0;
      }
      
      • -1
        @ 2025-4-24 20:13:42
        #include<bits/stdc++.h>
        using namespace std;
        int main(){
            int a,b,c,d;
            cin>>a>>b>>c>>d;
            cout<<a+b<<endl<<c+d;
            return 0;
        }
        
        • 1

        信息

        ID
        1007
        时间
        1000ms
        内存
        128MiB
        难度
        9
        标签
        递交数
        11
        已通过
        3
        上传者