Rosetta Problems

Bit Operation II

https://onlinejudge.u-aizu.ac.jp/problems/ITP2_10_B