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 |
求gcd已经需要O(lgn)时间,你怎么O(n^2)In Reply To:我觉得理论上是n2的不过我写得很烦每次都要比较答案,然后每次其实都有个O(n)的清零,还有求gcd Posted by:xiaxia at 2006-03-27 14:07:38 > 导致o(n2)到了1000多ms 而n2logn的 用g++竟然刷到421ms g++比c++快很多啊。 > g++ 还是不错的阿 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator