• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
mengxm
博客园    首页    新随笔    联系   管理    订阅  订阅
2012年2月16日
poj3159
摘要: SPFA:bfs形式超时,各种优化还是超时,手敲循环队列还超,伤不起啊,有木有我必须晒晒代码,以泄我愤。slfView Code 1 #include <stdio.h> 2 #include <queue> 3 using std::deque; 4 #define MAXN 150010 5 #define MAX 30010 6 #define INF (1<<29) 7 int n,m; 8 deque <int> q; 9 struct node10 {11 int d,t;12 node* next;13 }*h1[MAX],e1[M 阅读全文
posted @ 2012-02-16 02:07 mengxm 阅读(354) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3