理工大学ACM平台题答案关于C语言 1010 A+B for Input-Output Practice (I)
2013-12-20 21:07
543 查看
A+B for Input-Output Practice (I)
Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
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>
void main()
{
int n,m;
while(scanf("%d%d",&n,&m)!=EOF)
{
printf("%d\n",m+n);
}
}
相关文章推荐
- 读c语言深度剖析 -- typedef小结(3) 定义结构体
- 理工大学ACM平台题答案关于C语言 1006 Sum Problem
- [分享] C++ How to Program, 8/E (C++大学教程 第8版) 英文版PDF下载
- c/c++各种字符、字符串类型转换
- c语言if-else的效率比较
- socket穿透代理代码(C++版)
- 理工大学ACM平台题答案关于C语言 1014 A+B for Input-Output Practice (V)
- C++对带有分隔符的字符串 分割为数字的通用解决方案
- C++编程规范之24:总是编写内部#include保护符,绝不要编写外部#include保护符
- C++词典
- C++ 继承的访问权限
- C语言经典著作导读
- 寻找C语言和.NET之间的桥梁
- ubuntu11.10搭建eclipse C++开发环境
- usaco-Calf Flac
- c语言的陷阱与缺陷小记
- 非零基础学习iOS开发1-C语言
- C++命名空间 .
- c++我回来了,工作回顾
- C++闭包: Lambda Functions in C++11