#50 THE SAFE


The 'Royal Bank of Cherryland' keeps all the king's jewels in a safe with six locks. These locks can be opened by typing the correct code number on a control panel.

The control device works as follows:

KEY ACTION 0 closes all six locks 1 opens locks 4 and 6 if 2 and 3 are open 2 opens lock 4 if 1 and 3 and 5 are closed 3 switches the state (open/closed) of lock 1 AND switches the state (open/closed) of lock 5 4 opens locks 2 and 5 if 1 is closed closes locks 3 and 6 if 1 is open 5 closes locks 1 and 3 and 6 if 2 is open opens lock 5 if 2 is closed 6 opens lock 1 if 3 and 4 and 6 are closed 7 opens lock 3 if 1 and 3 are closed opens lock 5 if 1 and 3 are open 8 closes locks 3 and 5 if 2 and 3 are open closes locks 4 and 6 if 2 and 3 are closed 9 opens locks 1 and 5 if 2 is closed
Note: nothing happens, if not all requirements are met, e.g. if lock 2 is open and 3 is closed pressing the key '1' won't change anything.

Give a five number code which opens the safe if all locks are closed!

Solution

Back to Problem Overview

Back to Main Page


© Andreas Rottler


visitors:
month:
today:
online:
since 12.11.2002