8 条题解

  • 1
    @ 2025-5-1 9:47:00
    #include <bits/stdc++.h>
    using namespace std;
    
    int main()
    {
        int a, b;
        while(cin >> a >> b) cout << a + b << endl;
        return 0;
    }
    
    • -1
      @ 2024-12-27 22:02:20
      #include <stdio.h>
      #include <iostream>
      int n, m;
      int main(){
      	while(std::cin >> n >> m)
      		printf("%lld\n", n + m);
      	return 0;
      }
      
      • -2
        @ 2023-3-31 20:50:33

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

        • -2
          @ 2022-10-25 18:04:59
          #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)
          	{
          		cout << a + b << endl;
          	}
          	return 0;
          }
          
          • -3
            @ 2023-4-10 20:10:58

            不太一样,但AC

            #include <iostream>
            using namespace std;
            int main()
            {
            	int n=1,a, b;
            	while(n==1)
            	{
            		cin>>a>>b;
            		cout <<a+b<< endl;
            	}
            	return 0;
            }
            
            
            • -3
              @ 2022-3-27 18:43:41

              #include

              using namespace std;

              int main() {

              int n=1,a,b;

              while(cin>>a>>b){

              cout<<a+b<<endl;

              }

              }

              • -4
                @ 2022-7-6 10:57:33

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

                //while(scanf("%d%d"),&a,&b)!=EOF)
                //	printf("%d\n",a+b);
                

                }

                • -10
                  @ 2021-10-12 13:52:23

                  #include <stdio.h>

                  int main() {

                  int a, b;

                  while ((scanf("%d %d", &a, &b)) != EOF)

                  printf("%d\n", a + b);
                  

                  return 0;

                  • 1

                  信息

                  ID
                  983
                  时间
                  1000ms
                  内存
                  32MiB
                  难度
                  5
                  标签
                  递交数
                  682
                  已通过
                  269
                  上传者