3 条题解

  • 0
    @ 2025-4-13 20:50:17
    #include<stdio.h>
    int main(){
        int a,b;
        while(scanf("%d%d",&a,&b) != EOF)
        {
            printf("%d\n",a+b);
        }
    }
    
    • 0
      @ 2025-1-4 21:23:13

      神奇(

      #include<bits/stdc++.h>
      #define int long long
      #define INF 0x3f3f3f
      using namespace std;
      int a,b;
      signed main(){
      	while(cin>>a>>b)
      		cout<<a+b<<"\n";
      	return 0;
      }
      
      • 0
        @ 2024-12-22 11:03:59

        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(){
        	int a,b;
        	while(cin>>a>>b)
        		cout<<a+b<<endl;
        }
        

        Java :

        import java.util.Scanner;
        public class Main
        {
          public static void main(String[] args)
          {
            Scanner sc=new Scanner(System.in);
            while(sc.hasNext())
            {
              int i=sc.nextInt();
              int j=sc.nextInt();
              System.out.println(i+j);
            }
          }
        }
        
        • 1

        信息

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