Selling a Menagerie

Problem Name:
Selling a Menagerie
Site:CodeForces
Links:
Tags:
Problem setters: