- 博客(7)
- 收藏
- 关注
原创 hduoj 1213 并查集
#include <iostream>#include <cstdio>#include <cstring>#include <vector>#include <algorithm>#include <cmath>using namespace std;#define MAXN 1000+5#define ...
2019-03-08 23:50:10 158
原创 hduoj 2066 最短路径 + 离散化节点 djkstra
#include <iostream>#include <cstdio>#include <cstring>#include <vector>#include <queue>#include <algorithm>#define MAXN 1000+5#define INF (int)1e9+5#defi...
2019-03-08 23:44:41 210
原创 hduoj 4081 并查集 次小生成树 kruscal算法
部分代码没有用,只是为了测试 vector都没有用到#include <iostream>#include <cstdio>#include <cstring>#include <vector>#include <algorithm>#include <set>#define DEBUG 1#def...
2019-03-08 23:42:26 195
原创 QT5.11 + OPENCV4.0 + cmake 配置
QT 5.11没有64位版本OPENCV4.0 官网下载很慢 可以直接百度网盘搜索到处都有首先安装QT 记得在最后将mingw勾中,如果想用其他的编译器也可以opencv4.0下载后直接安装然后用cmake编译cmake编译可以详情看此篇博客https://blog.csdn.net/qq_33308135/article/details/8504979...
2019-03-08 22:48:19 335
原创 hduoj 1874 bellman ford 包含负边的最短路径算法
https://www.cnblogs.com/gaochundong/p/bellman_ford_algorithm.html Bellman-Ford 算法是一种用于计算带权有向图中单源最短路径(SSSP:Single-Source Shortest Path)的算法。该算法由Richard Bellman 和 Lester Ford 分别发表于 1958 年和 1956...
2019-03-03 10:53:09 180
原创 hduoj 3790 djkstra 最短路径算法
#include <iostream>#include <cstdio>#include <cstring>#include <vector>#define MAXN 1000+5#define INF (int)1e9+5#define DEBUG 1using namespace std;int G[MAXN][MAXN...
2019-03-02 11:11:40 201
原创 hduoj 1394 树状数组
#include <iostream>#include <cstdio>#include <cstring>using namespace std;#define N 5000+5#define DEBUG 1int C[N] = {0};int A[N] = {0};int lowbit(int x){ return x&am...
2019-02-25 20:48:08 114
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人