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

On a beautiful Sunday morning, You ordered a hot tea to your hotel room and suddenly you remember an important thing that needed to be done right now will take around 3 minutes to complete.
Like most people you like your tea to be hot while drinking so, when should you pour cream in the tea?
1. straight away
2. Just people, you drink the team
3. Its does not matter

Asked by Neha on 24 Jun 2023


Solve the alphametic puzzle by replacing the alphabet with the number.

S T O R M +
S O L E S
=========
T O W E L
=========

Asked by Neha on 30 Jul 2024

A pregnant woman is preparing to name her seventh child. Her children's names so far are Dominique, Regis, Michelle, Fawn, Sophie, and Lara. What will she name her next child -- Jessica, Katie, Abby or Tilly?

Asked by Neha on 29 Mar 2023


John Went to the nearby store in a Mall to buy something for her home. Below is the conversation between the two:

John: How much for the one?
Shopkeeper: It is $2
John: How much for the Eleven?
Shopkeeper: It is $4
John: How much for the Hundred?
Shopkeeper: It is $6.

What is John buying?

Asked by Neha on 01 Dec 2025

The doctor prescribed you to take one pill from the bottle every half an hour. The bottle is now left with only three pills.

How long do you think you have before you run out of pills?

Asked by Neha on 21 Dec 2024

Sherlock breaks into a crime scene. The victim is the owner who is slumped dead on a chair and have a bullet hole in his head. A gun lies on the floor and a cassette recorder is found on the table. On pressing the play button, Sherlock hears the message 'I have committed sins in my life and now I offer my soul to the great Lord' and followed a gunshot Sherlock smiles and informed the police that's its a murder.

Why did he think so?

Murder Mystery with Sherlock Riddle

Asked by Neha on 01 May 2021


If Japan and Panama decided to merge into a single country, probably people will name it Japanama.

Can you think of two more such country's unions that could produce similar names like Japanama by overlapping their three letters?

Asked by Neha on 08 Sep 2024

If I put in one canary per cage, I have one bird too many. If I put in two canaries per cage, I have one cage too many. How many cages and canaries do I have?

Asked by Neha on 05 Oct 2023

How could a baby fall out of a twenty-story building onto the ground and live?

Asked by Neha on 07 Nov 2023


Why do people go to bed?

Asked by Neha on 08 Jan 2024

Hot Articles

Amazing Facts

Word ladder puzzle

The word ladder puzzle was invented by Lewis Carroll, author of Alice’s Adventures in Wonderland.