This reduces the instantaneous energy required to climb up the mountain against the acceleration of gravity. The winding road acts like a pulley system that makes work easier of climbing the mountain. Even though it may take longer distance, the energy expended will be lower in magnitude than climbing straight up the mountain.