QOJ.ac

QOJ

Time Limit: 5 s Memory Limit: 512 MB Total points: 100

# 4743. Różnorodność

Statistics

Notes: In Subtask 2, it is guaranteed that there are only $C$ different numbers, but they are not guaranteed to be within $[1, C]$.