Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
提供一个AC的思路吧,但是我用了1400MS其实还是简单的计算其数字。但是关键就是在与查找是否这个数字已经出现。 如果用简单的O(N)的查找肯定会超时,所以这个时候可以HASH下。这样可以提高平均时间,事实证明的确可以AC。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator