摘要:
题意:输入两个数,start,end。从开始通过三种更新到end需要多少次。典型的广搜链接:http://acm.hdu.edu.cn/showproblem.php?pid=2717View Code #include <iostream>#include <queue>using namespace std;int n,m;#define MAX 200000+10bool used[MAX];struct node{ int n; int x;};int bfs(int start){ queue<node>q; node temp; memset(u 阅读全文
posted @ 2012-12-01 10:47
Keep Strive
阅读(378)
评论(0)
推荐(0)
2012年12月1日