uva10250
来源:互联网 发布:网络推广计划表 编辑:程序博客网 时间:2024/06/07 15:44
向量旋转
给你正方形以对角线坐标求另外对角线坐标
计算要仔细
#include<stdio.h>void 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); } }}
0 0
- uva10250
- uva10250
- UVA10250-另两棵树
- 1uva10250(几何计算)
- UVA10250-The Other Two Trees
- UVA10250 The Other Two Trees
- uva10250 The Other Two Trees
- UVA10250 The Other Two Trees
- UVA10250 The Other Two Trees
- UVA10250 - The Other Two Trees
- UVa10250 – The Other Two Trees
- Python搜索文件
- java 数据流DataOutputStream和DataInputstream
- 【Leetcode系列之一】Leetcode OJ 10道入门题研究
- 【LeetCode】Reverse Integer
- [c.y.j]spring redis utils
- uva10250
- 并发管理器1——概念
- Sublimetext3如何安装packagecontrol办法娇
- 20140503
- 黑马程序员---类和构造方法
- js:对象的创建(为prototype做铺垫)
- Linux下which、whereis、locate、find 命令的区别
- C++ Primer 第五版 学习摘要(一)
- 添加第三方类库造成的linker command failed with exit code 1 (use -v to see invocation)的错误调试