BFS---倒水问题
题目:BFS—倒水问题
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 drain;
POUR(i,j) pour from pot
原创
2021-05-06 09:35:19 ·
247 阅读 ·
0 评论