Rosetta Problems

Rotating Stamp

https://atcoder.jp/contests/awc0180/tasks/awc0180_d