poj_2242
2015-12-13 20:13
169 查看
#include <cstdio> #include <cstring> #include <algorithm> #include <cmath> #include <queue> #include <cstdlib> using namespace std; #define clc(s,t) memset(s,t,sizeof(s)) #define PI 3.141592653589793 double dis(double a,double b,double c,double d){ return sqrt((c-a)*(c-a)+(d-b)*(d-b)); } int main(){ double a,b,c,d,e,f; while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){ double s = fabs(a*d+b*e+c*f-d*e-a*f-b*c); printf("%.2f\n",PI*dis(a,b,c,d)*dis(a,b,e,f)*dis(c,d,e,f)/s); } return 0; }
相关文章推荐
- 无法定位序数***于动态链接库libeay32.dll
- TCP/IP网络协议
- 信息安全系统设计基础第十四周学习总结
- 心灵鸡汤
- 百度技术沙龙第48期回顾:大规模机器学习(含资料下载)
- Subline Text默认设置文件Preferences.sublime-settings—Default详解
- Android--Apache HttpClient
- 【FPGA】相关介绍
- backbone学习时练习的简单示例
- LeetCode 231:Power of Two
- 过滤器统计访问次数
- C++设计模式
- js bool true false 真假比较
- GPS卫星信号(一):测距码信号
- HDU 1548 A strange lift
- 【特别重要!!!快排的partition思想】【leetcode题解】【M】【71】Kth Largest Element in an Array
- Android 自定义帧动画
- C++模板简单介绍
- react-native源码分析系列四 ReactRootView
- HDU 1505 求最大子矩阵(二维)