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 lcjh at 2009-07-02 15:22:44 on Problem 2724
判断二进制是否之差一位,我一开始自己写得,后来发现有这个好东西,位运算太强大了!
C=A^B;
C&&((C&(C-1))==0)

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