Rosetta Problems

Distinct colors

https://marisaoj.com/problem/279