• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
647丶Z
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2017年8月14日

P1111 修复公路
摘要: #include<bits/stdc++.h>using namespace std;int n,m,now;int fa[1000000];int get(int x){ if(fa[x]!=x)fa[x]=get(fa[x]); return fa[x];}struct node{ int x, 阅读全文
posted @ 2017-08-14 20:44 647丶Z 阅读(1105) 评论(0) 推荐(0)
 
P1462 通往奥格瑞玛的道路
摘要: #include<bits/stdc++.h>using namespace std;int n,m,b,cnt,ans;int f[1000000],c[1000000],nxt[1000000],to[1000000],val[1000000];int dis[1000000],head[100 阅读全文
posted @ 2017-08-14 09:48 647丶Z 阅读(16932) 评论(0) 推荐(0)
 
P1339 [USACO09OCT]热浪Heat Wave
摘要: #include<bits/stdc++.h>using namespace std;int m,x,y,z,s,t,n,cnt;int head[100000],nxt[100000],to[1000000];int val[100000],dis[100000];bool f[100000];v 阅读全文
posted @ 2017-08-14 08:46 647丶Z 阅读(2947) 评论(1) 推荐(1)
 
震惊,最短路算法!!!!
摘要: 转载 http://www.61mon.com/index.php/archives/194/ 文章目录 一:背景 二:算法过程 三:完整代码 四:时间复杂度 五:该算法的缺陷 单源最短路径(1):Dijkstra 算法 2017 年 05 月 18 日 • 阅读: 2761 • 技术 系列文章目录 阅读全文
posted @ 2017-08-14 07:38 647丶Z 阅读(1546) 评论(0) 推荐(1)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3