A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
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.
Don't get me started about those stupid
subject: measurment puzzle
Paradoxes and Ironies!!!!
WA #1.....word association
WA #2 ..... word association
Scrabble... it only takes a minute...
solve this riddle
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014