5. In the race between the tortoise and the hare, the hare initially ran quickly, taking the lead over the slowly crawling tortoise. When the hare believed it could win, it stopped for a nap. Meanwhile, the tortoise maintained a steady pace throughout the race. When the hare woke up and ran towards the finish line, it found that the tortoise had already arrived. The graph that can describe the relationship between distance and time during the race is ( ).
5. B.

Since the turtle crawls at a constant speed, option D is not correct.

When the rabbit rests, its speed is 0, so the distance during this period is constant. Therefore, options C and E are not correct.

Since the turtle eventually wins, option A is not correct, and option B is correct.