Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The Supply Ship 1

Status
Not open for further replies.

SamBones

Programmer
Aug 8, 2002
3,186
US
Not sure if this is a "Puzzle for Programmers", or just a puzzle, but here goes. First a word of warning, I won't have the answer until next month's issue, so I may not be able to tell you if you've solved it or not for one month. [bigsmile]

We need to get to the planet Omega from the planet Alpha (which has unlimited supplies). It's five months away. In between are four supply stations, Delta, Kappa, Sigma, and Phi, which are on a straight line and spaced evenly one month apart from the planets and/or each other. Our spaceship can only hold three months of supplies. The supply stations are empty but can hold two months supplies each. Using only our spaceship, what is the minimum amount of time needed to get from Alpha to Omega?


 
If Omega has no supplies, you just need to arrive there with one months supplies, and have left at least one months supplies on each space station.


 
for a real world example google Blackbuck raid refuling :)


A Maintenance contract is essential, not a Luxury.
Do things on the cheap & it will cost you dear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top