摘要: int ans[maxn]; bool vis[maxn]; queueq; void spfa(int f){ memset(ans,63,sizeof(ans)); ans[f]=0; vis[f]=true; while(!q.empty()) q.pop(); q.push(f); while(!q.empty()){ ... 阅读全文
posted @ 2018-07-18 19:47 lmjer 阅读(129) 评论(0) 推荐(0) 编辑