Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
统计一下2的个数,就0ms ac了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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator