#include<iostream.h>
#include<math.h>
//using namespace std;

 

int main()
{
    int a,i,jishu;
    while(cin>>a && a!=0)
    {
        jishu=0;
        i=0;
        while(!i)
        {
            i=a%2;
            a/=2;
            if(i==0)
                jishu++;
        }
        cout<<pow(2,jishu)<<endl;
    }
    return 0;
}

 

相关文章:

  • 2021-08-23
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2021-07-06
  • 2021-08-23
  • 2021-05-28
猜你喜欢
  • 2021-09-18
  • 2022-12-23
  • 2021-09-08
  • 2021-07-28
  • 2022-12-23
相关资源
相似解决方案