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 patient was diagnosed with some ailment. He was given five different tablets to take at night at an interval of 15 minutes.

How long will it take the patient to consume all the five tablets?

Asked by Neha on 02 Jul 2024


John went to a parrot shop in Mexico, and the parrot owner told him that his parrot is so unique that he repeats everything he hears. John got excited and immediately bought the parrot. John went home and spoke many words, but the parrot does not repeat anything.
He went again to the parrot shop and complaint to the shopkeeper, but the shopkeeper never lied. Explain?

Asked by Neha on 19 Oct 2024

In particular commonwealth games, a female participant won silver and gold medals for a single event.

How can this be possible?

Asked by Neha on 26 Feb 2024


During a secret mission, an agent gave the following code to the higher authorities
AIM DUE OAT TIE MOD

However, the information is in one word only and the rest are fake. To assist the authorities in understanding better, he also sent them a clue, If I tell you any one character of the code, you can easily find out the number of vowels in the codeword.

Can you find out the code word?

Asked by Neha on 19 Feb 2023

I am white when I am dirty, and black when I am clean. What am I?

Asked by Neha on 31 Mar 2022

One day, all the courtiers from Akbar's court were gathered in the assembly hall when one of them told the Emperor that all his valuables had been stolen by a thief the previous night.
This shocked the Emperor to his core as the place where that courter stayed was the most secured in the kingdom. The Emperor thought that it is not at all possible for an outsider to enter into the courtier's house and steal the valuables. Only another courtier could commit this crime. He quickly called Birbal to identify the thief.
Birbal thought for a while and successfully solved the mystery by identifying the thief in just one statement.
What did Birbal say?

Asked by Neha on 17 May 2021


There was a man he lives in a hotel each morning he presses the first floor button each evening if there is a person in the elevator he asks him to press the 10 floor button if there is no one in the elevator he takes the stairs why.

Asked by Neha on 17 Mar 2022

A boy collects white seashells from the sea and brings them home every night. When he has enough of them, he decides to sell them to a trader.

The trader is ready to buy the shells and he asks the boy about the quantity. At this, the boy starts calculating. He has a giant box that contains 3 mini boxes. Two of them have another mini box inside. If the giant box can hold 50 shells, how many brown shells can he sell to the trader?

Asked by Neha on 25 Jun 2023

You have 1023 apples and 10 bags. You have to distribute these apples in these 10 bags in any way you choose. But when I ask for a certain number of apples you have to give them in terms of bags without transferring the apples from other bags. How do you distribute the apples?

Asked by Neha on 25 Jan 2021


Can you solve the below algebraic mathematical equation?

(J+O+I+N+T)3 = JOINT

Asked by Neha on 29 May 2021

Hot Articles

Amazing Facts

Crossword

The day before the 1996 U.S. presidential election, the NYT Crossword contained the clue “Lead story in tomorrow’s newspaper,” the puzzle was built so that both electoral outcomes were correct answers, requiring 7 other clues to have dual responses.