HDU 1090 JAVA
来源:互联网 发布:淘宝新开网店如何推广 编辑:程序博客网 时间:2024/05/21 09:56
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
2
1 5
10 20
Sample Output
6
30
import java.util.*;class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); while(n>0){ int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a+b); n--; } }}
0 0
- HDU 1090 JAVA
- hdu acm hdu 2115 Java
- Exponentiation hdu 1063 java
- hdu 1313 (Java)
- 【Java】hdu 4043
- hdu 1242 Rescue<java>
- HDU 1002 JAVA
- hdu 2092(java)
- hdu 1063 java 高精度
- hdu 1106(java)
- hdu 1073(java)
- HDU-4762 Java高精度
- hdu 1002 java
- hdu 1089 java
- JAVA hdu 2192 MagicBuilding
- hdu 1001 java
- hdu 1002 java
- hdu 1003 java
- ReactNative学习实例(五)Picker和ProgressBar
- [LeetCode]310. Minimum Height Trees
- 调试手机中数据库的福音:Android-Debug-Database
- 使用OpenCV&&C++进行模板匹配
- 第一行代码第二版(郭霖著)笔记之第一章(你的第一行Android代码)
- HDU 1090 JAVA
- 010 editor OAT解析模板
- Oracle与Sql Serer的链接桥梁之透明网关的部署与配置详解(四)透明网关核心配置
- com口通讯数据处理
- Java代理讨论之静态代理
- 前端工具之WebPack解密之背景
- gdb和gdbserver的安装和调试
- 第一次实验(什么都不知道啊)
- Java中HashMap和TreeMap的区别深入理解