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(1)的方法好难啊

Posted by cnhawk at 2007-08-17 13:48:12
In Reply To:Re:请教大家一个问题,想了很久不知道如何实现 Posted by:frkstyc at 2007-08-16 23:35:23
> 分成4个字节查表,或者查到这个
> x|=x>>>1
> x|=x>>>2
> x|=x>>>4
> x|=x>>>8
> x|=x>>>16
> x^=x>>>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