Rosetta Problems

Binary Representations and Queries

https://atcoder.jp/contests/arc151/tasks/arc151_d