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

I am the one who remains awake when you sleep. But I need to rest when you awake. Who Am I?

Asked by Neha on 23 Jan 2025


By moving exactly three matchsticks can you make the below equation true.It can be solved by 3 ways.

Matchsticks Equation

Asked by Neha on 19 Feb 2021

A chess tournament is taking place on knock-out terms (the one who loses the match is out of the game).
(a) If 10 matches are played in total, how many players participated?
(b) If 20 players took part in the tournament, how many matches were played?

Asked by Neha on 10 Feb 2025


what does the below math rebus puzzle mean?

Find the Rebus Meaning

Asked by Neha on 13 Nov 2023

Three cars are driving on a track that forms a perfect circle and is wide enough that multiple cars can pass anytime. The car that is leading in the race right now is driving at 55 MPH and the car that is trailing at the last is going at 45 MPH. The car that is in the middle is somewhere between these two speeds.
Right now, you can assume that there is a distance of x miles between the leading car and the middle car and x miles between the middle car and the last car and also, x is not equal to 0 or 1.
The cars maintain their speed till the leading car catches up with the last car and then every car stops. In this scenario, do you think of any point when the distance between any two pairs will again be x miles i.e. the pairs will be x distance apart at the same time ?

Asked by Neha on 08 May 2021

There was a competition where the contestants had to hold something. At the end of the event, the winner was a person who had no hands or feet. What was it that the contestants had to hold?

Asked by Neha on 20 Jun 2025


Four children having five rocks each were playing a game in which they had to throw the rock at a particular solid area in the water. Child 1- Succeeded in throwing three rocks at a solid area but one of the rocks sunk. Child 3 - His aim was so bad that all rocks got sunk. Child 4- He was awesome and none of the rocks got sunk. Child 2 - Was the winner but was struck by a rock in the head and died. Who killed Child 2?

Asked by Neha on 21 Oct 2024

There once were seven dwarfs who were all brothers. They were all born two years apart. The youngest dwarf is seven years old. How old is his oldest brother?

Asked by Neha on 13 Jun 2025

It can't be seen, can't be felt, can't be heard, and can't be smelt.
It lies behind stars and under hills, And empty holes it fills.
It comes first and follows after, Ends life, and kills laughter.
What is it?

Asked by Neha on 17 May 2021


Four cars come to a four-way stop, each coming from a different direction. They can’t decide who got there first, so they all go forward at the same time. All 4 cars go, but none crash into each other. How is this possible?

Asked by Neha on 11 Aug 2025

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.