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

On a bright sunny day, two fathers took their son fishing in the lake. Each man and son were able to catch one fish. When they returned to their camp, there were only three fishes in the basket. What happened?

PS: None of the fish were eaten, lost, or thrown back.

Asked by Neha on 05 Mar 2023


Can you divide the below-given shape into four equal and identical pieces?

Divide in Equal Shape

Asked by Neha on 27 Nov 2023

The doctor prescribed you to take one pill from the bottle every half an hour. The bottle is now left with only three pills.

How long do you think you have before you run out of pills?

Asked by Neha on 21 Dec 2024


A man died and leaves Rs.10,000 in his will. There are 6 beneficiaries- his 3 sons and their wives. The 3 wives receive Rs.3960 of which Priyanka gets Rs.100 more than Tanu and Neha gets Rs.100 more than Priyanka.
Pramod gets twice as much as his wife, Tushar gets the same as his wife, and Prashant gets 50% more than his wife.

Who is married to whom?

Asked by Neha on 25 Aug 2024

The barber of Town shaves all men living in the town. No man living in the town is allowed to shave himself. The barber lives in that town. Who then shaves the barber of the town?

Asked by Neha on 25 Oct 2021

If nine thousand, nine hundred nine dollars is written as $9,909,
how should twelve thousand, twelve hundred twelve dollars be written?

Asked by Neha on 13 Sep 2024


If you say my name, I will no longer exist. What am I?

Asked by Neha on 18 Dec 2023

What has many keys but can’t open a single lock?

Asked by Neha on 14 Feb 2022

What has one eye, but can’t see?

Asked by Neha on 16 Jul 2025


In the given picture, in how many ways can you read the word "Tiger"?

Read Word Tiger

Asked by Neha on 21 May 2023

Hot Articles

Amazing Facts

Gamers

In 2011, people playing Foldit, an online puzzle game about protein folding, resolved the structure of an enzyme that causes an Aids-like disease in monkeys. Researchers had been working on the problem for 13 years. The gamers solved it in three weeks.