Two cyclists who weigh the same and have identical bicycles…

Two cyclists who weigh the same and have identical bicycles ride up the same mountain, both starting at the same time. Joe rides straight up the mountain, and Bob rides up the longer road that has a lower grade. Joe gets to the top before Bob. Ignoring friction and wind resistance, which one of the following statements is true?