首页 > 编程 > C++ > 正文

hdu 1000 A + B Problem 简单的输入输出(C、C++)

2019-11-11 02:45:49
字体:
来源:转载
供稿:网友
A + B PRoblem

Time Limit: 2000/1000 MS (java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 639542 Accepted Submission(s): 199680

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

本题输入两个数,然后进行相加并输出。

#include<stdio.h>int main(){ int n,m; while(scanf("%d%d",&m,&n)!=EOF) printf("%d/n",m+n); return 0;}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选