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

People make me, save me, change me, raise me. What am I?

Asked by Neha on 08 Mar 2025


Manish has to secure 40% marks to pass his B.tech final exams.
He got just 40 marks and failed by 40-marks.

What is the maximum marks?

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


I am thinking of a five-digit number such that:
The first and last digits are the same, their submission is an even number and multiplication is an odd number and is equal to the fourth number. Subtract five from it and we obtain the second number. Then divide into exact halves and we get the 3rd number.

What number I am thinking of?

Asked by Neha on 16 Nov 2024

The following alphametic has only one solution. Can you find it?
ENLIST + SILENT + LISTEN = ANAGRAM

PS: You may start the number from 0.

Asked by Neha on 12 Jun 2023

If I put in one bird per cage, I have one bird too many. If I put in two bird per cage, I have one cage too many. How many cages and birds do I have?

Asked by Neha on 25 Apr 2024


A sea diver is a real show-off. He showed everyone that he can hold his breath underwater for 15 minutes.

I went to the diver and told him that I can be underwater for double the time i.e 30 minutes.
He responded that he will give me 100$ if I would be able to do it. I won 100$.

What did I do?

Asked by Neha on 06 Mar 2025

What does this rebus means ?

Rebus For Kids

Asked by Neha on 02 Apr 2025

What is the last thing you take off before bed?

Asked by Neha on 29 Aug 2025


Peter wakes up daily to pick up his cycle and crosses the border between Spain and France daily with a bag on his shoulder. He is investigated daily by the officials but they don't find anything suspicious.

If we tell you that he is smuggling something what would it be?

Asked by Neha on 25 Jun 2024

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.