Rosetta Problems

K. Distinctness Queries

https://kilonova.ro/problems/1878