| ||||||||||
| 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 | |||||||||
O(n^2) 和 O(n^1.5) 就是不一样for ( p = 1 ; p <= n ; p++ )
for ( q = p ; q <= n ; q++ )
...
for ( p = 1 ; p <= n ; p++ )
for ( q = p ; p * q <= n ; q++ )
...
the former: 2363 Accepted 444K 610MS G++ 662B
the latter: 2363 Accepted 444K 0MS G++ 666B
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator