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

When can we add 2 to 11 and get 1 as the correct answer?

Asked by Neha on 16 Oct 2023


why number 8549176320 is one of a kind?

Asked by Neha on 17 Apr 2023

What are the next two letters in the following series and why?
W A T N T L I T F S _ _

*Hint: Check Puzzle Title

Asked by Neha on 12 May 2023


Today is a very icy and cold morning in Newcastle. Mr Shearer, an office bus driver arrived to pick up the employees from the last stop. Shearer suddenly remembers that he needs to pick a newly joined 4miles to the north. Mr Shearer lost his direction compass, a few minutes later Shearer is able to figure that he is moving in the correct direction i.e. north. How did Shearer know that he is moving in the correct direction?

Asked by Neha on 01 Aug 2024

A lion and its tamer are standing inside a cage that measures 1 unit in radius. Both of them can effortlessly run at the speed of 1 unit maximum.

1) Suppose the lion is hungry, will he be able to eat up the tamer?
2) If yes, how long can the tamer survive?

Asked by Neha on 13 Oct 2023

Can you calculate the probability of getting a sum of six when a dice is thrown twice?

Asked by Neha on 11 Feb 2021


What work can one never finish?

Asked by Neha on 12 Jan 2024

John went to a parrot shop in Mexico, and the parrot owner told him that his parrot is so unique that he repeats everything he hears. John got excited and immediately bought the parrot. John went home and spoke many words, but the parrot does not repeat anything.
He went again to the parrot shop and complaint to the shopkeeper, but the shopkeeper never lied. Explain?

Asked by Neha on 18 Oct 2024

My cousin lives in one story house in Antarctica. His house is made the of-of sandstone. what is the color of stairs?

Asked by Neha on 27 Feb 2021


What is the word or phrase?

What is the phrase?

Asked by Neha on 04 Oct 2024

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.