**
HIT oj题解1002 - A+B+C
**
http://acm.hit.edu.cn/problemset/1002
Problem Description
For each pair of integers A B and C ( -2^31 <= A, B, C<= 2^31-1 ), Output the result of A+B+C on a single line.
Input
Output
Sample Input
1 2 3
3 4 3
Sample Output
6
10
solution:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
long long res;
while((scanf("%d%d%d",&a,&b,&c))==3)
{
res=(long long)a+b+c;
printf("%lld\n",res);
}
return 0;
}