A + B Problem
来源:互联网 发布:冰点文库下载器mac版 编辑:程序博客网 时间:2024/05/18 04:33
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
2import java.util.Scanner; public class Main { //杭电这一题class名必须是Main,不然不能通过 public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(sc.hasNextInt()) { int a=sc.nextInt(); int b=sc.nextInt(); System.out.println(a+b); } } }
0 0
- problem 1000: A+B problem
- Problem 1000 A+B Problem
- Problem - 1000 A + B Problem
- A + B Problem
- A + B Problem
- 1000 A+B Problem
- 1001 A + B Problem
- A+B Problem
- 1000 A+B Problem
- A + B Problem
- A + B Problem
- 1000 A + B Problem
- 1000 A+B Problem
- A + B Problem
- A + B Problem II
- A + B Problem II
- POJ1001 -- A-B Problem
- A + B problem II
- ZOJ1654 Place the Robots
- Java线程:新特征-条件变量
- Kubernetes系列02:Kubernetes配置及参数说明
- (ssl1115)USACO 2.3 货币系统(背包/生成函数)(背包的方案总数)
- 军用软件国家标准
- A + B Problem
- Hopcroft-Karp算法模板(解决二分图最大匹配问题)
- 页面多个setInterval
- ngrok的使用
- LintCode 7:Binary Tree Serialization
- SpringMVC入门案例及请求流程图(关于处理器或视图解析器或处理器映射器等的初步配置)
- Android上常用的几种本地数据存储方式:2、文件存储数据
- mysql-connector-java 6.+ 使用
- [c++基础] 序