Pots bfs()記錄每一種狀態,直到求出最優值

Problem Description You are given two pots, having the volume of A and B liters respectively. The following operations can be performed:html FILL(i)        fill the pot i (1 ≤ i ≤ 2) from the tap; DRO
相關文章
相關標籤/搜索