A+B+C

来源:互联网 发布:城市人才争夺战知乎 编辑:程序博客网 时间:2024/05/01 12:11

A+B+C

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.Sample Input

1 2 33 4 3
Sample Output
610

提示 请注意32位机上int的表示范围。

/*This Code is Submitted by 黄仪标 for Problem 1002 at 2012-11-05 21:34:11*/#include <iostream>using namespace std;int main(){    long long lps, mps, rps;    while (cin >> lps >> mps >> rps)    {        cout << lps + mps + rps << endl;    }    return 0;}


 

原创粉丝点击