网站首页 站内搜索

搜索结果

查询Tags标签: le10,共有 3条记录
  • 一些杂项算法

    KMP 代码实现 时间复杂度\(O(n + m)\) int n, m; int next[M + 1], f[N + 1]; char s[N + 2], p[M + 2];void kmp() {n = strlen(s + 1), m = strlen(p + 1);int j = 0;nxt[1] = 0;for (int i = 2; i <= m; i++) {while (j > 0 && p[j + 1] != p[i])j = nxt…

    2022/8/11 14:25:35 人评论 次浏览
  • Solution Set - 神奇 NOIP 模拟赛

    \[\mathfrak{\text{Defining }\LaTeX\text{ macros...}}\newcommand{\vct}[1]{\boldsymbol{#1}}\newcommand{\stir}[2]{\genfrac{\{}{\}}{0pt}{}{#1}{#2}}\newcommand{\opn}[1]{\operatorname{#1}}\newcommand{\lcm}[0]{\opn{lcm}}\newcommand{\sg}[0]{\opn{sg}}\newcomma…

    2021/10/29 23:13:00 人评论 次浏览
  • Solution Set - 神奇 NOIP 模拟赛

    \[\mathfrak{\text{Defining }\LaTeX\text{ macros...}}\newcommand{\vct}[1]{\boldsymbol{#1}}\newcommand{\stir}[2]{\genfrac{\{}{\}}{0pt}{}{#1}{#2}}\newcommand{\opn}[1]{\operatorname{#1}}\newcommand{\lcm}[0]{\opn{lcm}}\newcommand{\sg}[0]{\opn{sg}}\newcomma…

    2021/10/29 23:13:00 人评论 次浏览
扫一扫关注最新编程教程