# Water Jugs (10, 5 and 6) -v2- [duplicate]

I have three water jugs, one with 10 liters another with 5 and another with 6, how do i get 8 liters on the first one with 10 liters of water available. (so you cannot fill 10 liters jug again)

• doable with only 8L initially, see puzzling.stackexchange.com/questions/25896/… Commented Jan 29, 2016 at 15:34
• @njzk2 If you start with 8L in the 10L jug and you want to end up with 8L in the 10L jug (as this question's constraints require), isn't this just the null operation? Commented Jan 30, 2016 at 14:27
• @AE In this puzzle, you start with a full 10L jug but can't get more water. The question you linked to had an infinitely large tub from which you could draw. Commented Jan 30, 2016 at 14:29
• @Lawrence haha, yes. But no, my answer does not require that you know how much water you have, but it does use exactly 8L Commented Jan 30, 2016 at 18:15

10L jug - 5L jug  - 6L jug
10      -    0    -    0
4       -    0    -    6
4       -    5    -    1
9       -    0    -    1
9       -    1    -    0
3       -    1    -    6
3       -    5    -    2
8       -    0    -    2

• Exactly this was what I was about to post. Commented Jan 29, 2016 at 12:08

Legend: 10l jug / 5l jug / 6l jug
2. Fill the 6l jug and fill the rest in the 5l jug => 0/4/6
3. Swap th 4l into the 10l jug and fill with the 6l jug the 5l jug => 4/5/1
4. Swap the 5l jug into the 10l jug and the remaining 1l from 6l jug to 5l jug => 9/1/0
5. Fill from th 9l the 6l jug => 3/1/6
6. FIll the 5l jug from the 6l jug => 3/5/2
7. Fill the 10l jug with the 5l jug => 8/0/2