hdoj1071 The area
来源:互联网 发布:域名过户费用 编辑:程序博客网 时间:2024/04/28 20:14
#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int T;
double x1,x2,x3,y1,y2,y3,a,b,c,ans;
scanf("%d",&T);
while(T--){
scanf("%lf%lf%lf%lf%lf%lf",&x1,&y1,&x2,&y2,&x3,&y3);
a=(y3-y1)/((x3-x1)*(x3-x1));
b=-2*a*x1;
c=y1+(b*b)/(4*a);
double d=(y2+y3)*(x3-x2)/2;
ans=a/3*(x3*x3*x3-x2*x2*x2)+b/2*(x3*x3-x2*x2)+c*(x3-x2)-d;
if(ans<0)
ans*=-1;
printf("%.2lf/n",ans);
}
}
- hdoj1071 The area
- hdoj1071 The area(数学题,积分)
- HDOJ1071
- hdoj1071
- The area
- The area
- The area
- The area
- The area
- The area
- The area
- The area
- The area
- The area
- 1071 The area
- hdu 1071 The area
- (hdu 1071)The area
- hdu 1071 The area
- Windows 7 正版驗證機制加油,又有 Hacker 以直接了當的方式破解了。
- 如何派生在类向导中不存在的类
- 电源接口脱落:只需120,为何戴尔报价1500?
- PL SQL problem Set
- 为ComboBox的item设置图片
- hdoj1071 The area
- MyEclipse j2me开发环境配置
- HOOK钩子机制学习笔记(1)
- 动态地往datagirdview中添加数据,当所添加的数据超过datagridview的显示范围后,滚动条就无法显示,程序出现假死状态,(scrollbars=both)
- Paradox of our times
- Windows 2000/XP/2003修改输入法列表排列顺序的办法
- DataGridView为行动态添加背景色
- 快速完成和读懂测试计划
- 关于Hibernate的批量删除