随笔 - 0  文章 - 5  trackbacks - 0
<2025年6月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

常用链接

留言簿(2)

文章分类

文章档案

教育

信息学奥赛

有用网站

在线OJ

专题测试

租房信息

搜索

  •  

最新评论

#include using namespace std; const int N = 1000, oo = 0x3fffffff; int n,dist[N][N]; void init(){ int e; cin>>n>>e; fill(dist[0],dist[0]+N*N,oo); for (int i=0;i>a>>b>>c; dist[a][b]=c; } } void floyd(){ for (int k=0;kposted on 2014-07-23 22:05 龙在江湖 阅读(186) 评论(0)  编辑 收藏 引用 所属分类: 图论算法