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 ACM06Louty at 2007-10-16 19:36:34 on Problem 2500
In Reply To:可是我实在不知道除了sin哪里还有影响精度的问题,按说四则运算都没问题吧。。 Posted by:ACM06Louty at 2007-10-16 19:32:07
	double angle = ( double )( pos[e] - pos[b] ) * pi * 2.0 / ( double )n;

	return ( double ) d * ( double ) d / 4.0 * sin ( angle ) / 2.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