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

Find the 8 in the below-given Image.

Asked by Neha on 24 Feb 2025


"That Restaurant always remains crowded. This is the reason why nobody goes there".

Can you find a flaw in this statement?

Asked by Neha on 06 Apr 2024

Mother's Name is Mrs. SIXTY TWO
Son's Name is FIFTY TWO
Daughter's Name is FORTY TWO
What is Name of Father?

Asked by Neha on 20 Mar 2022


I have cities, but no houses. I have mountains, but no trees. I have water, but no fish. What am I?

Asked by Neha on 25 Jul 2025

Which alphabet letter is a question?

Asked by Neha on 19 Apr 2023

A swan sits at the center of a perfectly circular lake. At an edge of the lake stands a ravenous monster waiting to devour the swan. The monster can not enter the water, but it will run around the circumference of the lake to try to catch the swan as soon as it reaches the shore. The monster moves at 4 times the speed of the swan, and it will always move in the direction along the shore that brings it closer to the swan the quickest. Both the swan and the the monster can change directions in an instant.
The swan knows that if it can reach the lake's shore without the monster right on top of it, it can instantly escape into the surrounding forest.

How can the swan successfully escape?

Asked by Neha on 22 Apr 2022


A kind heart person buy packed food at 3$/packet from United states and sells them at 1$/packet at Africa. After some time he becomes a millionaire.

How come the guy become millionaire ?

Asked by Neha on 30 Jan 2023

What word is pronounced the same if you take away four of its five letters?

Asked by Neha on 20 Oct 2021

what's the probability of getting a king or a queen from a pack of 52 cards?

Asked by Neha on 27 Sep 2024


Which number should replace the question mark?

Triangular Logic

Asked by Neha on 11 Aug 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.