#include int fnCheckOneNum(int n){ int result=0; while(n>0){ if(n%2==1) ++result; n/=2; } return result; } int main(){ int n; int now=1, now_tmp; int d, i=0, j; int move_cnt=1, back_cnt=0; scanf("%d", &n); while(now!=n){ d=fnCheckOneNum(now); if(now+d<=n)now+=d; else{ ++i; ++back_cnt; printf("back_count:%d\n", back_cnt); for(j=0; j