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 |
这样算概率,有错吗?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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator