Riddle: 100 Prisoners and 2 Switches

Started by Blizzard, July 25, 2010, 04:05:56 pm

Previous topic - Next topic

Blizzard

July 25, 2010, 04:05:56 pm Last Edit: July 25, 2010, 04:08:05 pm by Blizzard
Here is another riddle. This one is tough. It took me about 20 minutes to figure it out the first time after a shitload of intense thinking.

Again, some of you might remember this riddle from the old forum. Please don't spoil it for everybody right away. :P So here goes.



There is a prison with 100 prisoners. Each one resides in a completely isolated cell. The warden is sick of his job and makes the prisoners an offer.

There is a room with 2 switches. The switches have only two states (OFF and ON) which makes a total of 4 possible states (OFF + OFF, OFF + ON, ON + OFF, ON + ON). The switches themselves don't do anything. A guard will completely randomly take a prisoner out of his cell and let him change the state of one of the switches. The prisoner MUST change the state. As all prisoners are isolated, nobody knows how many prisoners were out already and which ones were out. To make things harder, nobody knows the initial states of the switches. Each prisoner can be taken out more than once.

Now, the warden's offer is to let all prisoners go if they can tell him when all 100 prisoners were out changing switches at least once. Any prisoner can do that and it's alright if a prisoner was out more than once. It's only important that each one was out at least once. The warden allows the prisoners to have a conversation before the beginning of this procedure to make an agreement about what they are going to do. Remember, there is no way to communicate for them otherwise after the initial agreement.

How do they ensure that they will be released with a chance of 100%? What do they need to do with the switches? Sure, they could just guess or wait really long, but that's not going to get them out for 100%.
Assume that each prisoner will be out at least once in finite time. That means it will not happen that one of the prisoners will never get out to change the switches.

Hint: ShowHide
Remember that they don't have to tell the guard everybody was out at least once immediately after everybody was out at least once.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

element

July 25, 2010, 04:58:18 pm #1 Last Edit: July 25, 2010, 05:01:05 pm by elementisland
I spent 15 mins on this one but it's actually very easy.
I kept thingking of the prisoners must get a secret combination that opend the door, well i imagined that that was needed lol  :P
Since I read It the second time, it was pretty easy
EDIT : now I thought of it, this is a simpler version of teh light bulb riddle

Blizzard

Actually it's not even remotely as simple as the light bulb one. You can figure out the light bulbs in 2-3 minutes.
PM me your answer and I can give you feedback.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

element

I already did it a while ago and got a pretty hard headache of it, but I was able to solve it ^^

Blizzard

You got it almost correct. :) PMed you back.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.