D - Buying Shovels CodeForces - 1360D
Polycarp wants to buyexactlynnshovels. The shop sells packages with shovels. The store haskktypes of packages: the package of theii-th type consists of exactlyiishovels (1≤i≤k1≤i≤k). The store has an infinite number of packages of each type.Polyc...