摘要: P3378 【模板】堆 #include <iostream> #include <cstring> #include <cstdio> using namespace std; const int N = 1e6; int h[N], s; void up(int u) { while(u / 2 阅读全文
posted @ 2020-06-10 16:57 龙雪可可 阅读(106) 评论(0) 推荐(0) 编辑
摘要: P3375 【模板】KMP字符串匹配 #include <iostream> #include <cstring> #include <cstdio> using namespace std; const int N =1e6 + 10; char s[N], p[N]; int ne[N]; in 阅读全文
posted @ 2020-06-10 14:28 龙雪可可 阅读(108) 评论(0) 推荐(0) 编辑
摘要: P3366 【模板】最小生成树 //prim算法求最小生成树#include <iostream> #include <cstring> using namespace std; const int N = 5010, INF = 0x3f3f3f3f; int n, m, d[N], g[N][N 阅读全文
posted @ 2020-06-10 13:01 龙雪可可 阅读(171) 评论(0) 推荐(0) 编辑
****************************************** 页脚Html代码 ******************************************