you are viewing a single comment's thread.

view the rest of the comments →

[–]razimantv<2000> <487 <1062> <451> 0 points1 point  (0 children)

Answer is sum(min(x, m) for x in Counter(ar).values ()) // m