HOJ 1001 A+B

来源:互联网 发布:软件运营维护方案 编辑:程序博客网 时间:2024/05/16 07:06

Time limit : 10 sec Memory limit : 32 M


for each pair of integers A and B ( 0 <= A,B <= 10) , Output the result of A+B on a single line.

Sample Input

1 23 4
Sample Output
37

Solution:

#include <stdio.h>int main(){    int a=0,b=0;    while(scanf("%d %d",&a,&b) == 2)    {        printf("%d\n",a+b);    }    return 0;}

原创粉丝点击