Guest Posted July 19, 2011 Report Share Posted July 19, 2011 You have flask A, which holds 19 ounces, and flask B, which holds 12 ounces. Using only the operations of filling a flask, emptying a flask, and pouring one flask into another (until either the first is empty or the second is full), you must manage to put exactly 16 ounces of water in flask A, leaving flask B empty. Quote Link to comment Share on other sites More sharing options...
0 preflop Posted July 19, 2011 Report Share Posted July 19, 2011 there may be a more efficient way but this works (I think) A B Start 0 0 Fill B 0 12 B into A 12 0 Fill B 12 12 B into A 19 5 Empty A 0 5 B into A 5 0 Fill B 5 12 B into A 17 0 Fill B 17 12 B into A 19 10 Empty A 0 10 B into A 10 0 Fill B 10 12 B into A 19 3 Empty A 0 3 B into A 3 0 Fill B 3 12 B into A 15 0 Fill B 15 12 B into A 19 8 Empty A 0 8 B into A 8 0 Fill B 8 12 B into A 19 1 Empty A 0 1 B into A 1 0 Fill B 1 12 B into A 13 0 Fill B 13 12 B into A 19 6 Empty A 0 6 B into A 6 0 Fill B 6 12 B into A 18 0 Fill B 18 12 B into A 19 11 Empty A 0 11 B into A 11 0 Fill B 11 12 B into A 19 4 Empty A 0 4 B into A 4 0 Fill B 4 12 B into A 16 0 Quote Link to comment Share on other sites More sharing options...
0 k-man Posted July 19, 2011 Report Share Posted July 19, 2011 A B Start 0 0 Fill A 19 0 A to B 7 12 Empty B 7 0 A to B 0 7 Fill A 19 7 A to B 14 12 Empty B 14 0 A to B 2 12 Empty B 2 0 A to B 0 2 Fill A 19 2 A to B 9 12 Empty B 9 0 A to B 0 9 Fill A 19 9 A to B 16 12 Empty B 16 0 Quote Link to comment Share on other sites More sharing options...
0 Guest Posted July 20, 2011 Report Share Posted July 20, 2011 Correct!!! Great job guys. Another if you wish... Quote Link to comment Share on other sites More sharing options...
0 dark_magician_92 Posted July 20, 2011 Report Share Posted July 20, 2011 (edited) You have flask A, which holds 19 ounces, and flask B, which holds 12 ounces. Using only the operations of filling a flask, emptying a flask, and pouring one flask into another (until either the first is empty or the second is full), you must manage to put exactly 16 ounces of water in flask A, leaving flask B empty. i am too lazy to type, so 19 , 0 7 , 12 7 , 0 0 , 7 19 , 7 14 , 12 14 , 0 2 , 12 2 , 0 0 , 2 19 , 2 9 , 12 9 , 0 0 , 9 19 , 9 16 , 12 16 , 0 Edited July 20, 2011 by dark_magician_92 Quote Link to comment Share on other sites More sharing options...
Question
Guest
You have flask A, which holds 19 ounces, and flask B, which
holds 12 ounces. Using only the operations of filling a flask, emptying a
flask, and pouring one flask into another (until either the first is
empty or the second is full), you must manage to put exactly 16 ounces of
water in flask A, leaving flask B empty.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.