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:怎么我的是1999.9937就过不了呢?这个程序有什么问题吗,请大大帮忙看一下In Reply To:怎么我的是1999.9937就过不了呢?这个程序有什么问题吗,请大大帮忙看一下 Posted by:ecjtubaowp at 2006-12-24 17:05:11 > //V=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)))/12 > //a=AB,b=AC,c=AD,l=BC,m=BD,n=CD; > #include<stdio.h> > #include<math.h> > int main() > { > double a,b,c,l,m,n; > double V; > while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&l,&m,&n)!=EOF) > { > V=pow(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),0.50000); > V/=12.0; > printf("%.20lf\n",V); > } > > } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator