Thanks! On that website the exact same solution is given. I think I have another one, but it might turn out to be the same

.
A long time ago Moubinool posted a problem. I can't remember what it sounded like, but ti was similar to this: given some numbers around the circle s.t. their sum is

, prove that we can choose one s.t. all the partial sums (in a clockwise direction) are

. We can apply this here, considering the gas stations as positive numbers (because the car can get more fuel) and the gaps between them as negative numbers. My solution to this problem was, however, a bit longer.