hdu1194
来源:互联网 发布:ios 淘宝详情页 编辑:程序博客网 时间:2024/05/18 01:39
#include<stdio.h>
int main()
{
int x, y, m, n, t, N;
scanf("%d", &N);
while(N--)
{
scanf("%d%d", &x, &y);
if((x<y) || (x+y)%2)
printf("impossible\n");
else
{
m = (x+y)/2;
n = x - m;
if(m > n)
{
t = m;
m = n;
n = t;
}
printf("%d %d\n", n, m);
}
}
}
- hdu1194
- hdu1194
- hdu1194
- HDU1194
- HDU1194:Beat the Spread!
- hdu1194-Beat the Spread!
- hdu1194(水)
- hdu1194 Beat the Spread!
- HDU1194 POJ2301 UVA10812 ZOJ2388 Beat the Spread!【数学+水题】
- JAVA 抽象类
- SQL Server 2005 不允许远程连接解决方法
- LINUX内核编译选项-1
- 五步评估Ad Hoc报表工具
- linux-0.11调试教程,update_line()函数分析,和update_line()函数的数据模型
- hdu1194
- memcached完全剖析–1. memcached的基础
- BroadcastReceiver(一)
- 用Registry Trash Keys Finder删除Total Uninstall注册表中无用信息,解决注册时必须强制网络访问问题
- LINUX内核编译选项-2
- 训练指南 uva 11729 重载运算符比较vector大小
- 阿里云JAVA安装
- LINUX内核编译选项-3
- 关于iOS sqlite3_prepare_v2 调用失败的问题