Problem:- Codeforces 729C
Can someone explain how this testcase evaluates to -1?
TestCase 26
1 1 1000000000 1000000000
1 1000000000
1
Answer
-1
Output
1
The distance between the starting point and the first gas station is 1.
The distance between the first gas station and the destination is 10^9 -1.
Both can be covered using the car with capacity 10^9.
Am I missing something?