[HDOJ]1000-A+B Problem
A + B Problem
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 269734 Accepted Submission(s): 79750
Total Submission(s): 269734 Accepted Submission(s): 79750
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 2 3 4 5 6 7 8 9 |
#include <stdio.h> main() { int a,b; while(scanf("%d %d",&a, &b) != EOF) printf("%d\n",a+b); return 0; } |
版权声明
转载保留版权: 大D技研室 | 《[HDOJ]1000-A+B Problem》
本文链接地址:https://www.dadclab.com/archives/2865.jiecao
转载须知:如果您需要转载本文,请将版权信息,版权授权方式,以及本文的链接地址注明,谢谢合作。
大过年的,占大D沙发了……
@梦之翼 欢迎占沙发
我靠,绝世难题。题目没给A和B的范围,所以两个数字可以大于10的1000000次方的10000000次方的1000000次方
@刀之魂(Lieo) 呃。。这……
大D的留言回复好凶残,居然支持各种格式。~大D加油
@xushine 兔兔是说识别操作系统和浏览器么?
其实我也想学。。。时间时间时间时间时间时间时间时间时间
@第三人称 高中还是以学业为重,好好学习,考上大学,时间就有的是了。只要努力,什么时候都不晚的。
@大D
@第三人称 不要抠鼻子。你大D哥当年不就是没去上大学,于是只好现在重新考么
@大D 恩,咱一起奋斗!!!
@第三人称 fighting~~
你略水吧这个.....
@Bughue 没有最水,只有更水,懂不?