摘要: ①简单bfs+状压(赤果果)View Code 1 #include<stdio.h> 2 #include<queue> 3 using namespace std; 4 5 int n,m,data[10][2]; 6 struct node 7 { 8 int spell,dist,hp; 9 };10 11 int bfs(void)12 {13 node sn={0,0,m};14 queue<node> Q;15 16 Q.push(sn);17 while( !Q.empty() )18 {19 node cur... 阅读全文
posted @ 2012-11-22 21:35 kiwi_bird 阅读(160) 评论(0) 推荐(0) 编辑