mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
14 lines
184 B
C++
14 lines
184 B
C++
#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;
|
|
}
|