11 条题解

  • 2
    @ 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;
    }
    
    • 1
      @ 2025-12-13 21:00:25
      #include <iostream>
      using namespace std;
      int main()
      {
      	short a,b;
      	while (cin >> a >> b)
      	{
      		if (a == 0 && b == 0)
      			return 0;
      		else
      			cout << a + b << endl;
      	}
      	return 0;
      }
      • 1
        @ 2025-9-10 13:53:20
        #include <iostream>
        using namespace std;
        int a, b;
        int main()
        {
        	while(1)
        	{
        		cin >> a >> b;
                        if(!a && !b)
                            return 0;
        		cout << a + b << endl;
        	}
        	return 0;
        }
        
        • 0
          @ 2025-9-14 17:09:58
          # include <bits/stdc++.h>
          
          using namespace std;
          int main(){
          	int n,a,b;
          	scanf("%d %d",&a,&b);
          	while(a!=0&&b!=0){
          		cout<<a+b<<endl;
          		scanf("%d %d",&a,&b);
          	}
          	return 0;
          }
          
          • 0
            @ 2025-4-12 21:15:07

            #include

            using namespace std;

            int main()

            {

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

            }

            • -1
              @ 2025-5-20 15:58:25

              #include using namespace std; int main() { int a; int b; while(1) { cin >> a >> b; if(a == 0 && b == 0) { break; } cout << a + b << endl; } return 0; }

              • -1
                @ 2023-6-3 18:28:33
                #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 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 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

                        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
                        标签
                        递交数
                        528
                        已通过
                        251
                        上传者