Saturday, June 7, 2008
There is a ring road and there are some gas stations around it. Each gas station are some distance apart. Gas at particular gas station cab be less, exact or more to reach the next gas station.A vehicle needs to complete the round and gas at all the gas stations is sufficient enough to cover the full distance. Let vehicle mileage is “X”. From where will you start to complete the full distance.C1, C2, C3, C4, …, Cn are the amount of gas at gas stations and D1, D2, D3, …Dn are distances between gas stations.