uva-two trees
来源:互联网 发布:淘宝卖家团队管理 编辑:程序博客网 时间:2024/05/21 09:02
很久之前的一道水题,代码如下
#include <stdio.h>
int main(){
double xa,ya,xb,yb;
while(scanf("%lf %lf %lf %lf",&xa,&ya,&xb,&yb)!=EOF)
{
double xo,yo,xc,yc,xd,yd;
if(xa==xb&&ya==yb)
printf("Impossible.\n");
else
{xo=(xa+xb)/2;
yo=(ya+yb)/2;
xc=xo+yo-ya;
yc=yo+xa-xo;
xd=xo+yo-yb;
yd=yo+xb-xo;
printf("%lf %lf %lf %lf\n",xc,yc,xd,yd);
}
}
return 0;
}
- uva-two trees
- UVA The Other Two Trees
- uva 10250 - The Other Two Trees
- uva-10250-The Other Two Trees
- Uva 10250 - The Other Two Trees
- uva 10250 - The Other Two Trees
- uva 10250 - The Other Two Trees
- UVA 10250 The Other Two Trees
- uva 10250 - The Other Two Trees
- UVa 10250 - The Other Two Trees
- UVa 10250 - The Other Two Trees
- UVa 10250 The Other Two Trees
- UVa 10250 - The Other Two Trees
- UVA 10250 The Other Two Trees
- UVA - 10250 The Other Two Trees
- UVA 10250 The Other Two Trees
- UVA - 10250 The Other Two Trees
- UVA - 10250 The Other Two Trees
- 2013年学习方向
- uva-迷宫题
- HashMap和Hashtable的比较
- 这两个类是java中进行key-value存储、查询的常用类,如果我们学习过哈希算法就会知道key-value查询的效率依赖于如何存储,换句话说,如果存的好,拿出来就容易,存的不好,拿出来就不方便。两
- 面向对象程序设计(OOP)的六大原则
- uva-two trees
- 单实例Singleton设计模式深入浅出
- java_简易画图板
- 随机数产生器
- 下面我将分享用Java制作简易画图板的过程。
- FlipView 样式和模板 来自msdn
- display tag 使用技巧(一)
- JAVA &和&&的区别
- JAVA读取Excel兼容2003、2007