A+B
2016-05-16 10:30
260 查看
总时间限制: 1000ms
内存限制: 1000kB
描述
输入两个数A,B求出A+B;
输入A B输出A+B样例输入
样例输出
总时间限制: 1000ms
内存限制: 1000kB
描述
输入两个数A,B求出A+B;
输入A B输出A+B样例输入
1 2 18 22
样例输出
3 40
参考答案:
<span style="font-size:18px;">import java.util.*; public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); int a=0,b=0; while(in.hasNext()){ a=in.nextInt(); b=in.nextInt(); System.out.println(a+b); } } }</span>
相关文章推荐
- Java入门之数组
- 使用Log4J进行日志操作
- Java异常处理和设计
- 研华IO卡C#调用
- AtomicInteger源码分析
- 对开源调度器的评价
- matlab 画图数据导入
- 排序(三) 选择排序
- css3-animation图层放大效果
- 位、字节、字符
- Dubbo与Zookeeper、Spring整合使用
- 移动端横屏的JS代码(beta)
- 工程云存储软件
- CodeForces 552D Vanya and Triangles
- CSS简单图片墙布局(使用margin、float布局)
- Linux redis 3.2环境搭建以及开启启动配置
- AFNetWorking 3.0 迁移指南
- SAM和APM
- 中国黑客传说:游走在黑暗中的精灵
- 解决Xamarin Android墙的问题