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:提供一个AC的思路吧,但是我用了1400MS

Posted by 574394335 at 2008-08-25 21:07:32 on Problem 2081
In Reply To:提供一个AC的思路吧,但是我用了1400MS Posted by:yogafrank at 2008-08-23 19:02:31
> 其实还是简单的计算其数字。但是关键就是在与查找是否这个数字已经出现。
> 如果用简单的O(N)的查找肯定会超时,所以这个时候可以HASH下。这样可以提高平均时间,事实证明的确可以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