You have an empty 3-liter container, a full 5-liter container with 50 degrees water, and a full 6-liter container with 90 degrees water.
Can you manage to get some 72 degrees water?
(notation L : liters, C: degree, cont container )
begin configuration:
5L 50C, 6L 90C, 3L
5L cont, 6L cont, 3L cont
--------------------------
pour from 5L 50C in 3L : 2L 50C, 6L 90C, 3L 50C
pour from 6L 90C in 2L 50C : 5L 74C, 3L 90C, 3L 50C
pour from 3L 50C in 3L 90C : 5L 74C, 6L 70C, 0L
pour from 6L 70C in 3L : 5L 74C, 3L 70C, 3L 70C
pour from 5L 74C in 3L 70C : 2L 74C, 6L 72C, 3L 70C
|
Posted by pedro
on 2004-10-11 11:15:04 |