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

再进一步优化

Posted by lijingwei at 2010-08-23 18:19:26 on Problem 2363
In Reply To:Re:暴搜,进一步“优化”。。。。 Posted by:smilerxz at 2009-08-04 21:24:01
我发现
for(a=1;a*a*a<=n;a++)//a是最小的数
    for(b=a;a*b*b<=n;b++)//b是第二小的数
。。。
更优化唉,但是是16ms。郁闷一下。

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