摘要: 题意:输入两个数,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 阅读全文