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

并不是说g++就一定要这么处理才能过

Posted by daofeng at 2005-05-23 13:42:02 on Problem 1473
In Reply To:但我一点处理都不做直接让G++编译怎么就过了 Posted by:frkstyc at 2005-05-23 12:56:24
大多数时候不会出现这样的问题
计算方法、运算顺序都会影响精度

有的程序误差小于1e-8,但是在0的时候正好计算出来-1e-9,如果不处理的话,答案就错了
有的程序精度只能到1e-6,不过在0的时候计算出来的值都是大于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