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

In a town, there are over 100 flats.
Flat-1 is named first flat.
Flat-2 is named second flat.
Flat-3 is named third flat.

A visitors 'Victor' decides to walk through all the flats, he finds all the flats except flat-62.
Victor later founds that the local of the town have given it another name.

What is the name of the Flat?

Asked by Neha on 05 May 2021


A man has eighty-one cows ( numbered 1,2,3...81 as such). The beauty is that cow no. 1 gives 1ltr of milk, cow no. 2 gives 2ltrs of milk and so on. The man wants to equally distribute the cows among his nine sons so that each one of them gets the same quantity of milk.

Asked by Neha on 05 Jan 2024

When we see 2 but call 10?

Asked by Neha on 14 Oct 2023


I look at you, you look at me I raise my right, you raise your left. What am I?

Asked by Neha on 24 Apr 2023

Place a mathematical symbol between the numerals 5 and 9 in such a way that the resulting number is greater than 5 but smaller than 9.

Asked by Neha on 30 Jul 2021

A man is surviving on an island along with his friend. They have been starving for four days for food. Suddenly, they find a fisherman. The friend goes with the fisherman in order to catch the fish (if they can find any).

The fisherman returns after some time but he is alone and has some salmon that he had prepared. When asked, the fisherman tells him that his best friend fell off the boat and drowned in the water. Starving for so long, he eats the meal while crying for his friend.

After being rescued, he goes to a diner and orders salmon. When he eats his meal, he jumps and commits suicide. Why did he do it?

Asked by Neha on 22 May 2024


You and your two friends are working in a multinational company. How can you three find out the average salary of you all without disclosing your own salary to the other two?

Asked by Neha on 26 Nov 2025

What mathematical symbol can be put between 5 and 9, to get a number bigger than 5 and smaller than 9?

Asked by Neha on 20 Sep 2021

How can you make the following equation true by drawing only one straight line: 5+5+5=550 ?

Asked by Neha on 24 Apr 2021


If,

Akriti = 631
Levis = 521
Sroti = 521
Aneel = 533
Then,
Sunil =?

Asked by Neha on 25 Jan 2026

Hot Articles

Amazing Facts

Artificial Intelligence

Artificial Intelligence has crushed all human records in the puzzle game “2048,” achieving a high score of 839,732 and beating the game in only 973 moves without using any undo.