跳到正文

slips

1438920

awa // phi rks 16.37 mai rt w37 //

在洛谷打开
资料、奖项与版本
『维度被悄悄埋葬』— Dimensions are quietly buried—\color{#FE9019}\mathsf{『维度被悄悄埋葬』}\\\scriptsize\mathsf{—\ Dimensions \ are \ quietly \ buried—} 『歌者在星空的边缘吟唱』— The singer chanted at the edge of the starry sky—\color{#FFB511}\mathsf{『歌者在星空的边缘吟唱』}\\\scriptsize\mathsf{— \ The \ singer \ chanted \ at \ the \ edge \ of \ the \ starry \ sky—} 『永恒的毁灭乐章』— Eternal music of destruction—\color{#FFDC07}\mathsf{『永恒的毁灭乐章』}\\\scriptsize\mathsf{— \ Eternal \ music \ of \ destruction—} 『在文明挣扎万年的地方』— In a place where civilization has struggled for thousands of years—\color{#FFEF00}\mathsf{『在文明挣扎万年的地方』}\\\scriptsize\mathsf{—\ In \ a \ place \ where \ civilization \ has \ struggled \ for \ thousands \ of \ years—} 『三颗恒星布撒不恒定的光』— Three stars cast non−constant light—\color{#FFF600}\mathsf{『三颗恒星布撒不恒定的光』}\\\scriptsize\mathsf{—\ Three \ stars \ cast \ non-constant \ light—} 『乐土般的天堂』— Paradise—\color{#FFFA00}\mathsf{『乐土般的天堂』}\\\scriptsize\mathsf{—\ Paradise—} 『卑微的虫子企图染指神之权杖』— The lowly bugs attempt to infect the scepter of God—\color{#FFE304}\mathsf{『卑微的虫子企图染指神之权杖』}\\\scriptsize\mathsf{—\ The \ lowly \ bugs \ attempt \ to \ infect \ the \ scepter \ of \ God—} 『天真的孩子手握烛棒』— Naı¨ve children hold candlesticks in their hands—\color{#FFEC01}\mathsf{『天真的孩子手握烛棒』}\\\scriptsize\mathsf{—\ Naïve \ children \ hold \ candlesticks \ in \ their\ hands—} 『黑暗森林中的穿行』— Walk through the dark forest—\color{#FFDC07}\mathsf{『黑暗森林中的穿行』}\\\scriptsize\mathsf{—\ Walk \ through \ the \ dark \ forest—} 『满眼皆是骸骨与伤』— Eyes full of skeletons and wounds—\color{#FFEF00}\mathsf{『满眼皆是骸骨与伤』}\\\scriptsize\mathsf{—\ Eyes \ full \ of \ skeletons \ and \ wounds—} 『熄灭的火光蔓延着恐惧与凄凉』— The extinguished flame spread fear and desolation—\color{#FFEF00}\mathsf{『熄灭的火光蔓延着恐惧与凄凉』}\\\scriptsize\mathsf{—\ The \ extinguished \ flame \ spread \ fear \ and \ desolation—} 『童话的世界被绘进画里』— The world of fairy tales is painted in the painting—\color{#FFF600}\mathsf{『童话的世界被绘进画里』}\\\scriptsize\mathsf{—\ The \ world \ of \ fairy \ tales \ is \ painted \ in \ the \ painting—} 『被迫远走的游子在时间之外流浪』— The wanderer , forced to go away , wanders outside of time—\color{#FFFA00}\mathsf{『被迫远走的游子在时间之外流浪』}\\\scriptsize\mathsf{—\ The \ wanderer\ , \ forced \ to \ go \ away\ , \ wanders \ outside \ of \ time—} 『在无尽的星河浩渺里』— In the vastness of the endless galaxy—\color{#E6F911}\mathsf{『在无尽的星河浩渺里』}\\\scriptsize\mathsf{—\ In \ the \ vastness \ of \ the \ endless \ galaxy—} 『孤独迷航』— Lonely Trek—\color{#92E82F}\mathsf{『孤独迷航』}\\\scriptsize\mathsf{—\ Lonely \ Trek—} 『人类的墓碑』— Man′s tombstone—\color{#39D54B}\mathsf{『人类的墓碑』}\\\scriptsize\mathsf{—\ Man's \ tombstone—} 『被印拓在宇宙最低的地方』— It is in the lowest place in the universe—\color{#03C767}\mathsf{『被印拓在宇宙最低的地方』}\\\scriptsize\mathsf{—\ It \ is \ in \ the \ lowest \ place \ in\ the \ universe—} 『永远尘封的文明』— A civilization that will always be dusty—\color{#07C964}\mathsf{『永远尘封的文明』}\\\scriptsize\mathsf{—\ A \ civilization \ that \ will \ always \ be \ dusty—} 『陪葬着二维的太阳』— Buried with the two− dimensional sun—\color{#00C789}\mathsf{『陪葬着二维的太阳』}\\\scriptsize\mathsf{—\ Buried \ with \ the \ two-\ dimensional \ sun—} 『正在死去的宇宙』— The universe that is dying—\color{#00C7A5}\mathsf{『正在死去的宇宙』}\\\scriptsize\mathsf{—\ The \ universe \ that \ is \ dying—} 『归零重生的希望』— The hope of zero rebirth—\color{#00CBC6}\mathsf{『归零重生的希望』}\\\scriptsize\mathsf{—\ The \ hope \ of \ zero \ rebirth—} 『散逸的死线曲率的逃亡』— The escape of the loose dead−line curvature—\color{#00D0EB}\mathsf{『散逸的死线曲率的逃亡』}\\\scriptsize\mathsf{—\ The \ escape \ of \ the \ loose \ dead-line \ curvature—} 『宇宙之外的人性却悄然绽放』— The humanity of the universe outside the universe has quietly blossomed—\color{#00D0F2}\mathsf{『宇宙之外的人性却悄然绽放』}\\\scriptsize\mathsf{—\ The \ humanity \ of \ the \ universe \ outside \ the \ universe \ has \ quietly \ blossomed—} 『当时间消融了一切印记』— When time dissolves all imprints—\color{#00D0F6}\mathsf{『当时间消融了一切印记』}\\\scriptsize\mathsf{—\ When \ time \ dissolves \ all \ imprints—} 『爱情却横跨了亿万年的离殇』— Love spans hundreds of millions of years of death—\color{#03BEF4}\mathsf{『爱情却横跨了亿万年的离殇』}\\\scriptsize\mathsf{—\ Love \ spans \ hundreds \ of \ millions \ of \ years \ of \ death—}
共 3 篇
  1. 算法·理论

    KMP 学习笔记

    KMP算法是一种高效的字符串匹配算法,通过利用模式串的最长相同真前后缀信息,避免暴力法中文本串的回溯,将时间复杂度优化至O(n + m)(n为文本串长度,m为模式串长度)。其核心思想是:当匹配失败时,根据已匹配部分的最长前后缀长度(由nxt数组记录),调整模式串的位置,直接从该前后缀的末尾继续匹配,而非从头开始。nxt数组的构建过程从左到右逐个字符处理,通过比较当前字符与前缀的下一个字符,若匹配则延长前缀长度,否则回溯至更短的前后缀。算法在匹配时若j(当前匹配长度)等于模式串长度m,则记录匹配位置并调整j为nxt[j]以继续寻找重叠匹配。KMP的应用包括求解字符串的最短循环节(公式为n - nxt[n])和高效删除文本中所有匹配模式串的部分,通过栈结构与match数组记录匹配状态,确保操作效率。

    9 赞
  2. 题解

    题解:P16623 [GKS 2017 #C] The 4M Corporation

    题目要求构造一个包含正整数的部门人数集合,使其满足给定的最小值、最大值、平均值和中位数约束,且集合元素个数(部门数量)最少。解法如下:首先排除不合法情况(如最小值 > 最大值,或平均值/中位数超出[min, max]范围);然后从小到大枚举部门数 k,对每个 k 计算总人数(k × 平均值),并根据 k 的奇偶性,分别求出在满足所有约束下可能的最小与最大总人数——奇数时中位数唯一确定,偶数时由中间两数平均值确定;若固定总人数落在该区间内,则 k 可行。因最优 k 通常很小,顺序枚举效率高。

  3. 题解

    题解:AT_abc215_f [ABC215F] Dist Max 2

    题目大意 在二维平面上有 N 个点 (x_i, y_i)。定义两个点 i 与 j 之间的距离为: 求所有点对中距离的最大值。 解题思路 题目要求的是“最大化最小值”,这是典型的二分答案。如果要验证是否存在一对点,使它们的距离至少为 K,即满足: 我们要实现一个 check(K) …