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

WA的注意一下。。

Posted by DMKaplony at 2010-01-28 07:07:27 on Problem 2507
如果你是用的
h1 = sqrt(x * x - l * l);
h2 = sqrt(y * y - l * l);
cc = (h1 * h2) / (h1 + h2);
然后用cc和c比较的话。。
一定要
l = 0;
r = gmin(x, y);//这里不能图省事。。只赋一个x或y是不对的。要不然就根号负的了。。
WA死我了。。

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