The answer is below.
Work Step by Step
It will not matter. After all, no energy is lost to friction, so the only change of energy has to do with the change in height of the piano. Since the piano has the same change in height in both cases, it gains the same amount of energy in both cases, meaning that the same amount of work is done.