Prisoner to be freed

The warden meets with 23 new prisoners when they arrive. He tells them, "You may meet today and plan a strategy. But after today, you will be in isolated cells and will have no communication with one another.

"In the prison is a switch room, which contains two light switches labeled 1 and 2, each of which can be in either up or the down position. I am not telling you their present positions. The switches are not connected to anything.

"After today, from time to time whenever I feel so inclined, I will select one prisoner at random and escort him to the switch room. This prisoner will select one of the two switches and reverse its position. He must flip one switch when he visits the switch room, and may only flip one of the switches. Then he'll be led back to his cell.

"No one else will be allowed to alter the switches until I lead the next prisoner into the switch room. I'm going to choose prisoners at random. I may choose the same guy three times in a row, or I may jump around and come back. I will not touch the switches, if I wanted you dead you would already be dead.

"Given enough time, everyone will eventually visit the switch room the same number of times as everyone else. At any time, anyone may declare to me, 'We have all visited the switch room.'

"If it is true, then you will all be set free. If it is false, and somebody has not yet visited the switch room, you will all die horribly. You will be carefully monitored, and any attempt to break any of these rules will result in instant death to all of you"

What is the strategy they come up with so that they can be free?




Similar Riddles

You are given 16 witch hats. The hats are divided in four different colours – red, blue, green and yellow. Every colour has been assigned to four hats. Now each of the hat will be glued with a label of an arithmetic sign – ‘+’, ‘-‘, ‘x’ or ‘/’. But you can label one sign only once on one colour. In such an arrangement, the hats can be uniquely defined by its colour and symbol.

Can you arrange all the 16 hats in a 4x4 grid in a fashion that no two rows and columns have a repetition of colour or sign?
We have arranged four hats in the below picture to assist you.

Arrange Hats in Squares

Asked by Neha on 17 May 2021


Decode below rebus
D
N
A
T
S , D

Asked by Neha on 14 May 2021

As easy as you can get into me, it is as hard to get out of me.

Do you know what I am?

Asked by Neha on 23 Apr 2023


In four steps you need to move the word 'cold' From 'warm' by replacing one alphabet at a time such that every word formed at each step is acceptable in English Dictionary.

Asked by Neha on 23 Aug 2024

Replace the question mark with the correct number below.

Tree Problem

Asked by Neha on 19 Mar 2024

Baseball bat and ball cost $100. If the bat cost $99 more than the ball, what is the cost of each?

Asked by Neha on 23 May 2021


You are a cab driver who pools passengers. You pick 3 people from a destination and drop 1 after an hour. 2 people climb aboard at the same time and you drop 3 at the next destination. After some time, you pick 2 passengers only to drop 1 after a short distance where 3 more passengers climb up the cab. You leave the rest of the passengers one by one to their destination and then come back home.

Can you tell the eye color of the cab driver?

Asked by Neha on 06 Apr 2023

What runs around the whole yard without moving?

Asked by Neha on 14 May 2021

The pound is not a finish.

We are sharing a few instructions below, which you have to use in any suitable order to modify the above sentence such that the end sentence is a scientific fact.

- Eliminate a letter and supplement another in its place.
- Take away one word.
- Remove one letter from one word.
- Get rid of two letters from one word.
- Swap a word with its antonym.

Asked by Neha on 03 May 2025


Why Wine Glass Stem is so long?

Wine Glass

Asked by Neha on 24 Jul 2023

Hot Articles

Amazing Facts

Out of the Box

The phrase “thinking outside the box” was popularised from the solution to a topographical puzzle involving 9 dots in a box shape.