Problem Links:
poj1000,
Problem:
A+B Problem
Time Limit: 1000MS | Memory Limit: 10000K | |
Total Submissions: 184255 | Accepted: 99273 |
Description
Calculate a+b
Input
Two integer a,b (0<=a,b<=10)
Output
Output a+b
Sample Input
1 2
Sample Output
3
Solution:
Source Code:
//Wed 03 Feb 2010 10:52:52 PM CST
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(int argc, char* argv[])
{
int A, B;
while(cin >> A >> B)
cout << A+B << endl;
return 0;
}
No comments :
Post a Comment