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 2008011292 at 2010-02-22 22:28:01 on Problem 2309 and last updated at 2010-02-22 22:29:55
对于x的二进制表示(unsigned long)

将其中的最后一个1挪到最后一位是最小值;
最后一个1后面全赋值为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