All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Logic > Weights and Scales
The Three Jugs (Posted on 2003-08-18) Difficulty: 3 of 5
You have a 12 litre jug, an 8 litre jug, and a 5 litre jug. None of the jugs have any markings on them. The 12 litre jug is full, and the other two are empty.

How can you divide the 12 litres of water in such a way that two of the jugs (the 12 litre and the 8 litre jugs) have exactly 6 litres of water in them, and the third (the 5 litre jug) is empty?

See The Solution Submitted by Ravi Raja    
Rating: 3.0000 (15 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution 3 jugs, one cycle | Comment 6 of 15 |
The solution to this works pretty much round robin from 12 to 5 to 8. Once 8 is full, empty 8 back to 12, then whatever is left in 5 goes into 8. Then restart the cycle from 12 to 5 to 8 until 8 is full, empty 8 to 12, then remaining contents of 5 to 8, and start again.

Start with contents 12-0-0 (jugs in capacity order of 12-8-5)
1. From 12 to 5 = 7-0-5
2. From 5 to 8 = 7-5-0
3. From 12 to 5 = 2-5-5
4. From 5 to 8 = 2-8-2
5. 8 is full, so from 8 to 12 = 10-0-2
6. Empty remaining from 5 to 8 = 10-2-0
7. Restart cycle like at #1, i.e. 12 to 5 = 5-2-5
8. 5 to 8 = 5-7-0
9. 12 to 5 = 0-7-5
10. 5 to 8 = 0-8-4
11. 8 is full, so from 8 to 12 = 8-0-4
12. Empty remaining from 5 to 8 = 8-4-0
13. Restart Cycle like at #1 & #7, so 12 to 5 = 3-4-5
14. 5 to 8 = 3-8-1
15. 8 is full, so empty 8 into 12 (almost done)= 11-0-1
16. Empty remaining 5 to 8 = 11-1-0
17. Restart 12 to 5 = 6-1-5
18. Empty 5 into 8 = 6-6-0, and we are DONE!
  Posted by Lawrence on 2003-08-23 05:50:45
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information