A+B problem
来源:互联网 发布:网络取代电视 编辑:程序博客网 时间:2024/06/15 03:59
现在准备在杭电的oj上刷刷题,从第一题开始,慢慢刷,顺便锻炼一下自己的java
第一次刷,发现很多坑,用java提交一定要把自己的类命名为Main,不然系统无法编译通过。
import java.util.Scanner;public class Main{public static void main(String[] args) {// TODO Auto-generated method stubScanner input=new Scanner(System.in);while(input.hasNext()){int a=input.nextInt();int b=input.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
- getContextpath、getServletPath、getRealpath的不同
- mysql 事务的概念,事务的特性,事务的隔离级别的设置,
- matplotlib函数
- java学习基础第一讲
- 源生javascript 添加getElementByClass方法
- A+B problem
- <python核心编程第二版第八章>习题补充
- 20171031 java内存模型与gc
- 关于.tar.gz 的使用
- "Expression: _CrtIsValidHeapPoint(pUserData)"错误分析与解决
- java中的引用详解
- WEB基本
- Kafka
- Java-StringBuffer类