_wannacry_'s blog

By _wannacry_, history, 2 years ago, In English
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?
  • Vote: I like it
  • -3
  • Vote: I do not like it

| Write comment?
»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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 years ago, hide # |
Rev. 2  
Vote: I like it +20 Vote: I do not like it

Spoiler Alert!

Spoiler