1 条题解

  • 0
    @ 2025-4-12 22:03:03

    C++ :

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

    Pascal :

    var 
    
      a,b:Integer; 
    
    begin 
    
       Readln(a,b); 
    
       Writeln(a+b); 
    
    end.
    

    C# :

    using System;
    
      class  Acm1000
    
      {
    
        static void Main()
    
        {
    
          string[] ss = Console.ReadLine().Split();
    
          Console.WriteLine(long.Parse(ss[0]) + long.Parse(ss[1]));
    
       }
    
     }
    
    • 1

    信息

    ID
    2601
    时间
    6000ms
    内存
    10MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者