跳到正文

__AKcepted

1034420

不拿蓝钩不改签 壶关条件:https://www.luogu.me/paste/cw254tg4 宣团:https://www.luogu.com.cn/team/108942

在洛谷打开
资料、奖项与版本

资料

编号
1034420
抓取

奖项

2025 CSP-J
一等奖
2025 CSP-S
一等奖
2024 CSP-J
一等奖

本人的萌新QAQ是刚学OI但是是这样即使我也声音大声喊出要用蒟蒻的IOI AK ME!\small\texttt{\color{#FA4129}本}\huge\texttt{\color{#FE9019}人}_{\small\texttt{\color{#FFE304}的}^{\large\texttt{\color{#FFEC01}萌\color{#FFF900}新}\small\texttt{\color{#FCFB03}Q\color{#F8FB07}A\color{#F1FB0B}Q}}}^{\large\texttt{\color{#FFB511}是}{\small\texttt{\color{#FFDC07}刚\color{#FFEF00}学}\large\texttt{\color{#FFF600}O\color{#FFFA00}I}}}\huge\texttt{\color{#E6F911}但\color{#92E82F}是}^{\large\texttt{\color{#39D54B}即}{\small\texttt{\color{#03C767}使}}}_{\normalsize\text{\color{#07C964}是\color{#00C789}这\color{#00C7A5}样}}\texttt{\color{#00CBC6}我\color{#00D0EB}也}^{\small\texttt{\color{#00D0F2}要}\normalsize\texttt{\color{#00D0F6}用}\texttt{\color{#03BEF4}蒟}_{\texttt{\color{#04AAEF}蒻}\large\texttt{\color{#078DE4}的}}}_{\scriptsize\texttt{\color{#01CDF6}声\color{#03C2F5}音\color{#04B4F2}大\color{#04A7EE}声\color{#0791E6}喊\color{#0A7BDD}出}}\mathbb{\color{#125BCD}IOI\space\color{#3D2AB5}AK\space\color{#A011AD}ME!}

没用的链接
有用的链接
有趣的链接

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

共 8 篇
  1. 题解

    题解:P17114 [Algo Beat 009 & MROI-R1] Payment

    本文介绍了一道数组分割优化问题的 O(n) 动态规划解法。题目规则为:将数组任意分段,若段长大于 1 则可免除该段中最大元素的费用。解题关键在于证明分为长度为 2 的段最优,并定义 f_i 为前 i 个元素的最小花费。状态转移时比较“当前元素单独成段”与“与前一项合并成段”两种情况的代价。文末提供了核心 DP 状态转移方程及 C++ 代码实现。

    3 赞
  2. 题解

    题解:B4533 [信息与未来 2026] 旅行计划

    本文介绍了一道基于动态规划的算法题解,旨在求解在最多乘坐 k 次飞机的限制下,到达目的地的最短时间(连续飞行多段算作一次)。 主要内容如下: 问题模型:通过选择高铁或飞机组合路径,最小化总耗时。 状态设计:定义 f_i 为到达第 i 座城市的最小花费时间。 转移优化:利用前缀和技巧优化状态转移方程。对于坐飞机的情况,通过维护 min(s_g[t] - s_f[t]) 的值(代码中用 best 变量),将原本复杂的区间查询转化为 O(1) 的转移。 代码实现:采用双层循环结构,外层枚举允许的飞机次数,内层遍历城市并迭代更新状态数组,最终输出全局最优解。

    2 赞
  3. 生活·游记

    2026/4/18 科大国创被创

    9:00 早上没上课,很高兴! 听了个网课,然后随便码了几个板子。 11:00 吃饭。 12:00 高铁出发。 13:00 在赛场门口等了一会,遇到了一位大佬,首先推翻了我们对 unordered_map 的错误观点,然后推测 T4 是 AC 自动机或 KMP。我听后很慌。 13…

  4. 个人记录

    宝物筛选题解(单调队列做法)

    研究了三晚上,终于懂了! 二进制拆分大家都会,这里介绍一下更恶心高效的算法:单调队列。 首先要知道,为什么要用单调队列,在哪用? 要知道单调队列是维护一个移动区间内的最优值,和这题有啥关系? 别急,来看个样例: 容量 s=8 的背包,一个物品,体积 w=3,价值 v=2,数量 m…

  5. 题解

    题解:P12270 [蓝桥杯 2024 国 Python B] 马与象

    这道题要求计算马和象在n×n棋盘上相遇的最少步数,即马吃象或象吃马。解法采用两次广度优先搜索(BFS)结合记忆化搜索思想: 坐标转换 将题目中的平面直角坐标系(先列后行)转换为数组索引(先行后列),并调整坐标范围。例如,原坐标(x,y)转换为(n-x+1, y+1)。 象的BFS预处理 以象的坐标为起点,通过BFS计算象能到达的所有位置的步数,存入二维数组a中。象的移动方式为四个对角线方向(±2, ±2)。 马的BFS遍历 以马的坐标为起点,通过BFS寻找到达象可达位置的最短步数。马的移动方式为八个日字形方向(±1, ±2)、(±2, ±1)。 结果计算 当马到达象可达的位置时,将马的步数与象的步数相加,取最小值作为答案。若队列处理完毕仍未找到路径,则输出-1。 核心思路:通过两次BFS分别计算象的可达步数和马的最短路径,最终在两者交集中寻找最小总步数。

    2 赞
  6. 算法·理论

    模板汇总

    排序 (只收录部分常用排序。) 冒泡排序 冒泡排序的交换次数等于逆序列的个数。 快速排序 归并排序 高精度 高精加 高精乘 快速幂+高精 __int128 读写(补充) 优化 cin cout 加速 快读 快写

  7. 题解

    题解:P14635 [NOIP2025] 糖果店

    省流:新思路。 管理员辛苦了! 题意解释 题目传送门。 思路分析 这里介绍一种玄学做法。 由题意知,我们买的第 2n+1 个物品 i 的价钱是 x_i,买的第 2n 个物品 i 的价钱是 y_i,那么我们可以看成这个物品 i 的价钱就是 x_i +y_i/2 。 现在我们把要买的…

  8. 题解

    P4305 [JLOI2011] 不重复数字

    前言 题解区中没用快读的最短代码,没有之一!不开 O2 也能过! 虽说这题正解是 Hash,但简简单单的 map 也能过。\ 与其他题解不同的是,我的代码没用 unordered_map,没学过 Hash 的同学也能看懂。 题意解释 给 n 个数,在不改变其顺序的情况下去重并输出…