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
相關文章
相關標籤/搜索