You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap; DROP(i) empty the pot i to the dr
You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap; DROP(i) empty the pot i to the dr
Description You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;DROP(i)
1.题意:有两个罐子A,B,可以进行三种操作, FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;//把第i个罐子装满;DROP(i) empty the pot i to the drain;//把第i个罐子清空;POUR(i,j) pour from pot i to pot j; after this operat
1.题意:有两个罐子A,B,可以进行三种操作, FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;//把第i个罐子装满;DROP(i) empty the pot i to the drain;//把第i个罐子清空;POUR(i,j) pour from pot i to pot j; after this operat