Prisoners got freed

100 prisoners are stuck in the prison in solitary cells. The warden of the prison got bored one day and offered them a challenge. He will put one prisoner per day, selected at random (a prisoner can be selected more than once), into a special room with a light bulb and a switch which controls the bulb. No other prisoners can see or control the light bulb. The prisoner in the special room can either turn on the bulb, turn off the bulb or do nothing. On any day, the prisoners can stop this process and say "Every prisoner has been in the special room at least once". If that happens to be true, all the prisoners will be set free. If it is false, then all the prisoners will be executed. The prisoners are given some time to discuss and figure out a solution. How do they ensure they all go free?




Similar Riddles

You knock a Table over in the library, and suddenly 20 eyes are looking at you.

Asked by Neha on 21 Sep 2021


What is the difference between a jeweller and a jailer?

Asked by Neha on 11 Jul 2025

I have one of the three numbers: 1, 2, or 3 in my mind. I speak only truth. You can ask me just one question for which I will only reply in yes or no or don't know. What question will you ask from me so that you are able to know the number?

I Speak only the Truth

Asked by Neha on 15 May 2023


Using Only Five 5's and any mathematical operator make sum as 37

Math Magic Possible

Asked by Neha on 26 Mar 2021

John is pretty weird. He likes toffees but hates chocolates. He loves books but never reads. He likes to build his troops in an online game but does not proceed with the war. He likes to go swimming but is afraid of water.

Seeking this behaviour, can you tell whether he likes balloons and parties?

Asked by Neha on 05 May 2024

If it took eight men ten hours to build a wall, how long would it take four men to build it?

Asked by Neha on 08 May 2023


Below rebus represent famous DiCaprio movie. Can you name it?

Decode the Rebus

Asked by Neha on 27 May 2021

A man desired to get into his work building, however he had forgotten his code.
However, he did recollect five pieces of information
* Fifth number + Third number = 14
* The fourth number is one more than the second number.
* The first number is one less than twice the second number.
* The second number and the third number equals 10.
* The sum of all five numbers is 30.

What is the code ?

Asked by Neha on 14 May 2021

There are three houses in a straight row. One is red, one is blue, and one is white. The red house is left of the middle. The blue house is right of the middle. Where's the white house?

Asked by Neha on 25 Jul 2021


What is always in front of you but can’t be seen?

Asked by Neha on 10 May 2022

Hot Articles

Amazing Facts

Gambling

In Canada, a mathematical puzzle must be solved in order to win the lottery to classify it as a “game of skill” not gambling.