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

Re:谁能帮我看看代码,为什么G++编译是对的,而VC++是错的,有一个数据差了一秒钟

Posted by wentu at 2007-02-09 00:15:17 on Problem 2854
In Reply To:谁能帮我看看代码,为什么G++编译是对的,而VC++是错的,有一个数据差了一秒钟 Posted by:Crying at 2006-07-12 01:19:14
恩,就是精度问题,我也wa了好几次呢。
在计算tmp时,把1.0变成1.0000,在C++和G++都可以ac了哈。

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