Rosetta Problems

Triple Shift

https://atcoder.jp/contests/arc136/tasks/arc136_b