zoj 2417 Lowest Bit
2011-12-24 23:20
441 查看
#include "iostream" using namespace std; int main() { int num; while (cin >> num && num != 0) { int count = 0, ans = 1; while (num % 2 != 1) { count++; num /= 2; } for (int i = 0; i < count; i++) ans *= 2; cout << ans << endl; } }
相关文章推荐
- zoj 2417 Lowest Bit(简单的模拟)
- zoj 2417.Lowest Bit
- ZOJ Problem Set–2417 Lowest Bit
- zoj 2417 Lowest Bit
- zoj 2417 Lowest Bit
- zoj 2417 Lowest Bit
- ZOJ 2417 Lowest Bit
- zoj 2417 Lowest Bit
- ZOJ 2417 Lowest Bit
- zoj 2417 Lowest Bit
- ZOJ 2417-Lowest Bit
- Discrete Logging hunnu10590 pku2417 fzu 1352 hit 1928 zoj 1898
- ZOJ 2417
- ZOJ 2417解题报告(炫酷)
- ZOJ 2417
- 2417_Lowest Bit
- ZOJ-2417
- zoj2417
- zoj2417
- zoj2417