When you do the switchback thing up the road, you're only facing the steepest part during the corners. Obviously. You're probably doing about the same amount of work, but if you go straight up you need to apply pretty close to peak force the whole way; if you zigzag you apply less force for more distance.