1071The area
来源:互联网 发布:淘宝网二手 编辑:程序博客网 时间:2024/05/06 18:56
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{ int T;
cin>>T;
while(T--)
{double x1,x2,x3,y1,y2,y3;
cin>>x1>>y1>>x2>>y2>>x3>>y3;
double a,b,c,k,m,s1,s2,s;
a=(y2-y1)/(x2*x2-2*x1*x2+x1*x1);
b=(-2)*a*x1;
c=(4*a*y1+b*b)/(4*a);
k=(y3-y2)/(x3-x2);
m=y2-k*x2;
s1=a*x3*x3*x3/3+b*x3*x3/2+c*x3-k*x3*x3/2-m*x3;
s2=a*x2*x2*x2/3+b*x2*x2/2+c*x2-k*x2*x2/2-m*x2;
s=s1-s2;
cout<<setiosflags(ios::fixed)<<setprecision(2)<<s<<endl;
}
return 0;}
0 0
- 1071 The area
- hdu 1071 The area
- (hdu 1071)The area
- hdu 1071 The area
- hdu 1071 The Area
- HDU 1071 The area
- Hdu 1071 - The area
- HDU 1071 The area
- HDU 1071 The area
- hdu 1071 The area
- HDU 1071 The area
- 1071—The area
- hdu 1071 - The area
- hdu-1071 The area
- 1071The area
- hdu 1071 The area
- The area (HDU 1071)
- HDOJ 1071 The area
- 开通技术博
- 1052Tian Ji -- The Horse Racing
- 1061 N^N
- Cracking The Coding Interview 2.2
- 感
- 1071The area
- 1076 An Easy Task
- 深入理解Java异常处理机制
- tcflush
- x264编码指南——码率控制
- ubuntu执行sudo apt-get update时出现"Hash校验和不符"
- IOS4.6.3 真机调试
- openSUSE编解码包一键安装
- 开源中国提取博客测试