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

Different lights make me strange by changing me into different sizes. What am I?

Asked by Neha on 09 Sep 2025


A bank customer had $100 in his account. He then made 6 withdrawals. He kept a record of these withdrawals, and the balance remaining in the account, as follows:

Withdrawals Balance left
$50 $50
$25 $25
$10 $15
$8 $7
$5 $2
$2 $0
----- -----
$100 $99

Why are the Totals not tallying?

Asked by Neha on 14 Dec 2023

Two old friends, Jack and Jill, meet after a long time, and discussing as:

Jack: Hey, how are you, man?

Bill: Not bad, got married and I have three kids now.

Jack: That's awesome. How old are they?

Bill: The product of their ages is 72 and the sum of their ages is the same as your birth date.

Jack: Cool..But I still don't know.

Bill: My eldest kid just started taking piano lessons.

Jack: Oh, now I get it.

How old are Bill's kids?

Asked by Neha on 23 Dec 2020


If,

Akriti = 631
Levis = 521
Sroti = 521
Aneel = 533
Then,
Sunil =?

Asked by Neha on 25 Jan 2026

I have cities, but no houses. I have mountains, but no trees. I have water, but no fish. What am I?

Asked by Neha on 25 Jul 2025

P is the father of Q and S is the son of R. T is the brother of P and has a daughter U. If R is the sister of P, then what is the relation between U, Q and S?

Who is Who

Asked by Neha on 16 Mar 2021


Jack and Joseph are well-known golf rivals. One Day during a match, they were level at a score of 30. Jack hit a bad shot and Joseph added 10 to his score. Joseph then hit an awesome shot and he won the game.

How ?

Asked by Neha on 02 Jan 2021

If 5 cats catch 5 mice in 5 minutes, how long will it take one cat to catch a mouse?

Asked by Neha on 13 Sep 2021

John was a very careless driver, so his owner Jacob gave him an offer that he will get an incentive of Rs.30 for every bottle box he delivered without breaking it and he will be charged Rs.90 for every bottle box he broke. Jacob gave John 100 bottles-box to deliver. After delivery, Jacob paid John Rs.2400. How many bottles-box did John break?

Asked by Neha on 28 Sep 2023


Can you guess the name of the month by looking the below rebus ?

The Month Rebus

Asked by Neha on 24 Mar 2023

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.