A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Joined: Dec 06, 2005
Mar 09, 2006 08:28:00
You have 4 jars of pills. Each pill is a certain weight, except for contaminated pills contained in one jar, where each pill is weight + 1. How could you tell which jar had the contaminated pills in just one measurement?
Joined: Jun 02, 2003
Mar 09, 2006 22:29:00
Do all jars contain the same numbers of pills and how much?
We may select as many as we like?
The contaminated pills are red!
Joined: Jan 09, 2006
Mar 09, 2006 23:13:00
let the weight of each uncontaminated pill be 'x'
so weight of contaminated pill is 'x+1'
there are 4 jars ( say 1, 2 ,3 and 4)
now take 1 pill from jar 1
now take 2 pills from jar 2
now take 3 pills from jar 3
now take 4 pills from jar 4
weigh them all together.
now the weight will be 10x + n
where n is the jar number which contains the contaminated pills.
let me know if I am wrong.
I agree. Here's the link:
subject: measurment puzzle
solve this riddle
Paradoxes and Ironies!!!!
Find the faulty machine
Can you spot the fallacy?
Geniuses, Help Me To Crack This "Big Sizes" Number Puzzle
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015