Total distance kitna hai and initial petrol kitna hai car kaise pata chalega?

total distance kitna hai and initial petrol kitna hai car kaise pata chalega? and also co-ordinates of the petrol pump

Hey Sourav,

you don’t need distance, for each petrol pump, amount of petrol required is mentioned!

initial petrol is zero.

not required!

can’t pass any test cases

Sourav please take type as long long!, code logic is perfect!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.