ZOJ 2388 Beat the Spread!
来源:互联网 发布:软件随想录 txt 编辑:程序博客网 时间:2024/06/05 00:19
//2615589 2011-08-04 21:39:04 Accepted 2388 C 0 160 ylwh!//2615587 2011-08-04 21:36:35 Wrong Answer 2388 C 0 160 ylwh!//2615574 2011-08-04 21:29:22 Wrong Answer 2388 C 0 160 ylwh!#include <stdio.h>int main(){int n, s, d, x, y;scanf("%d", &n);while(n--){scanf("%d%d", &s, &d);x = s + d;y = s - d;if(x % 2 || y % 2 || y < 0)//条件竟然写错了.....Orz.....printf("impossible");elseprintf("%d %d", x / 2, y / 2);if(n) printf("\n");} return 0;}
- ZOJ 2388 Beat the Spread!
- zoj 2388 Beat the Spread!
- ZOJ 2388 Beat the Spread!
- ZOJ 2388 Beat the Spread!
- zoj Beat the Spread!
- ZOJ Problem Set - 2388 Beat the Spread!
- zoj 2388.Beat the Spread!
- Beat the Spread!
- Beat the Spread! (P2301)
- zoj2388----------------Beat the Spread!
- HDU1194:Beat the Spread!
- 10812 - Beat the Spread!
- zoj_2388 Beat the Spread!
- hdu1194-Beat the Spread!
- zoj2388 Beat the Spread!
- Beat the Spread!
- Beat the Spread!
- 1194:Beat the Spread!
- Python Unicode与中文处理
- C++_静态成员
- android:layout_width和android:width的区别
- CCSpriteBatchNode
- 学习笔记—多线程同步与互斥
- ZOJ 2388 Beat the Spread!
- 2011-8-4 21:37:11
- Linux最大线程数及最大进程数
- 传值还是传引用(2) — C++
- google memcached 安装
- c++开发
- 初学者简易 .vimrc 编写指南
- 异常处理机制
- html中的特殊字符集合