home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / sci / logic / 1351 next >
Encoding:
Text File  |  1992-09-07  |  1.7 KB  |  38 lines

  1. Newsgroups: sci.logic
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sgi!wdl1!wdl39!mab
  3. From: mab@wdl39.wdl.loral.com (Mark A Biggar)
  4. Subject: Re: enigma
  5. Message-ID: <1992Sep4.230629.2695@wdl.loral.com>
  6. Sender: news@wdl.loral.com
  7. Organization: Loral Western Development Labs
  8. References: <Bu26KK.DEB@ireq.hydro.qc.ca>
  9. Distribution: na
  10. Date: Fri, 4 Sep 1992 23:06:29 GMT
  11. Lines: 25
  12.  
  13. In article <Bu26KK.DEB@ireq.hydro.qc.ca> bouchard@ireq.hydro.qc.ca (Marco Bouchard ETUDIANT sept-dec 92) writes:
  14. >  [reformatted to fit 80 char lines]
  15. >You have 10 vending machines to fill out with chocolate bars. In fact,
  16. >after finishing to put the chocolate, you remember that you had 9 boxes
  17. >of chocolate bars of 100g. and one box of bars of 90g and you gotta know
  18. >in which machine you put those of 90g. You cannot tell just by looking on
  19. >the paper on the bar if it has 90 or 100 g. But, beside the 10 vending
  20. >machine, you have an electronic weighing machine. When you put a quarter
  21. >in it, it tells you the weight (it makes only one measure). The problem
  22. >is that you have only a quarter (only one try) and you gotta know, just
  23. >by one try, in which machine you put the chocolate bars of 90g. You don't
  24. >have access to the money of the vending machines.  You can weigh as much
  25. >bars as you want, but you can take one measure.    
  26. >How can you do this (it's mathematic)?
  27.  
  28. Take 1 bar from machine #1, 2 bars from machine #2, ... and 10 bars from
  29. machine #10.  Weight the whole set of bars.  The expected weight is 5500g.
  30. But some of the bars weight only 90g, so the actual weight will be some
  31. number of 10g increments less then 5500g, that number is the number of the 
  32. machine with the 90g bars.
  33.  
  34. --
  35. Mark Biggar
  36. mab@wdl1.wdl.loral.com
  37.  
  38.