Make It Equal
There is a toy building consisting of nn towers. Each tower consists of several cubes standing on each other. The ii-th tower consists of hihicubes, so it has height hihi.
Let's define operation slice on some height HH as following: for each tower
Let's name slice as good one if its cost is lower or equal to kk (