TensorFlow 2 文档 TensorFlow 2 教程 Python 简明教程 Go 语言简明教程 Go 面试题 Go 高性能编程

Winter-1-A A + B 解题报告及测试数据

Time Limit:1000MS 

Memory Limit:32768KB

Description

Calculate A + B.

Input

Each line will contain two integers A and B. Process to end of file.

Output

For each case, output A + B in one line.

Sample Input

1 1 

Sample Output

​2

以下是代码:

#include <cstdio>
using namespace std;
int main(){
    int a,b;
    while(scanf("%d%d",&a,&b)!=EOF)
        printf("%d\n",a+b);
    return 0;
}
 
posted @ 2015-02-23 15:38  呆尐兔兔  阅读(166)  评论(0编辑  收藏  举报