OJ-Problems-Source/HDOJ/1196_autoAC.cpp

14 lines
184 B
C++
Raw Normal View History

2016-08-13 10:51:15 +08:00
#include<iostream>
using namespace std;
int lowbit(int x)
{
return x&-x;
}
int main()
{
int n;
while(cin>>n&&n)
cout<<lowbit(n)<<endl;
return 0;
}