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 xiangsanzi at 2006-10-21 09:01:49
In Reply To:EPS不能取1e-9,要1e-10或者更高精度 Posted by:snoopy at 2006-10-21 08:48:45
> 枚举实现,结果挂了,看了一下discuss发现别人判是否相等都是用的fabs()>0,我用fabs()>1e-9就挂了,改成>0也过了,测了一下只要是1e-10或者更高精度都是可以过的
> 
> 被1e-9的经验主义害死了,ft

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