Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:怎么我的是1999.9937就过不了呢?这个程序有什么问题吗,请大大帮忙看一下

Posted by lianzhouxiaowu at 2009-10-15 17:20:06 on Problem 2208
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator