# 题目信息

Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1060311 Accepted Submission(s): 313490

# Problem 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 1

# Sample Output

1
2

# 题解

# C 语言解法

1
2
3
4
5
6
7
8
9
#include <stdio.h>

int main() {
int m, n;
while (EOF != scanf("%d %d", &m, &n)) {
printf("%d\n", m + n);
}
return 0;
}

# Be Careful

  • 输出结果后要换行.
  • EOF != scanf("%d %d", &m, &n) 也可以写成 ~scanf("%d %d", &m, &n)

# 链接

# 最后

希望与你一起遇见更好的自己

期望与你一起遇见更好的自己

更新于 阅读次数

请我喝[咖啡]~( ̄▽ ̄)~*

方小白 微信支付

微信支付

方小白 支付宝

支付宝

方小白 numberpay

numberpay