![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DFS
文章平均质量分 74
吴钩揽月
这个作者很懒,什么都没留下…
展开
-
POJ 1137----The New Villa
问题描述: The New Villa Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 1354 Accepted: 443 Description Mr. Black recently bought a villa in the countryside. Only one thing bothers him:原创 2014-12-05 17:35:29 · 694 阅读 · 0 评论 -
Single-source shortest paths in directed graphs
此算法为<算法导论>中第24章第2小节关于single-source shortest paths in directed graphs原理的实现. 原著P592 #include using namespace std; #define MAX 32767 int N,M; int u,v,l,pos; int w[1000][1000],d[1000]; int order[1000]原创 2014-12-22 17:21:57 · 556 阅读 · 0 评论