摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=2717基本BFS 1 #include <stdio.h> 2 #include <string.h> 3 #include <stdlib.h> 4 #include <queue> 5 using namespace std; 6 int N,K; 7 int degree[100002]; 8 queue<int> Q; 9 void bfs()10 {11 while(!Q.empty()){12 int cur=Q.front();13 Q 阅读全文
posted @ 2011-11-29 19:57
linyvxiang
阅读(165)
评论(0)
推荐(0)

浙公网安备 33010602011771号