Rosetta Problems

Weapon's Arrangement

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/782