Codeforces Vasya the Hipster
来源:互联网 发布:柯南 知乎 编辑:程序博客网 时间:2024/05/29 03:32
import java.util.Scanner;public class VasyaTheHipster {public static void main(String[] args) {Scanner scanner = new Scanner(System.in);while(scanner.hasNext()) {int a = scanner.nextInt();int b = scanner.nextInt();if(a >= b) {System.out.println(b+" "+(a-b)/2);} else {System.out.println(a+" "+(b-a)/2);}}}}
阅读全文
0 0
- Codeforces Vasya the Hipster
- CodeForces 581A Vasya the Hipster
- Codeforces Round #322 A Vasya the Hipster
- A. Vasya the Hipster
- Vasya the Hipster
- Codeforces Round #322 (Div. 2)A. Vasya the Hipster
- CodeForces - 581A Vasya the Hipster (水)
- codeforces——581A——Vasya the Hipster
- CodeForces 581A Vasya the Hipster(简单题)——Codeforces Beta Round #322 (Div. 2)
- Code Forces 581 A. Vasya the Hipster(水~)
- <Codeforces Beta Round #38> D. Vasya the Architect
- codeforces Vasya and Basketball
- Codeforces Vasya and Socks
- Vasya and String CodeForces
- Vasya and the Bus
- Vasya and the Bus
- Codeforces A. Vasya and Socks
- CodeForces 584CMarina and Vasya
- Spring事务机制中@Transactional失效的原因
- eclipse svn ignore设置无效,查看历史记录无效
- .NET是什么
- String 构造函数
- Guideline 5.1.1
- Codeforces Vasya the Hipster
- 【单例模式】的多种实现方式
- Java连接Sql Server 2008的简单数据库应用
- 【网络】OSPF协议
- 持续集成引擎 Hudson 和 Jenkins 的恩恩怨怨
- 移动VR游戏被资本看好,Multiverse获数千万美元A轮融资
- TCP协议中URG&PSH
- ssm分页问题:第二页数据删除后自动显示第一页数据
- C#把某个数组的一部分复制到另一个数组中的两种方法:Buffer.BlockCopy和Array.Copy