Buying Shovels

Problem Name:
Buying Shovels
Site:CodeForces
Links:
Tags:
Problem setters: