BOJ 1 A+B Problem
A+B Problem
| Accept:3524 | Submit:8578 |
| Time Limit:1000MS | Memory Limit:4000KB |
Description
Calculate a+b
Input
Two integer a,b (0<=a,b<=100)
Output
Output a+b
Sample Input
1 1
Sample Output
2
[C++]
1 #include<iostream> 2 3 using namespace std; 4 5 int main() 6 { 7 int a,b; 8 while(cin>>a>>b) 9 cout<<a+b<<endl; 10 return 0; 11 }


浙公网安备 33010602011771号