【ACM】hdu_1091_A+BIII_201307261112
A+B for Input-Output Practice (III)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 56513 Accepted Submission(s): 29030
Problem Description
Your task is to Calculate a + b.
Input
Input contains multiple test cases. Each test case contains a pair of integers a and b, one pair of integers per line. A test case containing 0 0 terminates the input and this test case is not to be processed.
Output
For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.
Sample Input
1 5
10 20
0 0
Sample Output
6
30
#include <stdio.h>
int main()
{int a,b;
while(scanf("%d %d",&a,&b),a||b)
{printf("%d\n",a+b);
}
return 0;
}
最新文章
- CSS3变形记(上):千变万化的Div
- UIkit框架之uUInavigationController
- iOS开发之——制作framework静态库教程
- codevs 1206 保留两位小数
- swift基础--字符串
- window.location.search作用
- Controller和RequestMapping
- jquery ashx
- opencv视频播放
- iosOC不可变字典和可变字典
- 兼容ie浏览器的placeholder的几种方法
- JavaAPI 中 <;E>; 与 <;T>; 的含义
- 百度上传插件---webuploader的使用
- 解决js的 Math取正弦值 余弦值不准确的问题
- 受欢迎的牛[HAOI2006]
- SQL注入之PHP-MySQL实现手工注入-数字型
- Java动态代理的实现机制
- 上拉刷新和下拉刷新的两种方法(包括使用第三方库MJRefresh)
- ibatitsnet 因为会Dao.config 配置数据版本太低导致的问题
- h5 plus/h5+规范使用,模块索引,教你如何去看h5+的手册