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 ewen1023 at 2012-04-13 01:13:05 on Problem 2309
In Reply To:同样是位操作 Posted by:yizer at 2009-01-04 04:44:19
    scanf("%d",&t);
    while (t--){
        scanf("%d",&n);        
        printf("%d %d\n",(n&(n-1))|1,n|(n-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