HDOJ 1000 A + B Problem

原创 2015年07月10日 20:48:21

 A + B Problem

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 483206    Accepted Submission(s): 153005


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
 

Recommend
We have carefully selected several similar problems for you:  1001 1089 1002 1090 1091

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


注意要求能一直输入,用EOF
版权声明:转载请注明出处

problem 1000: A+B problem

又趁着兴趣,把这个problem 1000看了看,发觉这道题纯粹是为了介绍acm代码提交方面问题的example,但还是用C做了一下,题目在这里(摸我),代码如下: #include int...

hdoj1002A + B Problem II

A + B Problem II Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others...

hdoj1002--A + B Problem II

Problem Description I have a very simple problem for you. Given two integers A and B, your job is to...

HDOJ 1002 A+B Problem II

A + B Problem II Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others...

[HDOJ1002] A + B Problem II 高数度加法运算

A + B Problem II Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K Problem D...
  • ajioy
  • ajioy
  • 2011年10月25日 23:01
  • 879

【FFT】 HDOJ 1402 A * B Problem Plus

FFT模板题。。。本渣是向kuangbin大大学习的。。。本zh

【BestCoder】 HDOJ 5109 Alexandra and A*B Problem

哎。。。比赛的时候想到做法了。。。细节没考虑好。。。 #include #include #include #include #include #include #includ...

HDOJ 1002 A + B Problem II(大数)

A + B Problem II Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others...

HDOJ 1002 A + B Problem II

~~~题目链接~~~ #include #include int main() { int i = 0, t = 0, c = 0, len = 0, len1 = ...

HDOJ 1402. A * B Problem Plus (FFT快速傅里叶变换)

Problem Description Calculate A * B.Input Each line will contain two integers A and B. Process to ...
  • Lonvon_
  • Lonvon_
  • 2016年09月24日 20:24
  • 446
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:HDOJ 1000 A + B Problem
举报原因:
原因补充:

(最多只允许输入30个字)