问题来源

aj1000

问题描述

Calculate A + B.

输入

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

输出

For each case, output A + B in one line

例子

aj HDU - 1000--A + B Problem

AC的代码

#include <cstdio>
int main()
{
	int a, b;
	while (scanf("%d%d", &a, &b) != EOF)
	{
		printf("%d\n", a + b);
	}
	return 0;
}

解题思路

输入a,b。
循环输入a,b。
输出a+b并换行。
知道EOF。

相关文章:

  • 2021-06-01
  • 2021-05-01
  • 2021-09-26
  • 2021-09-09
  • 2022-03-04
  • 2021-12-12
猜你喜欢
  • 2021-07-22
  • 2021-05-23
  • 2021-06-02
  • 2022-02-04
  • 2021-07-31
  • 2021-06-02
  • 2021-11-13
相关资源
相似解决方案