uva 10250 - The Other Two Trees
来源:互联网 发布:刷枪软件手机版 编辑:程序博客网 时间:2024/06/05 12:44
用旋转向量
#include<iostream>#include<stdio.h>using namespace std;int main(){ double x1,y1,x2,y2,x3,y3,x4,y4,cx,cy; while(scanf("%lf%lf%lf%lf",&x1,&y1,&x2,&y2)!=EOF) { if(x1==x2 && y1==y2) printf("Impossible.\n"); else { cx=(x1+x2)/2; cy=(y1+y2)/2; x1-=cx; x2-=cx; y1-=cy; y2-=cy; x3=-y1; y3=x1; x4=-x3; y4=-y3; printf("%lf %lf %lf %lf\n",x3+cx,y3+cy,x4+cx,y4+cy); } } return 0;}
- 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
- UVA 10250-The Other Two Trees
- UVA-10250 The Other Two Trees
- ubuntu的virtualbox使用序幕(情感历程)
- 程序员面试什么最重要?
- android学习笔记---57_采用方向传感器实现指南针,android设备传感器介绍,以及使用方法
- VB Picture不能显示全部图片怎么办?
- linux platform 驱动模型分析
- uva 10250 - The Other Two Trees
- 怎样才能做好技术团队管理
- 服务管理
- VC MFC进程条(CProgressCtrl)控件
- C++中数学函数的使用方法.doc
- C++常见编译错误分析总结
- android学习笔记---57前准备:认识android设备中的传感器
- Machine Learning week 3 programming exercise logistic regression
- hadoop mapreduce 学习(-)