上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 给定一个字符串,把它首尾相连形成字符环,然后从某个点开始的字符串字典序最小,为该字符串的最小表示 最小最大的区别就是在第9行的>和 ... 阅读全文
posted @ 2021-07-22 17:52 cheems~ 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 哈夫曼,字典树,01字典树 哈夫曼HUD2527VJ 字典树HUD2072为例HUD1251为例 01字典树HUD4825 ... 阅读全文
posted @ 2021-07-21 15:32 cheems~ 阅读(63) 评论(0) 推荐(0) 编辑
摘要: LIS,LCS,LCIS模板 LIS(最长上升子序列)LCS(最长公共子序列)LCIS(最长公共上升子序列) LIS(最长上升子序... 阅读全文
posted @ 2021-07-21 15:05 cheems~ 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 二分图相关模板 二分图最大匹配二分图判定(上色) 二分图最大匹配 #includeusing namespace std;int ... 阅读全文
posted @ 2021-07-16 19:32 cheems~ 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 用数组模拟会T,今天被坑了- - vector #include#include using namespace std;struc... 阅读全文
posted @ 2021-07-15 16:42 cheems~ 阅读(26) 评论(0) 推荐(0) 编辑
摘要: void ST(int n) { for (int i = 1; i <= n; i++) dp[i][0] =... 阅读全文
posted @ 2021-07-15 14:40 cheems~ 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 倍增算法(在线) #include#include#include#define MAXN 10005using namespace... 阅读全文
posted @ 2021-07-15 11:06 cheems~ 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 拓扑排序 通常用来判断途中图中有没有环 模板 #include#includeusing namespace std;#define... 阅读全文
posted @ 2021-05-24 17:56 cheems~ 阅读(23) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;int n;class myint { friend ostream& op... 阅读全文
posted @ 2021-05-11 19:13 cheems~ 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 拷贝构造函数与移动构造函数 拷贝构造函数与移动构造函数的区别参考 拷贝构造函数与移动构造函数的区别 拷贝构造函数的形参是一个左值引... 阅读全文
posted @ 2021-05-07 22:38 cheems~ 阅读(339) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页