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

请教下为什么有些人讲要排序,我排序270+ms,不排序0ms

Posted by 30018347 at 2009-05-24 00:21:36 on Problem 2613
算法很简单,约掉该约的,然后可以开始乘,reuslt>某个数(1000000000)就开始除分母,result<某个数(0.0001)就开始乘分子。这样就可以了。不用排序阿。

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