Life is short, so we need program

每日一题, 积累从点滴开始

  :: 首页 :: 博问 :: 闪存 :: :: 联系 :: :: 管理 ::

A + B Problem

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 225588    Accepted Submission(s): 66387

Problem Description
Calculate A + B.
Input
Each line will contain two integers A and B. Process to end of file.
Output
For each case, output A + B in one line.
 
Sample Input
1 1
 
Sample Output
2
 
1 #include <stdio.h>
2 
3 int main(){
4     int a, b;
5     while(scanf("%d %d", &a, &b)!=EOF){
6         printf("%d\n", a+b);
7     }
8     return 0;
9 }

 

posted on 2012-06-12 19:56  CDU_ICPC  阅读(139)  评论(0编辑  收藏  举报