POJ-2139-Six Degrees of Cowvin Bacon

 水题一道,用floyd便可~,注意后面计算结果不要用double,会判waios 代码:spa #include<cstdio> #include<cstring> #include<iostream> using namespace std; const int maxn=400; const int inf=1<<29; int n,m,a[maxn],f[maxn][maxn]; int
相关文章
相关标签/搜索