• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






渣渣的学习之路

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2015年3月27日

邻接表的数组实现
摘要: int n,m;int first[maxn];int u[maxn],v[maxn],w[maxn],next[maxn];void read_graph(){ scanf("%d%d",&n,&m); for(int i=0;i<n;i++)first[i]=-1; for(i... 阅读全文
posted @ 2015-03-27 23:52 xxxxy 阅读(122) 评论(0) 推荐(0)
 
HDU 1233 还是畅通工程
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1233裸的最小生成树,刚学。用的是Kruskal算法#include #include #include const int MAXN=11000;using namespace std;int u[MA... 阅读全文
posted @ 2015-03-27 15:38 xxxxy 阅读(123) 评论(0) 推荐(0)