| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
看来要找一个完美的O(1)的方法好难啊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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator