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:能解释一下算法为什么这样呢?

Posted by frkstyc at 2005-05-17 23:09:59 on Problem 2417
In Reply To:能解释一下算法为什么这样呢? Posted by:egmna at 2005-05-17 23:07:20
Shanks的这个算法……我说不清楚啦,虽然我明白是为什么~~~
总之它就是快在把sqrt(n)的枚举换成了O(1)或者O(logn)的查找

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