sgu162:Pyramids
来源:互联网 发布:sql语言具有查询功能吗 编辑:程序博客网 时间:2024/06/10 05:10
题意:
给出四面体AB,AC,AD,BC,BD,CD,求体积。
分析:
#include <cstdio>#include <cmath>using namespace std;int main(){double a, b, c, d, e, f, D, E, F, V;scanf("%lf%lf%lf%lf%lf%lf", &a, &b, &c, &f, &e, &d);D = b*b+c*c-d*d;E = a*a+c*c-e*e;F = a*a+b*b-f*f;V = sqrt(a*a*b*b*c*c-(a*a*D*D+b*b*E*E+c*c*F*F)/4+D*E*F/4)/6;printf("%.4lf", V);return 0;}
0 0
- sgu162:Pyramids
- sgu162 Pyramids 四面体面积
- sgu162
- Pyramids
- Pyramids
- Image pyramids
- L - Pyramids
- zoj 2459 Pyramids
- 1701. Cannonball Pyramids
- Exploring Pyramids poj2795
- soj - 1701 - Cannonball Pyramids
- \tutorial_code\ImgProc\Pyramids.cpp
- [递推]Exploring Pyramids
- poj 2795 Exploring Pyramids
- [BFS]HOJ2979Escape from Pyramids
- UVALive - 3516 Exploring Pyramids
- 实现图像pyramids
- 1362 - Exploring Pyramids
- 复数
- $.each()操作json数据
- quaz2d整理
- Window8专业版免序列号激活工具下载地址
- VS2013 MFC ODBC连接SQL SERVER数据库编程(一)
- sgu162:Pyramids
- 读后笔记之《天才训练指南》
- POJ 2750
- 网络编程Socket之SocketOption参数
- Android适配问题初认识
- iOS修改Toolbal使能后的颜色
- ios基础整理
- 读后笔记之《怎么练习一万小时》
- POJ - 1182 食物链 并查集升级版