Click here to Skip to main content
15,921,169 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
QuestionA Life Or Death Problem Pin
Nagy Vilmos3-Dec-13 22:57
professionalNagy Vilmos3-Dec-13 22:57 
AnswerRe: A Life Or Death Problem Pin
DaveAuld3-Dec-13 23:06
professionalDaveAuld3-Dec-13 23:06 
GeneralRe: A Life Or Death Problem Pin
Nagy Vilmos3-Dec-13 23:07
professionalNagy Vilmos3-Dec-13 23:07 
GeneralRe: A Life Or Death Problem Pin
DaveAuld3-Dec-13 23:10
professionalDaveAuld3-Dec-13 23:10 
GeneralRe: A Life Or Death Problem Pin
Johnny J.3-Dec-13 23:10
professionalJohnny J.3-Dec-13 23:10 
GeneralRe: A Life Or Death Problem Pin
_Dhull 4-Dec-13 1:06
_Dhull 4-Dec-13 1:06 
AnswerRe: A Life Or Death Problem Pin
OriginalGriff3-Dec-13 23:15
mveOriginalGriff3-Dec-13 23:15 
AnswerRe: A Life Or Death Problem Pin
OriginalGriff3-Dec-13 23:24
mveOriginalGriff3-Dec-13 23:24 
One of them is elected as the only person who can say "We have all visited". He is the only one who changes the left switch from down to up. As each other prisoner enters the room, if the left switch is up, and he has visited the room but not moved the left switch, he moves it down. Otherwise, he moves the right switch.
When the "special" prisoner enters the room, if the left switch is down, he changes it to up, and adds one to his mental count. Otherwise he also moves the right switch.
When his mental count reaches 23, all of the prisoners have been in the room.
GeneralRe: A Life Or Death Problem Pin
Nagy Vilmos3-Dec-13 23:26
professionalNagy Vilmos3-Dec-13 23:26 
GeneralRe: A Life Or Death Problem Pin
Motor Viper3-Dec-13 23:38
professionalMotor Viper3-Dec-13 23:38 
GeneralRe: A Life Or Death Problem Pin
Nagy Vilmos4-Dec-13 0:17
professionalNagy Vilmos4-Dec-13 0:17 
GeneralRe: A Life Or Death Problem Pin
OriginalGriff4-Dec-13 0:30
mveOriginalGriff4-Dec-13 0:30 
GeneralRe: A Life Or Death Problem Pin
Nagy Vilmos4-Dec-13 0:35
professionalNagy Vilmos4-Dec-13 0:35 
GeneralRe: A Life Or Death Problem Pin
OriginalGriff4-Dec-13 0:37
mveOriginalGriff4-Dec-13 0:37 
AnswerRe: A Life Or Death Problem Pin
CBadger4-Dec-13 0:41
professionalCBadger4-Dec-13 0:41 
GeneralRe: A Life Or Death Problem Pin
Motor Viper4-Dec-13 0:52
professionalMotor Viper4-Dec-13 0:52 
GeneralRe: A Life Or Death Problem Pin
CBadger4-Dec-13 1:34
professionalCBadger4-Dec-13 1:34 
GeneralRe: A Life Or Death Problem Pin
Freak304-Dec-13 1:41
Freak304-Dec-13 1:41 
GeneralRe: A Life Or Death Problem Pin
CBadger4-Dec-13 2:08
professionalCBadger4-Dec-13 2:08 
AnswerRe: A Life Or Death Problem Pin
Mohamad M. Mohamad4-Dec-13 2:12
Mohamad M. Mohamad4-Dec-13 2:12 
GeneralRe: A Life Or Death Problem Pin
PIEBALDconsult4-Dec-13 4:10
mvePIEBALDconsult4-Dec-13 4:10 
GeneralDave has decorated for X-mas, I see... Pin
Johnny J.3-Dec-13 22:22
professionalJohnny J.3-Dec-13 22:22 
GeneralRe: Dave has decorated for X-mas, I see... Pin
Dalek Dave3-Dec-13 22:40
professionalDalek Dave3-Dec-13 22:40 
GeneralRe: Dave has decorated for X-mas, I see... Pin
Johnny J.3-Dec-13 23:05
professionalJohnny J.3-Dec-13 23:05 
GeneralRe: Dave has decorated for X-mas, I see... Pin
Johnny J.4-Dec-13 2:04
professionalJohnny J.4-Dec-13 2:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.