罐子
8.罐子(简单搜索 BFS最短步数+记录方案)
罐子 ↑ 题目链接 题目 给你两个罐子,容积分别为 $A$ 升和 $B$ 升。 现在,你可以进行如下三种操作: FILL(i),将罐子 $i(1≤i≤2)$ 灌满水。 DROP(i),将罐子 $i(1≤i≤2)$ 清空。 POUR(i,j),将罐子 $i$ 中的水倒向罐子 $j$ ,直到罐子 $i$ ......
kuangbin专题一 简单搜索 罐子(POJ-3414)
#Pots Time Limit: 1000MS Memory Limit: 65536K ####Description You are given two pots, having the volume of A and B liters respectively. The following ......