[HDU1000]
2015-10-03 12:10
316 查看
A + B Problem
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 506329 Accepted Submission(s): 160736
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
Author
HDOJ
已经弱到要天天做水题啦!!!每天积累一点,现在重新开始,之前忙其他东西害的已经很弱了!!!!
简单的问题:a+b 啊啊啊啊
居然一开始就被输入输出挂了
while(scanf("%d%d",&a,&b)!=EOF) OJ常用的输入输出啊 啊 !!!
OK后居然Presentation Error 了!
记住,就是格式错误但答案对了 !
一般是忘记换行之类的 !
#include<cstdio>
int main()
{
int a , b ;
while(scanf("%d %d",&a,&b)!=EOF)
printf("%d\n",a+b);
return 0 ;
}
ORZ不要吐槽弱弱 ,努力练习!
相关文章推荐
- 基于MSP430F413水果电池供电的低功耗时钟
- Java数据结构与算法之数组排序——选择
- oracle start
- jquery动态移除/增加onclick属性详解
- 练习:360防丢卫士
- 无限与有限的矛盾
- 欢迎使用CSDN-markdown编辑器
- 利用vmprotect的凭证管理保护你的软件
- Linux命令行学习笔记
- Gradle project sync failed. Please fix your project and try again
- HTML学习记录<五> :列表
- HTML学习记录<四> :创建图像映射
- 域名解析的记录类型:A记录、CNAME、MX记录、NS记录
- HDU 1023 Train Problem II(组合数学)
- java 矩阵相乘
- 小米盒子增强版的使用
- UIPickerView组件的使用之随机点菜系统(一)——利用AutoResizing进行屏幕适配,拖线进行实现
- React 简介
- sublime软件安装和插件安装以及操作方法
- 二分图1