6 条题解

  • 4
    @ 2022-10-25 18:02:13
    #include <iostream>
    #include <stack>
    #include <cmath>
    #include <vector>
    #include <string.h>
    #include <queue>
    #include <stdio.h>
    #include <iomanip>
    #include <cstdio>
    #include <algorithm>
    #define int long long
    using namespace std;
    const int N = 1e5 + 10;
    const int INF = 0x3f3f3f3f;
    signed main()
    {
    	int a, b;
    	while(cin >> a >> b && a != 0 && b != 0)
    	{
    		cout << a + b << endl;
    	}
    	return 0;
    }
    
    • 0
      #include <iostream>
      #include <bits/stdc++.h>
      using namespace std;
      const int N=1e7+10;
      const int INF=0x3f3f3f3f;
      int main()
      {
      	int a=1,b=1;
      	while(a)
      	{
      		cin>>a>>b;
      		if(a==0 && b==0)
      		{
      			return 0;
      		}
      		cout<<a+b<<"\n";
      	}
      }
      
      
      • -2
        @ 2022-7-6 19:49:00

        #include <math.h> #include <stdio.h> #include <iostream> using namespace std; int main() { int a,b; while(cin >> a >> b) { if(a == 0 && b == 0) break; cout << a + b << endl; } }

        • -2
          @ 2022-7-6 11:00:45

          /陈儒乐/

          #include<bits/stdc++.h>//网上查到的万能头//

          using namespace std;

          int main()

          {

          int a,b;
          
          while(cin >> a >> b
          
              && !(a == 0 && b == 0))
          
          {
          
              cout << a + b << endl;
          
          }
          

          }

          • -2
            @ 2022-7-6 10:57:10

            #include<stdio.h> #include<iostream> using namespace std; int main() { int a,b; while(cin>>a>>b&&!(a0&&b0)) cout<<a+b<<endl;

            //int a,b;
            //while(1)
            //{
            	//cin>>a>>b;
            	//if(a==0&&b==0)
            		//break;
            	//cout<<a+b<<endl;
            //}
            

            }

            • -2
              @ 2022-3-27 18:50:13

              #include<iostream>

              using namespace std;

              int main() {

              int n=1,a,b;

              while(n==1){

              cin>>a>>b;

              if(a0&&b0) break;

              cout<<a+b<<endl;

              }

              }

              • 1

              信息

              ID
              985
              时间
              1000ms
              内存
              32MiB
              难度
              4
              标签
              递交数
              334
              已通过
              161
              上传者