摘要:
/*简单BFSAuthor: shaoruiDate: 2012/9/29思路简单,就是写起来有点麻烦思路:用kind[i][j]表示1,2pots中剩的体积为i,j时,从上一步到这步的操作种类。。。11:FILL(1)12:FILL(2)21:DROP(1)22: DROP(2)31: POUR(1,2)32: POUR(2,1)prex[i][j],pery[i][j]表示1,2pots中剩的体积为i,j时,上一步的x,y(即1,2pots中的体积x,y)*/#include<iostream>#include<queue>using namespace std;# 阅读全文
posted @ 2012-09-29 10:04
sorryhao
阅读(782)
评论(0)
推荐(0)

浙公网安备 33010602011771号