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 zjut020 at 2009-02-27 19:27:25 on Problem 3219
In Reply To:统计一下2的个数,就0ms ac了 Posted by:yyr at 2008-02-21 20:18:03
>         m=n-k; a=b=c=0;
>         while(n=n>>1) a+=n;
>         while(m=m>>1) b+=m;
>         while(k=k>>1) c+=k;
>         if(a-b>c) printf("0\n");
>         else printf("1\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