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

What three numbers, none of which is zero, give the same result whether they’re added or multiplied?

Asked by Neha on 26 Feb 2022


A farmer and his neighbour once went to Emperor Akbar"s court with a complaint. "Your Majesty, I bought a well from him," said the farmer pointing to his neighbour, "and now he wants me to pay for the water."
"That"s right, your Majesty," said the neighbour. "I sold him the well but not the water!"?
The Emperor asked Birbal to settle the dispute. How did Birbal solve the dispute?

Asked by Neha on 10 May 2021

Outside a massage parlour, there is a board that reads
"I only massage those who do not massage themselves."

Reading the above statement, does the masseur massage himself?

Asked by Neha on 14 Apr 2024


The person who makes it has no need for it; the person who buys it has no use for it. The person who uses it can neither see nor feel it. What is it?

Asked by Neha on 11 Mar 2025

The host of a game show, offers the guest a choice of three doors. Behind one is a expensive car, but behind the other two are goats.
After you have chosen one door, he reveals one of the other two doors behind which is a goat (he wouldn't reveal a car).

Now he gives you the chance to switch to the other unrevealed door or stay at your initial choice. You will then get what is behind that door.

You cannot hear the goats from behind the doors, or in any way know which door has the prize.

Should you stay, or switch, or doesn't it matter?

Asked by Neha on 06 Aug 2021

Vin Diesel is pulling a theft and has planned to run away with all the cash kept in the safe. But the only way to open the safe is the 13 character password. He has a set of five clues given to him by a trustworthy source.

Exactly two of the below statements are false.
The password is contained within this sentence.
The password is not in this hint.
The password is within only one of these statements.
At least one of the above statements is a lie.

Asked by Neha on 01 Jun 2023


There is a straight highway. Four different villages lie on that highway. The distance between them is different. The third village is 60km away from the first village; the fourth is 40 km away from the second; the third is 10 km near to the fourth that it is to the second.

Can you calculate the distance between the fourth and the first village ?

Asked by Neha on 23 Mar 2023

A bridge is about to collapse. There are four people P, Q, R and S on one of the sides. Before the bridge collapses, they want to cross it. Now since the bridge is too weak, it can only stand the weight of two people at a time. Also, it is night time and nothing is visible. They have just one torch with them.

Now P takes one minute to cross the bridge, Q takes two minutes to cross, R takes five minutes to cross and S takes ten minutes to cross.

The bridge will collapse in seventeen minutes. How will they be able to cross the bridge before it collapses?

Asked by Neha on 01 Apr 2024

The owner of a popular clothing store comes up with his own method of pricing items. A vest costs $8, socks cost $10, a tie costs $6, and a blouse costs $12. Using the owner’s method, how much would a pair of underwear cost?

Asked by Neha on 21 Jun 2025


You can find some missing letters in the picture. By placing two particular letters in the spaces, you can form a nine lettered word beginning from one of the corners and going clockwise direction to the middle. Can you find out the letters and the word?

Make the Word

Asked by Neha on 06 Oct 2023

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.