2015年5月12日

poj 1077 Eight (BFS)

摘要: 八数码问题,各种解法。/*// BFS#include#include#includeusing namespace std;// 把1..n的排列映射为数字 0..(n!-1)int fac[] = { 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880 }... 阅读全文

posted @ 2015-05-12 23:58 王老大- 阅读(175) 评论(0) 推荐(0) 编辑

导航