UVa 10812 Beat the Spread! (陷阱)
来源:互联网 发布:mac svn客户端使用教程 编辑:程序博客网 时间:2024/06/05 13:21
10812 - Beat the Spread!
Time limit: 3.000 seconds
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1753
蛋碎了,被水题坑到了。。
完整代码:
/*0.018s*/#include<cstdio>int main(){int t, s, d;scanf("%d", &t);while (t--){scanf("%d%d", &s, &d);if (s < d || (s + d) & 1) puts("impossible");else printf("%d %d\n", (s + d) >> 1, (s - d) >> 1);}return 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!
- cocos2d-x节点(CCVertex.h)API
- cocos2d-x节点(ccUtils.h)API
- cocos2d-x节点(ccUTF8.h)API
- IDA 字符串解密脚本
- hdu 4771 Stealing Harry Potter's Precious
- UVa 10812 Beat the Spread! (陷阱)
- cocos2d-x节点(CCProfiling.h)API
- cocos2d-x节点(CCNotificationCenter.h)API
- shiro入门实例
- 总结C#保留小数位数
- C++的const引用
- Java工作队列和线程池
- 【回溯】全排列
- 在论坛中出现的比较难的sql问题:12(递归问题2 拆分字符串)