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

ft! 调了一下浮点精度就过了

Posted by T5 at 2004-11-12 20:54:42 on Problem 2036
我的浮点数判等函数

inline double abs(double a)
{
  return a>0?a:-a;
}
bool same_double(double a,double b)
{
  return abs(a-b)<0.00000001;
}

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