Rosetta Problems

Colorful Star

https://atcoder.jp/contests/arc176/tasks/arc176_f