#include <stdio.h> void main() { int i,j,n; scanf("%d",&n); for(i=n,j=0;i;i/=2)j=j*2+i%2; printf("%d\n",j); }
[此贴子已经被作者于2016-2-12 11:07编辑过]