摘要: bfs题,用数组模拟水杯的状态,尝试每一种可能的状态,如果找到就返回,详解见代码注释: 1 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 const int MAX = 1... 阅读全文
posted @ 2014-11-19 20:41 Howe_Young 阅读(781) 评论(0) 推荐(0) 编辑