1 条题解

  • 0
    @ 2024-12-22 11:04:04

    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 <fstream>
    using namespace std;
    
    
    int main(int argc, char* argv[])
    {
    	int a,b;
    	while(scanf("%d%d",&a,&b)!=EOF){
    		printf("%d\n",a+b);
    	}
    	return 0;
    }
    
    
    • 1

    信息

    ID
    328
    时间
    1000ms
    内存
    128MiB
    难度
    10
    标签
    递交数
    2
    已通过
    0
    上传者