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 Jimng at 2014-08-03 18:57:52 on Problem 3440
可以試試這Test Case:
Input:
1
5 25 576 171

Output:
Case 1:
Probability of covering 1 tile  = 54.5187%
Probability of covering 2 tiles = 38.7125%
Probability of covering 3 tiles = 1.4526%
Probability of covering 4 tiles = 5.3162%

可以試試優化那些公式的計算,
如果不行,也可以試把G++換成C++

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