Mirror RCPC 2023 Day 1 | K. Distinctness Queries

This was the problem page during the contest. Access the current page here.