| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:我的就没ac,大牛看看啊。。In Reply To:怎么搞的 Posted by:zhouxiaozi at 2009-02-18 14:13:09
#include <iostream>
#include "math.h"
using namespace std;
double V(double a,double b,double c,double m,double n,double l)
{
return sqrt(4*a*a*b*b*c*c-a*a*(b*b+c*c-m*m)*(b*b+c*c-m*m)-b*b*(c*c+a*a-n*n)*(c*c+a*a-n*n)-c*c*(a*a+b*b-l*l)*(a*a+b*b-l*l)+(a*a+b*b-l*l)*(b*b+c*c-m*m)*(c*c+a*a-n*n));
}
double cos_x(int a,int b,int c)
{
return double(a*a+b*b-c*c)/(2*a*b);
}
int main()
{
int a,b,c,d,e,f;
scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
printf("%.4f",V(a,b,c,d,e,f)/12);
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator