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 keefo at 2008-04-08 17:45:47 on Problem 2309 and last updated at 2008-04-08 17:55:29
n=((X-1)^X);
b=X&~n;
if(n==2*X-1) printf("1 %u\n",n);
else printf("%u %u\n",b+1,b+n);

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