Click here to Skip to main content
15,921,276 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.

 
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 
But if the left switch starts in the up position, the "counting" prisoner will never reach 23, because the other 22 prisoners will only move the switch down once each.

I think this is the reason to let everyone switch two times at most. This way you have a safe margin of 1.
- If the switch was down at the beginning and the "counting" prisoner enters first, he will reach 44 after 1 prisoner has moved the switch down once and the others twice.
- If the switch was up at the beginning and the "counting" prisoner enters first, he will reach 44 after all other prisoners have moved the switch down twice.
- If the switch was down at the beginning and another prisoner enters first, the "counter" will reach 44 after all other prisoners have moved the switch down twice.
- If the switch was up at the beginning and another prisoner enters first, the "counter" will reach 44 after all other prisoners have moved the switch down twice.
The good thing about pessimism is, that you are always either right or pleasently surprised.

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... PinPopular
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 
GeneralCCC 4/12/13 Pin
Dalek Dave3-Dec-13 22:01
professionalDalek Dave3-Dec-13 22:01 
GeneralRe: CCC 4/12/13 Pin
OriginalGriff3-Dec-13 22:09
mveOriginalGriff3-Dec-13 22:09 
GeneralRe: CCC 4/12/13 Pin
DaveAuld3-Dec-13 22:16
professionalDaveAuld3-Dec-13 22:16 
GeneralRe: CCC 4/12/13 Pin
OriginalGriff3-Dec-13 22:27
mveOriginalGriff3-Dec-13 22:27 
GeneralRe: CCC 4/12/13 Pin
Dalek Dave3-Dec-13 22:40
professionalDalek Dave3-Dec-13 22:40 
GeneralSSD Lifespan Pin
Jacquers3-Dec-13 21:55
Jacquers3-Dec-13 21:55 
GeneralRe: SSD Lifespan Pin
DaveAuld3-Dec-13 22:05
professionalDaveAuld3-Dec-13 22:05 
GeneralRe: SSD Lifespan Pin
OriginalGriff3-Dec-13 22:11
mveOriginalGriff3-Dec-13 22:11 
GeneralRe: SSD Lifespan Pin
DaveAuld3-Dec-13 22:14
professionalDaveAuld3-Dec-13 22:14 
GeneralRe: SSD Lifespan Pin
Jacquers3-Dec-13 22:34
Jacquers3-Dec-13 22:34 

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.