Rosetta Problems

Sum of (XOR^K or 0)

https://atcoder.jp/contests/abc367/tasks/abc367_g