Блог пользователя _wannacry_

Автор _wannacry_, история, 2 месяца назад, По-английски
You have 5 jars of pills. Each pill weighs 10 grams, except for contaminated pills contained in one jar, where each pill weighs 9 grams. Given a scale, how could you tell which jar had the contaminated pills in just one measurement?
  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится

»
2 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I will put all the 5 jars on top of the measurement scale and the scale would definitely read as 49 Grams(1 contaminated pill=9 gram + 4 real pill = 4*10). Then, I will remove one jars at a time from the scale, if the pill is real the measured value would reduce by 10 and if the measured value reduced by 9, then we will get that this is the contaminated jar that we r looking for. In the worst case, we would need to remove one jar from the scale 4 times.

  • »
    »
    2 месяца назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    You can weight the pills only one time , like if u put some pills from every jar thats it then u cant remove and see

»
2 месяца назад, # |
Rev. 2   Проголосовать: нравится +20 Проголосовать: не нравится

Spoiler Alert!

Spoiler