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

O(n^2) 和 O(n^1.5) 就是不一样

Posted by seu_enic at 2009-04-02 15:37:29 on Problem 2363
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:
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