Problem 3712 · Easy

Sum of Elements With Frequency Divisible by K

Count each value once, then add every occurrence of the values whose count is a multiple of k.

Open the interactive visualisation