会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Venux
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
18
下一页
2020年11月24日
POJ 1523 (Tarjan求关节点)
摘要: http://poj.org/problem?id=1523 1 #define IO std::ios::sync_with_stdio(0) 2 #include <iostream> 3 #include <vector> 4 #include <stdio.h> 5 #include <st
阅读全文
posted @ 2020-11-24 23:50 Venux
阅读(137)
评论(0)
推荐(0)
2020年11月23日
P3366 【模板】最小生成树 (Kruskal)
摘要: 1 #define IO std::ios::sync_with_stdio(0) 2 #include <bits/stdc++.h> 3 #define pb push_back 4 using namespace std; 5 typedef long long ll; 6 const int
阅读全文
posted @ 2020-11-23 18:06 Venux
阅读(86)
评论(0)
推荐(0)
P3366 【模板】最小生成树(Prim)
摘要: https://www.luogu.com.cn/problem/P3366 1 #define IO std::ios::sync_with_stdio(0) 2 #include <bits/stdc++.h> 3 #define pb push_back 4 using namespace s
阅读全文
posted @ 2020-11-23 17:32 Venux
阅读(139)
评论(0)
推荐(0)
Dijkstra(n^2版)
摘要: 1 #define IO std::ios::sync_with_stdio(0) 2 #include <bits/stdc++.h> 3 #define pb push_back 4 using namespace std; 5 typedef long long ll; 6 const int
阅读全文
posted @ 2020-11-23 16:35 Venux
阅读(98)
评论(0)
推荐(0)
线索二叉树(中序)
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef int ElemType; 4 5 typedef struct ThrNode{ 6 ElemType data; 7 ThrNode* lson; 8 ThrNode* rso
阅读全文
posted @ 2020-11-23 14:19 Venux
阅读(151)
评论(0)
推荐(0)
2020年11月20日
Floyd
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 5 const int N=1005; 6 7 int D; 8 9 int G[N][N]; 10 11 int n,m,s; 12 13 ll
阅读全文
posted @ 2020-11-20 17:32 Venux
阅读(146)
评论(0)
推荐(0)
二叉树第k层节点数
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef int ElemType; 4 5 typedef struct Node{ 6 ElemType data; 7 Node* lson; 8 Node* rson; 9 Node
阅读全文
posted @ 2020-11-20 16:24 Venux
阅读(498)
评论(0)
推荐(0)
排序二叉树删除节点、二叉树后序、先序非递归遍历
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef char ElemType; 4 5 typedef struct BiNode{ 6 ElemType data; 7 BiNode* lchild; 8 BiNode* rch
阅读全文
posted @ 2020-11-20 13:28 Venux
阅读(120)
评论(0)
推荐(0)
2020年10月9日
pipioj 1373: 在每个树行中找最大值
摘要: http://www.pipioj.online/problem.php?id=1373 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef int ElemType; 4 const int N=3e5; 5 6 typedef
阅读全文
posted @ 2020-10-09 21:04 Venux
阅读(111)
评论(0)
推荐(0)
2020年10月5日
pipioj 1295: 一元多项式乘法
摘要: http://www.pipioj.online/problem.php?id=1295 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std::ios::sync_with_stdio(0) 3 #include<bits/stdc
阅读全文
posted @ 2020-10-05 15:32 Venux
阅读(183)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
18
下一页
公告