跳到正文

fede

782458

背影 | 杜绝颓废 发愤图强 | 无信号程序员

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

这个世界变得越来越有趣了\text{这个世界变得越来越有趣了}

——一一 inf⁡\inf

最大的恐惧

还有三年就退役了……

大事祭

2022.8.28

黄题首 AA。
红题首 AA。

2022.9.18

绿题首 AA。
紫题首 AA。
青题首 AA。

2022.10.8

橙题首 AA。

2023.10.21

参加第一场线上模拟赛。

2023.11.4

蓝题首 AA。

2024.8.30

通过 500500 题。

2025.7.21

通过 666666 题。

2026.7.22

黑题首 AA。

2026.8.1

第一次通杀线上模拟赛(洛谷基础赛)。

2026.8.23

通过 888888 题。

2026.10.25

通过 999999 题。

2026.10.26

通过 10001000 题。

2026.10.31

通过 2102^{10} 题。

2026.11.23

蓝题通过 100100 道。


一些话

人间安好,岁月长多。

以凡人之躯,比肩神明。

未来的有期,因为有你相遇。

我有故人携剑去,斩尽春风未曾归。

将青春献给韶华,只留下嵌在云里的伤疤。

我特别喜欢“您”这个字,因为它的意思是,心上有你。

我最喜欢三月的风,四月的雨,不落的太阳和最好的你。


