Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

solve this riddle

 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've been placed on a course of expensive medication in which you are to take one tablet of medicine A and one tablet of medicine B daily.

You must be careful that you take just one of each because taking more of either can have serious side effects. Taking an A without taking a B, or vice versa, can also be very serious, because they must be taken together in order to be effective. In summary, you must take exactly one of the A pills and one of the B pills at one time.

Therefore, you open up the A bottle, and you tap one A pill into your hand. You put that bottle aside and you open the B bottle. You do the same, but by mistake, two Bs fall into your hand with the A pill.

Now, here's the problem. You weren't watching your hand as the pills fell into it, so you can't tell the A pill apart from the two B pills. The pills look identical. They are the same size, same weight, same color, same everything, and they are not marked differently in any way. What are you going to do? You cannot tell which pill is which, and you cannot afford to throw them away and start over again.

How do you get your daily dose of exactly one A and exactly one B without wasting any of the pills?
 
Sameer Jamal
Ranch Hand
Posts: 1870
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we break those pills into halves ?
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And is the number of pills in both bottles known or have they been identical?
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are identical pills in both boxes. THey can be cut to half(that is the clue), there is no rule stopping you from that.
 
Paul Clapham
Sheriff
Pie
Posts: 20750
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You know you have one A and two B's. So get one more A out of the bottle and you have two A's and two B's. Grind all four pills into powder and mix thoroughly. Take half of the powder today and the other half tomorrow.
 
Jayesh Lalwani
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Clapham:
You know you have one A and two B's. So get one more A out of the bottle and you have two A's and two B's. Grind all four pills into powder and mix thoroughly. Take half of the powder today and the other half tomorrow.



Or Take one A out. Cut all 4 pills into half, and have half of each pill today, and the other half tommorrow.
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Clapham:
You know you have one A and two B's. So get one more A out of the bottle and you have two A's and two B's. Grind all four pills into powder and mix thoroughly. Take half of the powder today and the other half tomorrow.


Good Idea
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic