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:我的就没ac,大牛看看啊。。

Posted by cug_fish2008 at 2010-03-16 11:10:34 on Problem 2208
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:
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