![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模板
Havoc.Wei
Be one with yuri.
展开
-
洛谷 [模板]KMP字符串匹配
洛谷模板原创 2020-03-11 20:27:02 · 308 阅读 · 0 评论 -
洛谷 [模板]快速排序
快速排序算法原创 2017-12-02 20:38:36 · 432 阅读 · 0 评论 -
洛谷 [模板]最小生成树
题目链接:https://www.luogu.org/problemnew/show/P3366 这里不做解释了#include <cstdio> #include <cstring> #include <algorithm> #include <iostream> #include <cstdlib> using namespace std; int n,m,fa[5010],ans=0,fla原创 2017-12-24 09:43:38 · 255 阅读 · 0 评论 -
洛谷 [模板]并查集
题目链接:https://www.luogu.org/problemnew/show/3367#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; int n,m,x,y,z,fa[200010]; int get(int a) //存根节点,fa[a]是a的根节点原创 2017-12-16 13:18:26 · 382 阅读 · 0 评论