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

Can you replace the X (both small and big x) with the numbers between 1 to 19 such that all the rows of 3 numbers between X (big x) sum to 23?

Replace Shaped Puzzle

Asked by Neha on 05 Oct 2025


What is in seasons, seconds, centuries and minutes but not in decades, years or days?

Asked by Neha on 25 Dec 2024

Can you fill the blank with the correct number?

6 30 870 756030 _____

Asked by Neha on 20 Feb 2023


A Japanese ship was en route to a mission on foreign seas. The captain of the ship felt tired and thought of taking a bath. He went for taking the shower and removed his diamond ring and Rolex and kept them on the table. When he returned after taking the bath, he found that the ring and watch were stolen.

He called the five members of the crew whom he suspected and asked them what they were doing for the last 15 minutes.

The Italian cook (with a butcher knife in hand): I was in the fridge room getting meat for cooking.

The British Engineer (with a high beam torch in hand): I was working on a generator engine.

The Pakistani seaman: I was on the mast correcting the flag which was upside down by mistake.

The Indian Radio officer: I was trying to make a contact with the company to inform them about our position.

The American navigation officer: I am on night watch, so I was sleeping in my cabin.

Upon listening to them, the captain caught the lying member. Who do you think stole the valuables?

Asked by Neha on 10 Apr 2024

This is a picture puzzle. You have to guess the name of the movie that can be related to the picture.

Doctor

Asked by Neha on 20 Jun 2024

A Scientist was fifty years old in the year 2000 but he was forty years old in the year 2010. How can this be possible?

PS: It has a logical answer.

Asked by Neha on 20 Dec 2023


A sundial has the fewest moving parts of any timepiece. Which has the most?

Asked by Neha on 07 Jul 2025

I come in different shapes and sizes.
Parts of me are curved, other parts are straight.
You can put me anywhere you like,
but there is only one right place for me.
What am I?

Asked by Neha on 14 May 2021

A blonde put eyeliner on her head. Why?

Asked by Neha on 26 Sep 2025


f you were running a race, and you passed the person in 2nd place, what place would you be in now?

Asked by Neha on 14 May 2021

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.