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

If an electric train is travelling south, then which way is the smoke going?

Asked by Neha on 27 Aug 2025


What can run but never walk, have a mouth that never speaks, have a head that never weeps, and have a bed but never sleeps?

Asked by Neha on 05 Sep 2025

Some friends went on a vacation to a resort. It was raining heavily and it kept raining for thirteen days.

When it rained in the morning, the afternoon was beautiful and when it rained in the afternoon, the day was blessed with a clear morning.

Overall, the friends experienced eleven nice mornings and twelve nice afternoons. Can you find out the number of days they spent on vacation?

Asked by Neha on 08 Jun 2024


I hide my treasure in the ground, my tail is big and fluffy. If you spot me in a tree, please don’t call me scruffy. What am I?

Asked by Neha on 31 Oct 2025

A worker is to perform work for you for seven straight days. In return for his work, you will pay him 1/7th of a bar of gold per day. The worker requires a daily payment of 1/7th of the bar of gold. What and where are the fewest number of cuts to the bar of gold that will allow you to pay him 1/7th each day?

Asked by Neha on 05 Mar 2024

What is the next shape from answers A, B, C, and D figure?

Next Shape Riddle

Asked by Neha on 20 Jan 2024


What has many keys but can’t open a single lock?

Asked by Neha on 14 Feb 2022

I have feet, but no legs. Which animal Am I?

Asked by Neha on 18 Apr 2023

What has a ring but no finger?

Asked by Neha on 13 Apr 2024


What is at the end of a rainbow?

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