|
|
Warp wrote:
> Suppose you have two trains of the same length travelling on the same
> track on opposite directions, towards each other.
>
> In the middle the track splits into a double track for a certain distance,
> but this distance is slightly smaller than the length of either train.
>
> The task is to make the trains pass each other so that they can continue
> their journey.
>
> The trains cannot be split and you can't remove anything from the trains.
> The track cannot be modified, and you cannot build additional track.
Suppose your trains are being driven by brains in jars, and on each of
the paths is a railway worker which will be inevitably killed if a train
is set to that path...
--
Tim Cook
http://empyrean.digitalartsuk.com
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------
Post a reply to this message
|
|