From: Andrew Wagner Date: 2010-08-17T23:56:34+09:00 Subject: Re: can i do this in ruby? a simulation process --0003255590528aedf6048e062744 Content-Type: text/plain; charset=UTF-8 Bruce, In trying to code this, I would NOT consider people going from the second city back to the first. I don't think the requirements give any indication that you should be looking at that. On Tue, Aug 17, 2010 at 10:36 AM, Bruce Wayner wrote: > OR like this one > > Example: > > Vehicle A took 30 seconds to transfer 1 passenger to the second city > Vehicle B took 25 seconds to transfer 2 passenger to the second city > Vehicle C took 45 seconds to transfer 3 passenger to the second city > Vehicle D took 24 seconds to transfer 4 passenger to the second city > Vehicle E took 43 seconds to transfer 40 passenger to the second city > > Vehicle A took 20 seconds to travel back to the first city > Vehicle B took 35 seconds to travel back to the first city > Vehicle C took 50 seconds to travel back to the first city > Vehicle D took 34 seconds to travel back to the first city > Vehicle E took 45 seconds to travel back to the first city > > Vehicle A took 30 seconds to transfer 4 passenger to the second city > Vehicle B took 25 seconds to transfer 2 passenger to the second city > Vehicle C took 45 seconds to transfer 1 passenger to the second city > Vehicle D took 24 seconds to transfer 40 passenger to the second city > Vehicle E took 43 seconds to transfer 3 passenger to the second city > ... > .. > ..until reaches 500 people > people transfer: 500 > Total Time: 800.9 > -- > Posted via http://www.ruby-forum.com/. > > --0003255590528aedf6048e062744--