当前位置: 代码迷 >> 综合 >> HDU-1196(lowest bit)
  详细解决方案

HDU-1196(lowest bit)

热度:46   发布时间:2023-11-23 12:56:40.0
题目链接: https://vjudge.net/problem/HDU-1196
#include <cstdio>
#include <iostream>using namespace std;int lowbit(int x)
{return x&-x;
}
int main()
{int n;while(scanf("%d", &n) != EOF && n)printf("%d\n", lowbit(n));
}