1 条题解

  • 0
    @ 2025-4-27 18:43:09

    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;
        }
    	return 0;
    }
    
    

    Python :

    # coding=utf-8
    i = 1
    while i != 0:
        a, b= map(int,input().split())
        print(a + b)
    
    • 1

    信息

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