ACM路程----1085 A+B for Input-Output Practice (I)
来源:互联网 发布:朱迪福斯特 知乎 编辑:程序博客网 时间:2024/06/14 20:26
题目描述:
Your task is to Calculate a + b. Too easy?! Of course! I specially designed the problem for acm beginners. You must have found that some problems have the same titles with this one, yes, all these problems were designed for the same aim
输入:
The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.
输出:
For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.
样式输入:
1 5
10 20
样式输出:
6
30
代码如下:
#include<stdio.h>
int main()
{
int a,b;
while(scanf("%d %d",&a,&b)!=EOF)
printf("%d\n",a+b);
return 0;
}
0 0
- ACM路程----1085 A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice (I)
- A+B for Input-Output Practice(I)
- 触及办事质量黑白、是否跟商家承诺的一致
- ORACLE会话连接进程三者总结
- Android canvas.drawBitmap实现透明效果
- 开发团队的效率
- 无线wifi连接方式。
- ACM路程----1085 A+B for Input-Output Practice (I)
- ACM----1086 A+B for Input-Output Practice (II)
- 即可方便多说了那个疯狂了的后果东方红韩国
- ACM---1087: A+B for Input-Output Practice (III)
- 高负荷房价会根据各航空母舰赶快感觉烘干机烘干
- ACM---1088: A+B for Input-Output Practice (IV)
- 查看Android程序启动时间
- ACM---1089: A+B for Input-Output Practice (V)
- Android下一行平均分布图片的布局