会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
hxy
hxy's blog
博客园
首页
新随笔
联系
管理
订阅
2015年10月6日
hdu 2822 bfs
摘要: 问题可以抽象为求起点到终点的最短路,其中经过x的代价是0,而经过.的代价是1,bfs的时候用优先队列即可。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int N = 1001; ...
阅读全文
posted @ 2015-10-06 09:56 hxy_has_been_used
阅读(153)
评论(0)
推荐(0)
编辑
公告