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

If,
29 - 1 = 30
9 - 1 = 10
14 - 1 = 15

Based on similar logic, Can you prove that the below algebraic equation is true?
11 - 1 = 10 ?

Asked by Neha on 04 Jan 2025


A man was driving a black truck. His lights were not on. The moon was not out. A lady was crossing the street. How did the man see her?

Asked by Neha on 06 Mar 2022

One day, I thought of ways that can be used for creating a palindrome. So I decided that I will turn into a larger number by adding the reversed digits to the original number and keep doing it till I finally obtained a palindrome.

I am not sure if this process will always result in a palindrome eventually but I was able to produce a four-digit palindrome. Can you guess my starting number?

Asked by Neha on 17 Apr 2024


If a boy blows 18 bubbles,
Then pops 6 eats 7 and then
He pops 5 and blows 1.
How many are left?

Asked by Neha on 17 May 2021

John can eat 27 chocolates in an hour, Jacob can eat 2 chocolates in 10 minutes, and Jolly can eat 7 chocolates in 20 minutes. How long will it take them to share and eat a box of 120 chocolates whilst playing Chess?

Asked by Neha on 09 Sep 2024

Can you find out the remainder when 3^300 is divided by 5?

Asked by Neha on 31 Oct 2023


Which part of London exists in France as well ?

Asked by Neha on 17 Feb 2021

A man looks at a painting in a museum and says, “Brothers and sisters I have none, but that man’s father is my father’s son.” Who is in the painting?

Asked by Neha on 12 Mar 2025

Take away my first letter, then take away my second letter. Then take away the rest of my letters, yet I remain the same. What am I?

Asked by Neha on 14 Oct 2021


Manish and Manoj play 5 games of chess.
Both Manish and Manoj win the exact same number of games. There is no tie at all.

How?

Asked by Neha on 11 Feb 2024

Hot Articles

Amazing Facts

Jigsaw puzzles

Jigsaw puzzles soared in popularity during the great depression, as they provided a cheap, long-lasting, recyclable form of entertainment.