We are the World - Michael JacksonWe\text{ }are\text{ }the\text{ }World\text{ - } Michael\text{ }Jackson
There comes a time when we heed a certain call\text{There comes a time when we heed a certain call}When the world must come together as one\text{When the world must come together as one}There are people dying\text{There are people dying}Oh, when it’s time to lend a hand to life\text{Oh, when it's time to lend a hand to life}The greatest gift of all\text{The greatest gift of all}We can’t go on pretending day by day\text{We can't go on pretending day by day}That someone somewhere will soon make a change\text{That someone somewhere will soon make a change}We are all a part of God’s great big family\text{We are all a part of God's great big family}And the truth, you know\text{And the truth, you know}Love is all we need\text{Love is all we need}We are the world\text{We are the world}We are the children\text{We are the children}We are the ones who make a brighter day\text{We are the ones who make a brighter day}So, let’s start giving\text{So, let's start giving}There’s a choice we’re making\text{There's a choice we're making}We’re saving our own lives\text{We're saving our own lives}It’s true we’ll make a better day\text{It's true we'll make a better day}Just you and me\text{Just you and me}Well, send them your heart so they’ll know that someone cares\text{Well, send them your heart so they'll know that someone cares}And their lives will be stronger and free\text{And their lives will be stronger and free}As God has shown us by turning stone to bread\text{As God has shown us by turning stone to bread}And so we all must lend a helping hand\text{And so we all must lend a helping hand}We are the world\text{We are the world}We are the children\text{We are the children}We are the ones who make a brighter day\text{We are the ones who make a brighter day}So, let’s start giving\text{So, let's start giving}There’s a choice we’re making\text{There's a choice we're making}We’re saving our own lives\text{We're saving our own lives}It’s true we’ll make a better day\text{It's true we'll make a better day}Just you and me\text{Just you and me}When you’re down and out\text{When you're down and out}There seems no hope at all\text{There seems no hope at all}But if you just believe\text{But if you just believe}There’s no way we can fall\text{There's no way we can fall}Well, well, well\text{Well, well, well}Let us realize, oh, that a change can only come\text{Let us realize, oh, that a change can only come}When we stand together as one\text{When we stand together as one}We are the world\text{We are the world}We are the children\text{We are the children}We are the ones who make a brighter day\text{We are the ones who make a brighter day}So, let’s start giving\text{So, let's start giving}There’s a choice we’re making\text{There's a choice we're making}We’re saving our own lives\text{We're saving our own lives}It’s true we’ll make a better day\text{It's true we'll make a better day}Just you and me\text{Just you and me}We are the world\text{We are the world}We are the children \text{We are the children}We are the ones who make a brighter day\text{We are the ones who make a brighter day}So, let’s start giving\text{So, let's start giving}There’s a choice we’re making \text{There's a choice we're making}We’re saving our own lives\text{We're saving our own lives}It’s true we’ll make a better day\text{It's true we'll make a better day}Just you and me\text{Just you and me}We are the world\text{We are the world}We are the children\text{We are the children}We are the ones who make a brighter day\text{We are the ones who make a brighter day}So, let’s start giving\text{So, let's start giving}There’s a choice we’re making\text{There's a choice we're making}We’re saving our own lives\text{We're saving our own lives}It’s true we’ll make a better day\text{It's true we'll make a better day}Just you and me\text{Just you and me}We are the world\text{We are the world}We are the children\text{We are the children}We are the ones who make a brighter day\text{We are the ones who make a brighter day}So, let’s start giving\text{So, let's start giving}There’s a choice we’re making\text{There's a choice we're making}We’re saving our own lives\text{We're saving our own lives}It’s true we’ll make a better day\text{It's true we'll make a better day}Just you and me\text{Just you and me}We are the world (We are the world)\text{We are the world (We are the world)}We are the children (We are the children)\text{We are the children (We are the children)}We are the ones who make a brighter day\text{We are the ones who make a brighter day}So, let’s start giving (So, let’s start giving)\text{So, let's start giving (So, let's start giving)}There’s a choice we’re making\text{There's a choice we're making}We’re saving our own lives\text{We're saving our own lives}It’s true we’ll make a better day\text{It's true we'll make a better day}Just you and me\text{Just you and me}We are the world (We are the world)\text{We are the world (We are the world)}We are the children (We are the children)\text{We are the children (We are the children)}We are the ones who make a brighter day\text{We are the ones who make a brighter day}So, let’s start giving (So, let’s start giving)\text{So, let's start giving (So, let's start giving)}There’s a choice we’re making\text{There's a choice we're making}We’re saving our own lives\text{We're saving our own lives}It’s true we’ll make a better day\text{It's true we'll make a better day}Just you and me\text{Just you and me}We are the world\text{We are the world}We are the children\text{We are the children}We are the ones who make a brighter day\text{We are the ones who make a brighter day}So, let’s start giving\text{So, let's start giving}There’s a choice we’re making\text{There's a choice we're making}We’re saving our own lives\text{We're saving our own lives}It’s true we’ll make a better day\text{It's true we'll make a better day}Just you and me\text{Just you and me}We are the world (we are the world)\text{We are the world (we are the world)}We are the children\text{We are the children}We are the ones who make a brighter day\text{We are the ones who make a brighter day}So, let’s start giving\text{So, let's start giving}There’s a choice we’re making\text{There's a choice we're making}We’re saving our own lives\text{We're saving our own lives}It’s true we’ll make a better day\text{It's true we'll make a better day}Just you and me\text{Just you and me}We are the world\text{We are the world}We are the children\text{We are the children}We are the ones who make a brighter day\text{We are the ones who make a brighter day}So, let’s start giving\text{So, let's start giving}There’s a choice we’re making\text{There's a choice we're making}We’re saving our own lives\text{We're saving our own lives}It’s true we’ll make a better day\text{It's true we'll make a better day}Just you and me\text{Just you and me}
共 8 篇
  1. 题解

    题解:P17877 糖葫芦 / tanghulu

    正文 分析 做一串糖葫芦只让那锅糖浆减少 1 单位,和 b 无关,b 只是一张入场券,决定这锅此刻能不能被拿来用。由此得到第一个关键量: 一锅容量为 v 的糖浆,在需要 b(v≥ b)时,最多能连续做 v-b+1 串(从 v 一路做到 b),做完剩 b-1。 再看合并。合并是把两…

  2. 题解

    题解:AT_arc220_b [ARC220B] Incomplete Shuffle

    正文 分析 操作的本质:单循环置换 第 i 次操作时,位置 1, …, i-1 已经固定,你只能在位置 i, …, N 中选一个与位置 i 交换,然后位置 i 被固定。这是一个典型的“选择排序式”过程。 关键结论: N-1 次这样的操作,能得到的恰好是所有包含 N 个位置的单循环…

  3. 生活·游记

    CSP-J/S 2025与2026 游记:我不想再在退役边缘徘徊

    作者回顾了自己在OI竞赛中的两次经历:2025年虽在J组取得380分(T3扣20分)和S组100分(T3扣130分),但文化课排名失利导致情绪低落;2026年再次参加S组竞赛,因T3循环顺序错误和T4暴力代码失误,最终扣200分。尽管两次未达预期成绩,作者仍保持积极心态,认为人生没有截止时间,未来仍有希望。文中通过诗意的描写和反思,表达了对OI生涯的坚持与对未来的期许。

  4. 题解

    题解:P17128 [ICPC 2025 Shanghai R] AGI

    该博弈问题要求判断先手玩家Menji是否能必胜。核心思路是: 重复数字处理:出现偶数次的数字会被双方均分,其对异或和S的贡献为0(次数偶数时)或该数字本身(次数奇数时)。 落单数字影响:奇数次出现的数字会剩一个落单项,总共有t个落单数字(t必为偶数)。 若t>2,Bot必胜(无法控制异或结果)。 若t=0,Menji胜当且仅当所有偶数次数字的异或和为0。 若t=2,Menji需选择其中一个落单数字使S异或后为0。 代码通过统计各数字出现次数,计算偶数次贡献的异或和,并检查落单数字数量及组合是否满足Menji胜利条件。

    4 赞
  5. 题解

    题解:P16369 [OOI 2026] Decoration

    该问题要求通过最少操作次数,使数轴上的线段子集满足任意两条线段相交。核心思路是将问题转化为覆盖同一点的点覆盖问题。通过分析线段与点的相对位置,将线段分为三类:包含点p(X)、在p左侧(R)、在p右侧(L)。当X不足时,需用操作将二类与三类线段配对,每次操作可增加2条覆盖线段。为处理大值域,采用离散化策略,仅考虑线段端点,利用排序和最小堆维护动态的L和R值。构建数组cnt,其中cnt[i]表示覆盖i条线段的最优X值,并通过后缀最大值优化。最终答案为⌈(k_i - cnt[k_i])/2⌉,时间复杂度为O(n log n)。调试样例输入6条线段和6次查询,输出为0 0 0 0 0 1,验证了方法的正确性。

    3 赞
  6. 题解

    题解:AT_agc063_a [AGC060A] No Majority

    该问题描述Alice和Bob通过删除字符串s中的字符进行博弈,最终根据剩余字符串的第一个字符判断胜负。核心思路是将mex函数转化为字符删除问题,双方采取最优策略:Alice优先删除最近的B,Bob优先删除最近的A。两种解法均以O(n)时间复杂度实现: 方法一:每轮i中,Alice可操作⌈i/2⌉次(先手优势),需删除前i+1个字符中的所有B。若删除次数足够则Alice赢,否则Bob赢。 方法二:统计前i+1个字符中A和B的数量。当A的数量大于等于B时,Alice赢;若A数量小于B,则Bob赢。特别地,当两者数量相等时,因Alice先手可多删一次,仍判定Alice获胜。 最终胜负取决于每轮操作后剩余字符串首字符是否为A,双方均采取最优策略进行字符删除。

    3 赞
  7. 生活·游记

    2025衢二 - 275307894a 部分

    前言 感谢275307894a老师, 是一位全国排名达到前六的巨佬,人称飞带队长——FXT。 DAY 1 上午 注意事项 评测在 Linux 下进行,编译命令为 g++ -o a a.cpp -O2 -std=c++14 评测机为 12th Gen Intel(R) Core(T…

  8. 生活·游记

    2025衢二 - Clonoth 部分

    前言 Clonoth是一位很可爱的学长…… DAY 1 上午 fib(1s,512MB) 题目描述 相信大家都知道斐波那契数是什么意思。 给定一个正整数 n,你需要找到一组斐波那契数 a_1,a_2,…,a_k 满足 a_1+a_2+…+a_k=n 并最小化 k。你只需要输出最小…