UVa 10812 Beat the Spread!
来源:互联网 发布:手机淘宝怎样收藏店铺 编辑:程序博客网 时间:2024/05/16 14:35
#include <cstdio>#include <iostream>#include <vector>#include <map>#include <algorithm>using namespace std;int main(){int n;int s, d;scanf("%d", &n);while (n-- > 0){scanf("%d%d", &s, &d);if (s < d || (s + d) & 1){printf("impossible\n");}else{printf("%d %d\n", (s + d) >> 1, (s - d) >> 1);}}return 0;}
0 0
- UVa 10812 - Beat the Spread!
- UVa 10812 Beat the Spread!
- UVa 10812 - Beat the Spread!
- UVa 10812 Beat the Spread! (陷阱)
- 10812 - Beat the Spread!
- Beat the Spread!
- Beat the Spread! (P2301)
- zoj2388----------------Beat the Spread!
- HDU1194:Beat the Spread!
- zoj_2388 Beat the Spread!
- hdu1194-Beat the Spread!
- zoj Beat the Spread!
- zoj2388 Beat the Spread!
- Beat the Spread!
- Beat the Spread!
- 1194:Beat the Spread!
- 1194 Beat the Spread!
- [1194]:Beat the Spread!
- Codeforces Round #103 (Div. 2) D. Missile Silos(spfa + 枚举边)
- java生成指定范围的随机数
- 你已经够矮了,那就爬到一个高处!(转)
- Java集合中那些类是线程安全的
- 中国的黑客究竟有多张狂?
- UVa 10812 Beat the Spread!
- MySQL数据库的概念
- c++学习笔记
- http://docs.oracle.com/cd/E18283_01/server.112/e17766/framework_errormessages.htm
- STL 树
- 自制jquery插件
- error:unknow filesystem grub rescue 的解决
- hdu-1142 A Walk Through the Forest
- CF 293 E Close Vertices (树的分治+树状数组)