UVA-438- The Circumference of the Circle
来源:互联网 发布:开淘宝店发货流程 编辑:程序博客网 时间:2024/04/28 06:20
以下是本题的算法:
#include<stdio.h>#define PI 3.141592653589793int main(){ freopen("in.txt","r",stdin); double x1,y1,x2,y2,x3,y3,c; while(scanf("%lf%lf%lf%lf%lf%lf",&x1,&y1,&x2,&y2,&x3,&y3)!=EOF) { double a2=pow(x1-x2,2)+pow(y1-y2,2); double b2=pow(x2-x3,2)+pow(y2-y3,2); double c2=pow(x3-x1,2)+pow(y3-y1,2); double r2=4*a2*b2*c2/(pow(a2+b2+c2,2)-2*(a2*a2+b2*b2+c2*c2)); printf("%.2lf\n",PI*sqrt(r2)); } return 0;}
0 0
- UVa 438 - The Circumference of the Circle
- UVA-438- The Circumference of the Circle
- uva 438 The Circumference of the Circle
- UVa 438 The Circumference of the Circle (计算几何)
- UVA 438 - The Circumference of the Circle(计算几何)
- uva 438 - The Circumference of the Circle(几何)
- 438 - The Circumference of the Circle【几何】
- The Circumference of the Circle
- pku2242The Circumference of the Circle
- zoj1090 The Circumference of the Circle
- ZOJ1090 The Circumference of the Circle
- POJ 2242 The Circumference of the Circle
- poj 2242 The Circumference of the Circle
- zoj 1090 The Circumference of the Circle
- HOJ 1439 The Circumference of the Circle
- hdu 1374 The Circumference of the Circle
- POJ 2242 - The Circumference of the Circle
- POJ 2242 The Circumference of the Circle
- 有道无术,术可求;有术无道,止于术
- Omap4430 及TI最新缩写词
- 2014-03-12
- 八核手机仅888元 热门超值手机搜罗
- mysql 多表级联
- UVA-438- The Circumference of the Circle
- 酷派大神领衔 2000元内高性能手机盘点
- libevent实现http server
- linux根文件系统
- 开源 免费 java CMS - FreeCMS1.7 系统配置
- java中常用的字符串截取方法
- Struts2入门一搭建开发环境及相应案例
- 企业
- 《java多线程设计模式 第三章Guarded Suspension Pattern》