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

The King of a distant land had heard that Birbal was one of the wisest men in the East and so desired to meet Birbal. He sent Birbal an invitation to visit his country.

In due course, Birbal arrived in the distant kingdom. When he entered the palace he was flabbergasted to find not one but six kings seated there. All looked alike. All were dressed in kingly robes. Who was the real king?

The very next moment he got his answer. Confidently, he approached the king and bowed to him.

How did Birbal know who was the real king?

Asked by Neha on 17 May 2021


In a family supper, a grandfather, a grandmother, two fathers, two mothers, four children, three grandchildren, one brother, two sisters, two sons, two daughters, one daughter-in-law, and one mother-in-law need to sit at a table.

There are only seven chairs available at the place. How many more chairs do they have to borrow so that everyone can sit down together for the suppers if everybody requires a separate chair?

Asked by Neha on 09 Nov 2024

Buy me, smell me or deliver me, I do not change.

Who am I?

Asked by Neha on 19 Feb 2024


Find out the number of circles in the given picture having Illusion

How many circles do you see?

Asked by Neha on 20 Apr 2021

If an earthquake is 1 point higher on the Richter Scale than another earthquake which is actually 10 times stronger, how much stronger would an earthquake be if it was just half a point higher on the Richter scale?

Asked by Neha on 23 Jun 2024

During which month do people sleep the least?

Asked by Neha on 13 Apr 2022


There are 20 people in an empty, square room. Each person has full sight of the entire room and everyone in it without turning his head or body, or moving in any way (other than the eyes). Where can you place an apple so that all but one person can see it?

Asked by Neha on 08 Apr 2022

The following four words might seem abrupt to you. But you can make them meaningful by just adding vowels.
RDSH
GGPLNT
TMT
NN

Hint: All of them are vegetables.

Asked by Neha on 13 Nov 2025

Which Number is the odd one out?

A) 7145
B) 2716
C) 5321
D) 4135

Asked by Neha on 10 Jan 2024


You have a basket containing ten apples. You have ten friends, who each desire an apple. You give each of your friends one apple.
Now all your friends have one apple each, yet there is an apple remaining in the basket.
How?

Asked by Neha on 18 Sep 2021

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.