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

这样算概率,有错吗?

Posted by achilles at 2005-08-28 16:49:18 on Problem 2598
In Reply To:我理解成了交点个数的期望………… Posted by:TN at 2005-08-28 16:45:08
const double PI = acos(-1.0);

double f(double a)
{
	double d, t;
	if (a > 1) t = 1/a;
	else t = 1;
	d = 2*a*t*acos(t) - 2*sqrt(a*a - a*t*a*t) + 2*a;
	d /= PI;
	return d;
}

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