UVA 10250 The Other Two Trees
来源:互联网 发布:qq蛇蛇争霸网络不稳定 编辑:程序博客网 时间:2024/05/17 04:26
#include <cstdio>#include <cmath>int main() {double x1, y1, x2, y2;double x3, y3, x4, y4;double a, b;while (scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2) != EOF) {if (fabs(x1 - x2) < 1e-8 && fabs(y1 - y2) < 1e-8) {printf("Impossible.\n");continue;}a = (y1 - y2 + (x2 - x1)) / 2; b = (y1 - y2 - (x2 - x1)) / 2;x3 = x1 + a;x4 = x1 - b;y3 = y1 - b;y4 = y1 - a;printf("%.10lf %.10lf %.10lf %.10lf\n", x3, y3, x4, y4);}return 0;}
0 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
- 快速排序
- 栈的基本操作
- android Activity 的几种跳转方式
- test1
- unicode ansi utf-8 unicode_big_endian编码的区别
- UVA 10250 The Other Two Trees
- POJ335-Rotating Scoreboard
- leetcode 刷题之路 11 Reverse Nodes in k-Group
- Ubuntu下QT的安装详细教程
- pads9.5实战攻略与高速pcb设计 PDF 高清扫描 电子版
- CSS
- andorid ANR keyDispatchingTimedOut的原因和解决之道
- lvs+keepalived 和 haproxy+heartbeat
- c++与java的优缺点