您的位置:首页 > 其它

[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不要吐槽弱弱 ,努力练习!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: