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

Re:用一个for(int i=1; i<n/2; i++)就 OK了,算到 sqrt(n) 的方法是遗漏了哪种情况吗?

Posted by LoyaltyJi at 2005-11-17 16:51:33 on Problem 1528
In Reply To:用一个for(int i=1; i<n/2; i++)就 OK了,算到 sqrt(n) 的方法是遗漏了哪种情况吗? Posted by:xianyunsc at 2005-08-22 11:15:44
>  
哪里啊!!!
就算到sqrt(n)就行了哈!!!
关键的就是要注意一下"1"这个特殊情况!!!^_^

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