Thread View: sci.logic
3 messages
3 total messages
Started by Marco Bouchard ETUDIANT sept-dec...
Fri, 04 Sep 1992 14:50
enigma
Author: Marco Bouchard ETUDIANT sept-dec...
Date: Fri, 04 Sep 1992 14:50
Date: Fri, 04 Sep 1992 14:50
19 lines
1765 bytes
1765 bytes
Hi there!I just joined your newsgroup a few days ago and I had fun to solve the parachutist and the handshake enigmas.I've got some, I just hope that they were never asked before.So, here's the first one: You have 10 vending machines to fill out with chocolate bars. In fact, after finishing to put the chocolate, you remember that you had 9 boxes of chocolate bars of 100g. and one box of bars of 90g and you gotta know in which machine you put those of 90g. You cannot tell just by looking on the paper on the bar if it has 90 or 100 g. But, beside the 10 vending machine, you have an electronic weighing machine. When you put a quarter in it , it tells you the weight (it makes only one measure). The problem is that you have only a quarter (only one try) and you gotta know , just by one try, in which machine you put the chocolate bars of 90g. You don't have access to the money of the vending machines. You can weigh as much bars as you want, but you can take one measure. How can you do this (it's mathematic)? ------------------------------------------------------------------------------------------ Marco Bouchard Soyons EXPOS-itifs! ------------------------------------------------------------------------------------------
Re: enigma
Author: Mark A Biggar
Date: Fri, 04 Sep 1992 23:06
Date: Fri, 04 Sep 1992 23:06
24 lines
1765 bytes
1765 bytes
In article <Bu26KK.DEB@ireq.hydro.qc.ca> bouchard@ireq.hydro.qc.ca (Marco Bouchard ETUDIANT sept-dec 92) writes: > [reformatted to fit 80 char lines] >You have 10 vending machines to fill out with chocolate bars. In fact, >after finishing to put the chocolate, you remember that you had 9 boxes >of chocolate bars of 100g. and one box of bars of 90g and you gotta know >in which machine you put those of 90g. You cannot tell just by looking on >the paper on the bar if it has 90 or 100 g. But, beside the 10 vending >machine, you have an electronic weighing machine. When you put a quarter >in it, it tells you the weight (it makes only one measure). The problem >is that you have only a quarter (only one try) and you gotta know, just >by one try, in which machine you put the chocolate bars of 90g. You don't >have access to the money of the vending machines. You can weigh as much >bars as you want, but you can take one measure. >How can you do this (it's mathematic)? Take 1 bar from machine #1, 2 bars from machine #2, ... and 10 bars from machine #10. Weight the whole set of bars. The expected weight is 5500g. But some of the bars weight only 90g, so the actual weight will be some number of 10g increments less then 5500g, that number is the number of the machine with the 90g bars. -- Mark Biggar mab@wdl1.wdl.loral.com
Re: enigma
Author: Stephen Bloch
Date: Tue, 08 Sep 1992 22:13
Date: Tue, 08 Sep 1992 22:13
26 lines
1900 bytes
1900 bytes
bouchard@ireq.hydro.qc.ca (Marco Bouchard ETUDIANT sept-dec 92) writes: >You have 10 vending machines to fill out with chocolate bars. In fact, >after finishing to put the chocolate, you remember that you had 9 boxes >of chocolate bars of 100g. and one box of bars of 90g and you gotta know >in which machine you put those of 90g.... >You can weigh as [many] >bars as you want, but you can take one measure. mab@wdl39.wdl.loral.com (Mark A Biggar) replies: >Take 1 bar from machine #1, 2 bars from machine #2, ... and 10 bars from >machine #10. Weight the whole set of bars. The expected weight is 5500g. >But some of the bars weight only 90g, so the actual weight will be some >number of 10g increments less then 5500g, that number is the number of the >machine with the 90g bars. Of course, this approach can be generalized to handle the case in which you're not sure how many of the boxes were underweight: take 1 bar from machine #1, 2 from #2, 4 from #3, 8 from #4, etc. Only problem is, one of the vending machines has to be capable of holding 1024 chocolate bars, and your scale has to be able to handle over 200 kg of chocolate. And then there's the question of what to DO with over 200 kg of chocolate... :-) -- Stephen Bloch sbloch@silver.cs.umanitoba.ca
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads