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

A and B have a certain number of chocolates with them. If B gives one chocolate to A, they will have an equal number of chocolates. But if A gives one chocolate to B, then A will be left with half the number of chocolates that B has.

Can you find out the number of chocolates they have right now?

Asked by Neha on 02 Apr 2023


What kind of storm is always in a rush?

Asked by Neha on 16 Jan 2024

Find three whole, positive numbers that have the same answer when multiplied together as when added together.

Asked by Neha on 01 Jan 2021


Why do you find that most of the buildings are deprived of the 13th floor?

Asked by Neha on 11 Jan 2025

There was a blind man. He had four socks in his drawer either black or white. He opened it and took out two socks. Now the probability that it was a pair of white socks is 1/2.

Can you find out the probability that he had taken out a pair of black socks ?

Asked by Neha on 19 Mar 2023

A network of 20 x 10 squares is given to you.

Can you calculate how many unique squares and rectangles can be formed combining two or more individual squares ?

Asked by Neha on 24 Jan 2021


Which Number is the odd one out?

A) 7145
B) 2716
C) 5321
D) 4135

Asked by Neha on 10 Jan 2024

What building has the most stories?

Asked by Neha on 21 Feb 2022

A seven-year-old kid challenged his classmates that he can make the number one disappear by adding something to it.

How can he do that?

Asked by Neha on 04 Apr 2024


The dirtier I get, the whiter I look. Who am I?

Asked by Neha on 12 Jan 2026

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.