HDU1090
来源:互联网 发布:全球大数据峰会 编辑:程序博客网 时间:2024/06/05 00:59
A+B for Input-Output Practice (II)
Problem Description
Your task is to Calculate a + b.
Input
Input contains an integer N in the first line, and then N lines follow. Each line consists of a pair of integers a and b, separated by a space, one pair of integers per line.
Output
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.
Sample Input
21 510 20
Sample Output
630//HDU1090 基础题//A+B for Input-Output Practice (II) http://acm.hdu.edu.cn/showproblem.php?pid=1090//2017.06.22 by wyj#include#include using namespace std;int main(){int a, b, n;cin >> n;while (n--){scanf("%d%d", &a, &b);printf("%d\n", a + b);}return 0;}
阅读全文
0 0
- HDU1090
- HDU1090
- HDU1090 1091 1092 个人对题目解读
- hdu1090 - A+B for Input-Output Practice (II)
- HDU1090 A+B for Input-Output Practice (II)
- hdu1090 a+b问题2 N组数,N在前 20140722
- HTML基础整理(第一部分)
- 微信小程序分享转发
- java实现,中文财务读取金额方式
- 基于C# Winform的串口数据接收
- 画家问题
- HDU1090
- struts2 搭建开发环境
- 欢迎使用CSDN-markdown编辑器
- 键盘弹起收回监听
- Java学习笔记之集合(三):ArrayList集合的原理和特点
- 最简单的基于FFMPEG的转码程序 —— 分析
- Java.util.concurrent包学习(二)线程同步控制相关的类
- 校对并同步两个不同数据库的方法(VS 2010)
- ZigBee基础实验(一)--控制LED灯