摘要: #include #include #include #include using namespace std;const int inf = 1dis[u]+c) { dis[v] = dis[u]+c; return 1; } return 0;}i... 阅读全文
posted @ 2015-04-09 12:49 lazypark 阅读(125) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; const int inf = 1dis[u]+c) { dis[v] = dis[u]+c; return 1; } return 0; } int SPFA(int src) { int i; me... 阅读全文
posted @ 2015-04-09 12:49 lazypark 阅读(100) 评论(0) 推荐(0) 编辑
摘要: #include #include #include#includeusing namespace std;long toTen(char a[],int bit){ long i,b=1,sum=0; int length=strlen(a); for (i=length-1;i... 阅读全文
posted @ 2015-04-09 12:47 lazypark 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #include #include #include#includeusing namespace std;long toTen(char a[],int bit){ long i,b=1,sum=0; int length=strlen(a); for (i=length-1;i... 阅读全文
posted @ 2015-04-09 12:47 lazypark 阅读(141) 评论(0) 推荐(0) 编辑