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

One day, all the courtiers from Akbar's court were gathered in the assembly hall when one of them told the Emperor that all his valuables had been stolen by a thief the previous night.
This shocked the Emperor to his core as the place where that courter stayed was the most secured in the kingdom. The Emperor thought that it is not at all possible for an outsider to enter into the courtier's house and steal the valuables. Only another courtier could commit this crime. He quickly called Birbal to identify the thief.
Birbal thought for a while and successfully solved the mystery by identifying the thief in just one statement.
What did Birbal say?

Asked by Neha on 17 May 2021


Why did Buffon take the goal with him after every Juventus match?

Asked by Neha on 24 Apr 2025

In a school, there are four subjects. Seventy percent of students study English, seventy five percent of students study Science, eighty five percent of students study Mathematics and eighty percent of students study Spanish.

Can you calculate the percentage of students that study all four subjects?

Asked by Neha on 16 Apr 2023


There was an aeroplane crash, every single person died, but two people survived. How is this possible?

Asked by Neha on 28 Dec 2023

You see a mathematical expression in the picture. Can you think of a movie that this expression refers to?

Movie in Maths

Asked by Neha on 05 Aug 2021

You have a 12 liters jug full of water. You have two empty 8 liters and 5 liters jug. How can you divide the water into two equal parts using these jugs?

Asked by Neha on 21 Dec 2020


In 1990, a person is 15 years old. In 1995, that same person is 10 years old. How can this be?

Asked by Neha on 06 Jul 2025

A man always keeps a spare tyre in his car. To make full use of all the five tyres, he changes the tyres in a manner that for a distance of 1, 00,000 km, each of them runs the same distance.

Can you calculate the distance travelled by each tyre on that journey?

Asked by Neha on 14 Sep 2023

A girl was sitting in her hotel room when she heard a knock on the door. She opened the door and found that a man was standing outside.
The man said, "Oh! I am really sorry, I thought this was my room."
He then walked through the corridor to the elevator. The girl did not know the man. She closed her door and called security asking them to apprehend the man.
What made her suspicious of that man? He might have been genuinely mistaken.

Asked by Neha on 28 Aug 2023


On a bright sunny day, two fathers took their son fishing in the lake. Each man and son were able to catch one fish. When they returned to their camp, there were only three fishes in the basket. What happened?

PS: None of the fish were eaten, lost, or thrown back.

Asked by Neha on 05 Mar 2023

Hot Articles

Amazing Facts

Challenging

There is a cryptic organization called Cicada 3301 that posts challenging puzzles online, possibly to recruit codebreakers and linguists.