Magic multisets

Problem Name:
Magic multisets
Site:CodeForces
Links:
Tags:
Problem setters: