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

A man is walking down a road with a basket of eggs. As he
is walking he meets someone who buys one-half of his eggs
plus one-half of an egg.
He walks a little further and meets another person who buys
one-half of his eggs plus one-half of an egg.
After proceeding further he meets another person who buys
one-half of his eggs plus one half an egg. At this point, he
has sold all of his eggs, and he never broke an egg.
How many eggs did the man have to start with?

Asked by Neha on 06 Dec 2023


John was driving a bus and got stuck when passing through an underpass. Then came Jacob with a needle and got the bus out of the underpass.

What did the boy do?

Asked by Neha on 30 Mar 2025

In the given picture, in how many ways can you read the word "Tiger"?

Read Word Tiger

Asked by Neha on 21 May 2023


You walk into a room and see a bed. On the bed, there are two dogs, five cats, a giraffe, six cows, and a goose. There are also three doves flying above the bed. How many legs are on the floor?

Asked by Neha on 23 May 2025

There are people and strange monkeys on this island, and you can not tell who is who (Edit: until you understand what they said - see below). They speak either only the truth or only lies.
Who are the following two guys?
A: B is a lying monkey. I am human.
B: A is telling the truth.

Asked by Neha on 12 Jul 2023

You Throw The Outside, Cook The Inside
Eat The Outside, Throw The Inside.

What Is It?

Asked by Neha on 27 Jun 2023


A man lives on the fifteenth floor of an apartment building. Every morning he takes the elevator down to the lobby and leaves the building. In the evening, he gets into the elevator, and, if there is someone else in the elevator, or if it was raining that day, he goes back to his floor directly. Otherwise, he goes to the tenth floor and walks up five flights of stairs to his apartment. Can you explain why he does this?

Asked by Neha on 09 Apr 2024

The captain of a ship was telling this interesting story: "We travelled the sea far and wide. At one time, two of my sailors were standing on opposite sides of the ship. One was looking west and the other one east. And at the same time, they could see each other clearly." How can that be possible?

Asked by Neha on 26 Mar 2024

A blonde put eyeliner on her head. Why?

Asked by Neha on 26 Sep 2025


No one wants to have it, but if one got it, he does not want to lose it. What is It?

Asked by Neha on 11 Jan 2021

Hot Articles

Amazing Facts

Crossword

The day before the 1996 U.S. presidential election, the NYT Crossword contained the clue “Lead story in tomorrow’s newspaper,” the puzzle was built so that both electoral outcomes were correct answers, requiring 7 other clues to have dual responses.