游客 Signup | Login
中文 | En

1984 - testA+B

你的任务是计算a+b。这是为了acm初学者专门设计的题目。你肯定发现还有其他题目跟这道题的标题类似,这些问题也都是专门为初学者提供的。

Input

输入包含一系列的a和b对,通过空格隔开。一对a和b占一行。

Output

对于输入的每对a和b,你需要依次输出a、b的和。

如对于输入中的第二对a和b,在输出中它们的和应该也在第二行。

Examples

Input

1 5
10 20

Output

6
30

Solution C

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

Solution C++

#include<iostream>
using namespace std;
int main()
{
  double a,b;
  
//  double result;
  while(cin>>a>>b)
  {
    cout<<a+b<<endl;
  }
  return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题