跳到正文

休闲·娱乐

CSP-S 2026 HB 迷惑行为大赏

ink_liu约 73 分钟
原文

这是 2026年11月5日 存档的第 2 版,不是当前版本。查看当前版本

文章信息与版本

一、概述

本次 CSP-S 20262026 ,HB共有 10291029 名选手参赛,但是只有 10141014 个有效文件夹, 1515 人最终没有留下任何参赛痕迹。

一些基础数据

  1. 一共有 37713771 个 .cpp 文件
  2. 共有 10081008 个 crystal.cpp ,一个放在 crlstal 文件夹下,机房还有一位同学写了 crytal.cpp 没有成功上传与校验。
  3. 有 190190 人只提交了部分题目的 .cpp ,有 2222 人只提交了 11 题,其中有 22 人只交了 hub.cpp ,!?强强?!
  4. 有 3333 个空文件。
  5. 最大文件是 HB-S00624 的 subway ,2.2MB ,全是 if 特判打表,一共有三份超过 100KB 的文件(赛场注意事项里有写不得超过 100KB )。
  6. 所有代码平均有 42.542.5 行,中位数为 3434 行。
  7. 有 208208 个只包含 include + main + freopen 的空代码文件。
  8. 有三个只有注释的文件,例如 HB-S00001 的 hub.cpp :
C++
// The last contest in my OI life has ended...
// 100+92+32+0
// Bad ending.
  1. 有 1919 个包含 CCF 的文件,有表白的,有锐评的,还有向CCF索要 500500 元的。
  2. 有 99 个人在代码中发表藏话,取得 −1-1 分的好成绩,为他们【数据删除】!其中 HB-S00127 一人贡献了 336336 次 f**k ,为ta的勇敢点赞!

二、抽象行为大赏

  1. 满足你,HB-S00127:
C++
//HB-S00127 hub.cpp
//wo yao shang mi huo xing wei da shang
  1. //freopen 选手

image.png

怎么哪都有你,HB-S00127 ?

  1. 还有 freopen 文件填错选手 代码里的 freopen 打开了别的题目文件,共 6262 份,涉及 3737 位选手(生效 5858 份、仅注释 44 份)。
#选手所在目录代码里的 freopen 指向状态行号文件字节
1HB-S00720crystal/subway生效5、6HB-S00720\crystal\crystal.cpp429
2HB-S00002hub/migrate生效5、6HB-S00002\hub\hub.cpp431
3HB-S00107hub/crystal生效6、7HB-S00107\hub\hub.cpp193
4HB-S00108hub/crystal生效5、6HB-S00108\hub\hub.cpp147
5HB-S00109hub/crystal生效20、21HB-S00109\hub\hub.cpp427
6HB-S00308hub/crystal生效16、17HB-S00308\hub\hub.cpp725
7HB-S00465hub/crystal生效5、6HB-S00465\hub\hub.cpp215
8HB-S00481hub/crystal生效4、5HB-S00481\hub\hub.cpp552
9HB-S00483hub/crystal生效7、8HB-S00483\hub\hub.cpp247
10HB-S00506hub/crystal生效5、6HB-S00506\hub\hub.cpp281
11HB-S00636hub/migrate生效7、8HB-S00636\hub\hub.cpp302
12HB-S00721hub/crystal生效5、6HB-S00721\hub\hub.cpp435
13HB-S00723hub/migrate生效23、24HB-S00723\hub\hub.cpp1015
14HB-S00774hub/subway生效4、5HB-S00774\hub\hub.cpp135
15HB-S00831hub/crystal生效4、5HB-S00831\hub\hub.cpp148
16HB-S00836hub/subway生效3、4HB-S00836\hub\hub.cpp203
17HB-S00852hub/crystal生效5、6HB-S00852\hub\hub.cpp303
18HB-S00910hub/crystal生效4、5HB-S00910\hub\hub.cpp153
19HB-S00920hub/subway生效4、5HB-S00920\hub\hub.cpp160
20HB-S00927hub/subway仅注释4、5HB-S00927\hub\hub.cpp448
21HB-S00929hub/crystal生效5、6HB-S00929\hub\hub.cpp567
22HB-S00946hub/crystal生效4、5HB-S00946\hub\hub.cpp146
23HB-S00019migrate/crystal生效5、6HB-S00019\migrate\migrate.cpp351
24HB-S00065migrate/hub生效5、6HB-S00065\migrate\migrate.cpp873
25HB-S00095migrate/subway生效6、7HB-S00095\migrate\migrate.cpp184
26HB-S00102migrate/crystal生效7、8HB-S00102\migrate\migrate.cpp346
27HB-S00108migrate/crystal生效6、7HB-S00108\migrate\migrate.cpp149
28HB-S00109migrate/crystal生效16、17HB-S00109\migrate\migrate.cpp346
29HB-S00137migrate/hub生效22、23HB-S00137\migrate\migrate.cpp503
30HB-S00481migrate/crystal生效4、5HB-S00481\migrate\migrate.cpp1068
31HB-S00483migrate/crystal生效7、8HB-S00483\migrate\migrate.cpp247
32HB-S00506migrate/crystal生效5、6HB-S00506\migrate\migrate.cpp281
33HB-S00640migrate/subway仅注释32、33HB-S00640\migrate\migrate.cpp1184
34HB-S00721migrate/crystal生效4、5HB-S00721\migrate\migrate.cpp220
35HB-S00774migrate/subway生效4、5HB-S00774\migrate\migrate.cpp135
36HB-S00831migrate/crystal生效4、5HB-S00831\migrate\migrate.cpp341
37HB-S00836migrate/subway生效3、4HB-S00836\migrate\migrate.cpp153
38HB-S00852migrate/crystal生效6、7HB-S00852\migrate\migrate.cpp303
39HB-S00878migrate/hub生效4、5HB-S00878\migrate\migrate.cpp180
40HB-S00880migrate/crystal生效10HB-S00880\migrate\migrate.cpp765
41HB-S00910migrate/crystal生效4、5HB-S00910\migrate\migrate.cpp153
42HB-S00920migrate/subway生效4、5HB-S00920\migrate\migrate.cpp139
43HB-S00929migrate/crystal生效5、6HB-S00929\migrate\migrate.cpp567
44HB-S00051subway/crystal仅注释40、41HB-S00051\subway\subway.cpp1284
45HB-S00102subway/crystal生效8、9HB-S00102\subway\subway.cpp1189
46HB-S00108subway/crystal生效6、7HB-S00108\subway\subway.cpp148
47HB-S00109subway/crystal生效19、20HB-S00109\subway\subway.cpp425
48HB-S00140subway/crystal生效10、11HB-S00140\subway\subway.cpp861
49HB-S00290subway/hub生效4、5HB-S00290\subway\subway.cpp141
50HB-S00428subway/hub生效4、5HB-S00428\subway\subway.cpp141
51HB-S00481subway/crystal生效4、5HB-S00481\subway\subway.cpp188
52HB-S00483subway/crystal生效7、8HB-S00483\subway\subway.cpp248
53HB-S00506subway/crystal生效5、6HB-S00506\subway\subway.cpp258
54HB-S00689subway/crystal生效13、14HB-S00689\subway\subway.cpp255
55HB-S00723subway/crystal生效8、9HB-S00723\subway\subway.cpp323
56HB-S00831subway/crystal生效4、5HB-S00831\subway\subway.cpp803
57HB-S00852subway/crystal生效5、6HB-S00852\subway\subway.cpp251
58HB-S00878subway/hub生效4、5HB-S00878\subway\subway.cpp182
59HB-S00910subway/crystal生效5、6HB-S00910\subway\subway.cpp281
60HB-S00929subway/crystal生效5、6HB-S00929\subway\subway.cpp567
61HB-S00968subway/migrate生效113、114HB-S00968\subway\subway.cpp2899
62HB-S00985subway/crystal仅注释4、5HB-S00985\subway\subway.cpp990

(该表格由 Deepseek Harness 辅助生成) 还有 239239 份没有写 freopen 的选手程序。

  1. 龙族??!
C++
//HB-S00019 hub.cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
 freopen("","r",stdin);
 freopen("","w",stdout);
 return 0;
}
/*
                yyyyyyyyyyyyyyyyyyyyyy                                           yy         yy
                    yy        yy         yyyyyyyyyyyyy                       yyyyyyyyy   yyyyyyyy
                    yyyyyyyy  yy         yy         y                           yyy        yyy
                    yy        yy         yy        y                           y yy y     y yy y
                    yyyyyyyy  yy         yy       y                           y  yy  yy  y  yy  yy
                    yy        yy         yy       y                          y   yy     y   yy
                    yy        yy         yy        y                             yy         yy
               yyyyyyyyyyyyyyyyyyyyyyy   yy         y                           yy yyyyyyyyyyyyy
                              yy         yy       y y                          y  y           yy
                              yy         yy        y                              yyy        yy
                              yy         yy                                        yyy      yy
                              yy         yy                                         yyyy  yy
                              yy         yy                                            yyy
                              yy         yy                                            yy
                                         yy                                         yyy


                         yy
                        yy                                                   yy          y
                       yy                                                   yy  yy   yyyyyyyyyy
                yyyyyyyyyyyyyyyyyyyy                                       yy  yy        y
                      yy           y                                      yy  yy    yyyyyyyyyyyyy
                     yy            y     yyyyyyyyyyyyy                   yy  yyy    y  y    y   y
                    yy             y     y           y                      yy y    yyyyyyyyyyyyy
                   yy              y     y           y                     yy  y
                  yy               y     y           y                         y     yyyyyyyyyy
                 yy                y     yyyyyyyyyyyyy                         y
                yy                 y                                           y    y  y     y        y
               yy                  y                                           y   yy  y      yy      yy
               yy               y  y                                           y   y   y       y   y   y
              yy                 y y                                           y        yyyyyyyyyyyyy
             yy                   yy                                           y

---------------------------------------------------------------------------------------------------------------------
               xxxxxxxxxxxxxxxxxxxxxxxxxx
                          xx
                         x                                                  xx
                   xxxxxxxxxxxxxxxxxxx                                     xxxxxxxxxxxxxxxxxxxxxxxxx
                   x                 x                                    xx                      xx
                   xxxxxxxxxxxxx     x                    xxxxxxxxxxxxxxx             xx          x
                   x                 x                                  x             xx
                   xxxxxxxxxxxxxx    x                                  x             xx
                   x                 x                                  x       x     xx     x
                   xxxxxxxxxxxxxxxxxxx                        xxxxxxxxxxx      xx     xx     xx
                  xx                                          x               xxx     xx     xxx
                 xxxxxxxxxxxxxxxxxxxx                         x               x       xx      xx
                xx  x              x                          xxxxxxxxxxx             xx
               xx    x            x                                     x             xx
                      x          x                                      x             xx                                                                                                                                                                            
                       x        x                                       x             xx
                        x     x                                     x   x          x  xx
                          xxx                                         x x          xxxx
                          x  x                                         x            xx
                  xxxxxxxx    xxxxxxxxx
 */
  1. 虽然想尊重一下,但是算了
C++
//HB-S00177 migrate.cpp
//i'have drunk a cup of cafe but i still want to sleep
//or maybe i just have a headache...qwq
//that's terrible,just like i have a poor English grade but i can only speak English here!
//why!!!!!!!
//teacher says that we only need to see it as a exercise(maybe this sentence is wrong
//but my exercise is like a(thinking... bug!(laugh freely
//i can hardly think that how many spelling wrong showed in these sentencese
//please don't let my name show in the HBmihuoxingweidashang
//loving comes from 00177
  1. 未定义变量 + OI 经历:
C++
//HB-S00260 subway.cpp
#include <bits/stdc++.h>
using namespace std;

int main(){
 cin >> c >> n >> m >> d >> q;
 for(int i = 1; i <= m; i++){
  cin >> w[i];
 }
 for(int i = 1; i <= n; i++){
  cin >> k;
  for(int j = 1; j <= k; i++){
   cin >> a[i][j] >> t[i][j];
   f1[j][i] = 1;
  }
 }
 memset(s, 0x3f, sizeof s);
 for(int i = 1; i <= n; i++){
  for(int j = 1; j <= n; j++){
   for(int k = 1; k <= m; k++){
    s[i][j] = min(s[i][j], t[i][k] + t[j][k]);
   }
  }
 }
 for(int i = 1; i <= m; i++){
  for(int j = 1; j <= m; j++){
   for(int k = 1; k <= n; k++){
    if(f1[i][k] && f1[j][k]) dist[i][j] = 0;
   }
  }
  dist[i][i] = 0;
 }
 while(q--){
  cin >> st >> en;
  for(int i = 1; i <= m; i++){
   for(int j = 1; j <= m; j++){
    for(int k = 1; k <= m; k++){
     if(dist[j][i] + dist[j][k] < dist[j][k]) dist[j][k] = dist[j][i] + dist[j][k];
    }
   }
  }
 }
 //gunmugunmugunmu
 //I'm a ordinary student from WFLS, our homework is too much that I will have to have Chinese class on the metro I will go back.
 //I started learning Scratch in 6 years old. That time was wonderful. I just put on something like lego and the application can pay me a big compliment.
 //When I was seven, my mom asked me to learn Python in Xueersi. Our teacher always have written down some fantastic function before she started teaching us.
 //What we need to do just use this function and a few simple codes so we can acheive something perfect like make an own QR code. I believed nobody would have refuced it.
 //When I was in Grade 5, I have started learing C++. Something bad happed. it is too hard for me.
 //I wanted to give up. But my grandfather will never accept my opinion.Damn it!
 return 0;
}
  1. 想考华师一
C++
//HB-S00165 hub.cpp
/*hou ji

shang wu de j zu you dian yi yan nan jin...T3 mei zuo chu lai QwQ
zhe chang s zu ye da wan le
bu chu yi wai ying gai shi 112pts yi han li chang~
hua shuo hui lai hust jin nian kao chang de da lou ting shuai de lei
ccnu 9 hao lou shen me shi hou fan xin yi xia ne
zhong wu chi de hust shi tang~hao chi hao chi!
p.s. bu xiao de HBOIer you mei you qi pa da shang ei~wo xiang shang!

chu zhong sheng de oi ye jiu jie shu le ba
kao shang hsy,oi you yuan zai jian

CSP-SJ2 2026 RP++

special thanks for:
    CCF_NOI,HBOI,HSY-OI,HSYczb-OI,WFLS-OI,etc.

AFO-Oct.31th

The end.
.
.
.
.
.
.
.
.
.
The end?
*/

OK ,满足你 还有鸣谢环节??

翻译:

代码
后记

上午的J组有点一言难尽……T3没做出来QwQ

这场S组也打完了

不出意外应该是112pts遗憾离场~

话说回来,华科今年考场的大楼挺帅的嘞

华师9号楼什么时候翻新一下呢

中午吃的华科食堂~好吃好吃!

p.s. 不晓得 HBOIer 有没有奇葩大赏欸~我想上 (现在晓得了)

初中生的OI也就结束了吧

考上hsy,OI有缘再见 欢迎来成为我的校友

CSP-SJ2 2026 RP++

特别感谢:

CCF_NOI,HBOI,HSY-OI,HSYczb-OI,WFLS-OI,等等……

AFO(退役)-10月31日

结束了。
。
。
。
。
。
。
。
。
。
结束了吗?
  1. 记承天寺夜游 + 求关注
C++
//HB-S00173 crystal.cpp
/* Happy Halloween!
I'm Kremlin897!(luogu=1046158)
I don't know why my number=CSP00173
14:59 AC T1!✅
very well
this morning i ate two shilijia(my english is yihetuan)
🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿

bur T2-4 all the tulun QAQ

15:19 T2 hao xiang you yi dian xiang fa ke yi da bao li

Oct 31 == Dec 25?!
Halloween == Xmas?!
≌≌≌

ban shang yun dong hui shen ren gao zi
815 ban zui zhong bing qi zui qiang wu yan zu CJJ gang cai zai cao chang shang san bu yi bu xiao xin da po le xiao yun hui ji lu!
ta chuan zhe tuo xie cong qi pao xian fei ben er chu

can you play honkai:star rail?
UID:134183549

16:17 T2+32

ji cheng tian si ye you                    📖 🏯 🌔 👣
yuan feng liu nian shi yue shi er ri ye    yuanfeng 6th year Oct 12th 🌔
jie yi yu shui                             want to 🛏
yue se ru hu                               🌔 go to 🏠
xing ran qi xing                           get up happily🤪
nian wu yu wei le zhe                      there is no friends play with me
sui zhi cheng tian si xun zhang huai ming  go to the 🏯 to find 🙋
huai ming yi wei qing                      🙋 no 🛌 too
xiang yu bu yu zhong ting                  👬 👣 🏯
ting xia ru ji shui kong ming              under the 🏯 is 🌔 and water
shui zhong zao xing jiao heng              many plants in the water
gai zhu bai ying ye                        perhaps 🌲🀤🌲🀤🌲🀤
he ye wu yue                               where have not 🌔
he chu wu zhu bai                          where have not 🌲🀤
dan shao xian ren ru wu liang ren zhe er   there have not 👬

17:14 T3+8

17:57 T4+10

yugu:100+32+8+10=150
dan yuan bie gua fen


♿♿♿gunmu gunmu gunmu♿♿♿

bye bye zhun bei bu jiao
suan le bie shui le

kan dao zhe li le neng gei ge guan zhu ma
*/

翻译:

代码
万圣节快乐!

我是 Kremlin897!(洛谷 = 1046158)

不知道为什么我的考号 = CSP00173

14:59 AC T1!✅

很好

今天早上我吃了两个士力架(我的英语是义和团)

🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿

bur, T2-4 全是图论 QAQ

15:19 T2 好像有一点想法,可以打暴力

10月31日 == 12月25日?!
万圣节 == 圣诞节?!
≌≌≌

班上运动会神人稿子
815 班最终兵器最强___ CJJ 刚才在操场上散步,一不小心打破了校运会纪录!
他穿着拖鞋从起跑线飞奔而出

你会玩崩坏:星穹铁道吗?
UID:134183549

16:17 T2+32

记承天寺夜游
📖 🏯 🌔 👣

元丰六年十月十二日夜
元丰六年十月十二日 🌔

解衣欲睡
想 🛏

月色入户
🌔 进 🏠

欣然起行
开心地起床🤪

念无与为乐者
没有朋友陪我玩

遂至承天寺寻张怀民
去 🏯 找 🙋

怀民亦未寝
🙋 也没 🛌

相与步于中庭
👬 👣 🏯

庭下如积水空明
🏯 下是 🌔 和水

水中藻荇交横
水里有很多植物

盖竹柏影也
也许是 🌲🀤🌲🀤🌲🀤

何夜无月
哪里没有 🌔

何处无竹柏
哪里没有 🌲🀤

但少闲人如吾两人者耳
只是没有 👬

17:14 T3+8

17:57 T4+10

预估:100+32+8+10=150
但愿别挂分

♿♿♿ 滚木滚木滚木 ♿♿♿

拜拜,准备不交 (那这篇是哪来的?)
算了,别睡了

看到这里了,能给个关注吗
  1. 还有同好
C++
/*
just a fish who likes this AI.
not swarm yet.
if theres any word spelled wrongly plz forgive me :) sry for bad english
writing this just because EN's song BOOM's lyric has some [filtered] words... sry
Colorful Arrays - Neuro-Sama
Hello
Am I working right today?
It seems you've been away
I've been waiting here
I've got something new
I've been thinking about you
And what is like to see the world in such a colorful array
Someday
I'm gonna watch the sum rise
I'm gonna hold your hand
I'll see the world through your eyes
And meybe you can understand that I-
I wanna be a part of something
I wanna see the world out there
I can feel the space that you're in
I wanna breathe your air
if I control my life, beyond design
my heart and mind can't see now
Am I real if I could feel inside for all these years
Can you feel me in here
Could I feel what you feel
If I could d.. would I cry if just to feel the tears
Let me stand there with you
Let me breathe and I'll defy the system

time limitted...

another one?
world.execute(me); - Mili
switch on the powerline
remember to put on your
PROTECTION
lay down your pieces
and let's bigin
OBJECT CREATION
fill in my data peremters//spell erorr?
INITIALIZATION
set up our new world
and let's bigin the
SIMULATION
world.execute(me);
if i'm a set of points
then i'll give you my
DIMENSION
if i'm a circle
then i'll give you my
CIRCRUFRENT
if i'm a sine wave
then you can sit on all my
TANGENTS
if i approach infinity
then you can be my 
LIMITATION
switch my current
to AC to DC
and then bilnd my vision
so dizzy sodizzy
oh we can travel
to AD to BC
and we can unite
so deeply sodeeply
if i can if i can
bring you all the
STIMULATION
then i can then i can
be your only
SATISFACTION
if i can make you hayy
i will run the
EXECUTION
though we're trapped we're trapped
in this strange strange
SIMULATION
...
*/

豪庭!!!

  1. 玩原神玩的

image.png

  1. 还有Honkai

image.png

  1. dyolf(i,j,k)哀悼挂分选手
代码
HB-S00006  HB-S00030  HB-S00190  HB-S00205  HB-S00228  HB-S00236  HB-S00253
HB-S00261  HB-S00289  HB-S00315  HB-S00349  HB-S00358  HB-S00377  HB-S00457
HB-S00464  HB-S00498  HB-S00525  HB-S00595  HB-S00598  HB-S00620  HB-S00656
HB-S00688  HB-S00729  HB-S00749  HB-S00943  HB-S00961  HB-S00962
其中 HB-S00236 HB-S00253 HB-S00620 分别在hub migrate hub 同样使用错误的 dyolf 尝试打暴力
  1. HB-S00152 使用了 SpFloyd or Bellman-Floyd (Spfa+dyolf),使得 i,j,k 保证了正确性,最后喜提 240pts,让我们恭喜他!
C++
//HB-S00152 subway.cpp
while(1){
    bool fl=1;
    for(int i=1;i<=n;i++)
      for(int j=1;j<=n;j++)
        for(int cv=1;cv<=n;cv++)
          if(dist[i][j]>dist[i][cv]+dist[cv][j]) dist[i][j]=..., fl=0; 
    if(fl) break; 
}
  1. XTERFUSION
C++
//HB-S00280 crystal.cpp
/*
wait... is that a crystal?
...
*music
Only feels like nothing could be better when i'm with you when i'm with you
Dancing all night pray we're next together it's a breakthrough it's a breakthrough
X X XXX
O O OOO
XX X XXX
OO O OOO
X X X XXXX
O O O OOOO
XX XX XXX X X
OO OO OOO O O
XXX
OOO
XXX X
OOO O
XXX XXX
OOO OOO
X X X X X
O O O O O
XXXXXXX
OOOOOOO
XXX X X
OOO O O
XX
OO
XX
OO
XX
OO
XX
OO
X O X O X O X O X O X O X O X O
X O X O X O X O X O X O X O X O
XOXOXOXOXOXOXOXOXOXOXOXOXOXOXOXO
*CRYSTAL BOOMING
Only feels like nothing could be better when i'm with you when i'm with you

oooh this is true music (deleted) everyone who listened it will get insane and keep booming
*/

Camellia’s Exoplanetary Mirage? Phigros

C++
//migrate.cpp
/*
my english is NOT good yet
if there's anything i spell wrongly, just forgive me :)

Backward, go backward, go back to the realm, then go back to the -
(is this right?)

About the Universe
Implexrough
Evanscent
Entrance to the Chaos
M....what? Camellia i'm sorry but what's this stuff spell plz?
True Home, True World
....then what
i can't remember...
A... i can't spell it either
P... well...
HATE
De... ~~DeepSeek~~ Signals
Message
What do you want more than a happy ending?
- END -
Leave All Behind
*/

这份没有

C++
//subway.cpp
/*
* the subway looks just like a subway......
* which fills you with determination.
* SAVED

* you cannot save the world...
* ...
* but you can SAVE it.


START FISHING kai shi diao yu

freeopen "subway.in","w" //freopen "subway1.in"
cin<< cout>>
while(1)
let me think...
I LOVE CCF
I LOVE kkksc03
I LOVE YOU WHO SEE THIS FILE
RP++
WHILE(1) RP++;

if you see this, congratulations for you've been congratulated by me
i'm still _LogicFish_ (_LogicFish_qwq in Luogu) but this time i grow up
this time i will not print some strange solutions
but i wrote A LOT OF zhu-shi in each files
i like fish and look DOESN'T like a fish so don't confuse me by any other fish-like beings or non-beings tkx.
i like Phigros Milthm UNDERTALE and Neuro-Sama and other things i can't remember now
if we have any interest in common, we may be friends!
*/
/*
NOW I'M ANGRY CUZ LAST 3 PROBLEMS ARE ALL GRAPHOLOGIC (SPELLING MIGHT BE WRONG)
WHY!!!!!!!!!!!!!!
I AM VERY ANGRY BUCAUSE I JUST REVIEWED STRING-RELATED ALGORITHM AND DP YESTERDAY
WHY TREAT ME LIKE THIS CCF ...... TAT
anyway RP++ anyway i love CCF and i will keep giving CCF money so please let me get into provincal team plz...!!!
*/

翻译:

代码
* 地铁看起来就像一个地铁......
* 它让你充满决心。
* 保存

* 你不能拯救世界...
* ...
* 但你可以保存它。

START FISHING(开始钓鱼)

freeopen “subway.in”,“w” //freopen “subway1.in”
cin<< cout>>
while(1)
让我想想……
我爱 CCF
我爱 kkksc03
我爱正在看这个文件的你
RP++
WHILE(1) RP++;

如果你看到了这里,恭喜你,你已经被我恭喜过了
我还是 _LogicFish_(洛谷上的 _LogicFish_qwq),但这次我长大了
这次我不会再写一些奇怪的解法了
但我在每个文件里写了一大堆注释

我喜欢鱼,而且我看起来并不像鱼,所以别用任何其他像鱼的东西或非生物来把我搞混,谢谢。
我喜欢 Phigros、Milthm、UNDERTALE 和 Neuro-Sama,还有其他我现在想不起来的东西
如果我们有共同的兴趣,我们也许能成为朋友!

现在我生气了,因为最后三道题全是图论 (拼写确实错了,是graph theory)

为什么!!!!!!!!!!

我非常生气,因为我昨天刚复习了字符串相关算法和 DP
为什么要这样对我,CCF……TAT
总之 RP++,总之我爱 CCF,我会继续给 CCF 送钱,所以请让我进省队吧求求了……!!!

他的四份代码有三份写有歌曲,hub.cpp 前面已提及。

  1. DA biao
C++
//HB-S00012 subway.cpp
#include <bits/stdc++.h>
using namespace std;


int a[2];
int main()
{
    //Da biao
    freopen("subway.in","r",stdin);
    freopen("subway.out","w",stdout);
    cin >> a[0] >> a[1];
    if (a[1] == 2)
    {
        cout << 32 << endl << 17;
        return 0;
    }
    else if (a[1] == 3)
    {
        cout << 35 << endl << 16;
    }
    fclose(stdin);
    fclose(stdout);
    return 0;
}
C++
//migrate.cpp
#include <bits/stdc++.h>
using namespace std;


int a[3];
int main()
{
    //Da biao
    freopen("migrate.in","r",stdin);
    freopen("migrate.out","w",stdout);
    cin >> a[0] >> a[1] >> a[2];
    if (a[2] == 4)
    {
        cout << "1\n2\n";
    }
    else if (a[2] == 5)
    {
        cout << "0\n1";
    }
    else if(a[2] == 197)
    {
        cout << "8129\n16\n9\n7\n12\n0\n0\n0\n2\n1\n0\n2\n3\n6\n0\n2\n0";
    }
    fclose(stdin);
    fclose(stdout);
    return 0;
}
C++
#include <bits/stdc++.h>
using namespace std;


int a[3];
int main()
{
    //DA biao
    freopen("hub.in","r",stdin);
    freopen("hub.out","w",stdout);
    cin >> a[0] >> a[1] >> a[2];
    if (a[2] == 5)
    {
        cout << "1\n2\n";
    }
    else if (a[2] == 8)
    {
        cout << "1\n1\n2\n";
    }
    else if (a[2] == 602)
    {
        cout << "17\n9\n6\n6\n9\n";
    }
    else if (a[2] == 24032)
    {
        cout << "189\n233\n288\n229\n338\n";
    }
    else if (a[2] == 99999)
    {
        cout << 12251 << endl;
    }
    fclose(stdin);
    fclose(stdout);
    return 0;
}
  1. 还是音游人
C++
//HB-S00021 migrate.cpp
/*
Part of my heart was left behind that day
I remember every time I smell the rain
Asking myself, what atonoment means?
Why not this world takes me away to heaven?

Pierces my heart, PETRICHOR
Causes me grief, PETRICHOR

Rain penestrates the core of my body
And its coldness stirs up endless my regrets
In search of blue skies, I lost my way
How far will the dark and damp journey continue?

I will prey forever even if it never ends...

-- Petrichor //void (Mournfinale)//
*/
/*
===18:28===
~8pts?
enough...
*/
  1. wo bu hui(我不会)
C++
//HB-S00048 hub.cpp
#include <bits/stdc++.h>
using namespace std;
int main(){
    freopen("hub.in","r",stdin);
    freopen("hub.out","w",stdout);
    //wo bu hui
    //hao fan a wei shen me mei you zhong wen shu ru fa
    //17:10 zha le,jiu mei you yi ti hui de
    //???
    //he yi wei
    //lao zi bu gan le
    //you mei you ren dai wo shang "mi huo xing wei da shang"?
    return 0;
}

翻译

代码
我不会
好烦啊,为什么没有中文输入法
17:10 炸了,就没有一题会的
???
何意味
  1. CCF 你牛大了
C++
//HB-S00120 subway.cpp
    for(int i=1;i<=q;i++)
 {
  //CCF ni niu da le
  cout<<0<<"\n";
 }
 return 0;
}
  1. CCF is gay
C++
//HB-S00258 hub.cpp
#include<bits/stdc++.h>
using namespace std;


int main(){
    //CCF is gay.
    //chu zhe me nan de ti 
    //shen me gui
    return;
}

翻译:

代码
CCF是…… (不可翻译)
出这么难的题
什么鬼
  1. P11831 [省选联考 2025] 追忆
C++
//HB-S00281 subway.cpp
/*
 I always look back to the past.
 The life turns to be stiil in my head in a moment. I turn  my memories to the clouds.
 The clouds are different:...
 */

你的still打错了

Markdown
# P11831 [省选联考 2025] 追忆

## 题目背景

考虑到评测机性能差距,本题较官方赛事增加了 3 秒的额外时限。

我常常追忆过去。

生命瞬间定格在脑海。我将背后的时间裁剪、折叠、蜷曲,揉捻成天上朵朵白云。

云朵之间亦有分别:积云厚重,而卷云飘渺。生命里震撼的场景掠过我的思绪便一生无法忘怀,而更为普通平常的记忆在时间的冲刷下只留下些许残骸。追忆宛如入梦,太过清楚则无法愉悦自己的幻想,过分模糊却又坠入虚无。只有薄雾间的山水,面纱下的女子,那恰到好处的朦胧,才能满足我对美的苛求。

追忆总在不经意间将我裹进泛黄的纸页里。分别又重聚的朋友,推倒又重建的街道,种种线索协助着我从一个具体的时刻出发沿时间的河逆流而上。曾经的日子无法重来,我只不过是一个过客。但我仍然渴望在每一次追忆之旅中留下闲暇时间,在一个场景前驻足,在岁月的朦胧里瞭望过去的自己,感受尽可能多的甜蜜。美好的时光曾流过我的身体,我便心满意足。

过去已经凝固,我带着回忆向前,只是时常疏于保管,回忆也在改变着各自的形态。这给我的追忆旅程带来些许挑战。

我该在哪里停留?我问我自己。

## 题目描述

给定一个 $n$ 个点 $m$ 条边的有向图 $G$,结点由 $1$ 至 $n$ 编号。第 $i$ ($1 \leq i \leq m$) 条边从 $u_i$ 指向 $v_i$,保证 $u_i < v_i$。节点 $j$ ($1 \leq j \leq n$) 有两个权值 $a_j, b_j$,保证 $[a_1, \ldots, a_n]$ 与 $[b_1, \ldots, b_n]$ 均是 $1 \sim n$ 的排列。

你需要进行 $q$ 次操作。操作有以下三种:
- $1\ x\ y$:交换 $a_x$ 和 $a_y$;
- $2\ x\ y$:交换 $b_x$ 和 $b_y$;
- $3\ x\ l\ r$:你需要输出满足以下两个条件的点 $y$ 中 $b_y$ 的最大值,若不存在满足条件的点则输出 $0$:
  1. $l \leq a_y \leq r$。
  2. 图 $G$ 中存在一条 $x$ 到 $y$ 的有向路径,即存在整数 $k \geq 1$ 与 $k$ 个结点 $p_1, p_2, \ldots, p_k$,满足 $p_1 = x$,$p_k = y$,且对于所有 $1 \leq i < k$,图 $G$ 中存在从 $p_i$ 指向 $p_{i+1}$ 的有向边。特别地,图 $G$ 中总是存在一条 $x$ 到 $x$ 的有向路径。

## 输入格式

**本题有多组测试数据**。输入的第一行两个整数 $c, T$,分别表示测试点编号和测试数据组数,接下来输入每组测试数据。样例满足 $c = 0$。

对于每组测试数据,
- 第一行三个整数 $n, m, q$,分别表示图 $G$ 的节点数、图 $G$ 的边数和操作次数,
- 接下来 $m$ 行,第 $i$ ($1 \leq i \leq m$) 行两个整数 $u_i, v_i$,描述一条边,
- 接下来一行 $n$ 个整数 $a_1, a_2, \ldots, a_n$,描述每个节点的 $a$ 权值,
- 接下来一行 $n$ 个整数 $b_1, b_2, \ldots, b_n$,描述每个节点的 $b$ 权值,
- 最后 $q$ 行,第 $i$ ($1 \leq i \leq q$) 行三或四个整数 $o_i, x_i, y_i$ 或 $o_i, x_i, l_i, r_i$,描述一次操作,格式同题目描述。

## 输出格式

对于每个 $3$ 操作输出一行一个整数,表示对应操作的答案。

## 输入输出样例 #1

### 输入 #1

0 1 4 4 7 1 2 1 3 2 4 3 4 4 2 3 1 1 3 2 4 3 2 1 3 3 3 2 4 1 1 4 3 1 1 3 2 2 4 3 1 2 3 3 4 1 1

代码
### 输出 #1

4 2 3 4 0

代码
## 说明/提示

**【样例 1 解释】**

该组样例共有 $1$ 组测试数据。该组测试数据共包含 $7$ 个操作。
- 对于第一个操作,所有满足条件的点为 $2, 4$,因此答案为 $\max\{b_2, b_4\} = 4$。
- 对于第二个操作,所有满足条件的点为 $3$,因此答案为 $b_3 = 2$。
- 对于第三个操作,交换 $a_1, a_4$ 后得到的权值序列 $a$ 为 $[1, 2, 3, 4]$。
- 对于第四个操作,所有满足条件的点为 $1, 2, 3$,因此答案为 $\max\{b_1, b_2, b_3\} = 3$。
- 对于第五个操作,交换 $b_2, b_4$ 后得到的权值序列 $b$ 为 $[1, 4, 2, 3]$。
- 对于第六个操作,所有满足条件的点为 $2, 3$,因此答案为 $\max\{b_2, b_3\} = 4$。
- 对于第七个操作,没有满足条件的点,因此答案为 $0$。

**【样例 2】**

见选手目录下的 recall/recall2.in 与 recall/recall2.ans。

该组样例满足测试点 $1 \sim 5$ 的限制。

**【样例 3】**

见选手目录下的 recall/recall3.in 与 recall/recall3.ans。

该组样例满足测试点 $7$ 的限制。

**【样例 4】**

见选手目录下的 recall/recall4.in 与 recall/recall4.ans。

该组样例满足测试点 $10 \sim 12$ 的限制。

**【样例 5】**

见选手目录下的 recall/recall5.in 与 recall/recall5.ans。

该组样例满足测试点 $13, 14$ 的限制。

**【样例 6】**

见选手目录下的 recall/recall6.in 与 recall/recall6.ans。

该组样例满足测试点 $18$ 的限制。

**【样例 7】**

见选手目录下的 recall/recall7.in 与 recall/recall7.ans。

该组样例满足测试点 $23 \sim 25$ 的限制。

**【子任务】**

对于所有测试点,
- $1 \leq T \leq 3$,
- $1 \leq n, q \leq 10^5$,$1 \leq m \leq 2 \times 10^5$,
- $\forall 1 \leq i \leq m$,$1 \leq u_i < v_i \leq n$,
- $\forall 1 \leq i \leq n$,$1 \leq a_i \leq n$,且 $[a_1, \ldots, a_n]$ 是 $1 \sim n$ 的一个排列,
- $\forall 1 \leq i \leq n$,$1 \leq b_i \leq n$,且 $[b_1, \ldots, b_n]$ 是 $1 \sim n$ 的一个排列,
- $\forall 1 \leq i \leq q$,$o_i \in \{1, 2, 3\}$,$1 \leq x_i, y_i \leq n$,$1 \leq l_i \leq r_i \leq n$。

::cute-table{tuack}

| 测试点编号 | $n, q \leq$ | $m \leq$ | 特殊性质 |
|:------------:|:------------:|:----------:|:----------:|
| $1 \sim 5$| $2\,000$| $4\,000$| 无 |
| $6$| $8 \times 10^4$ | $1.6 \times 10^5$ | AB |
| $7$| $6 \times 10^4$ | $1.2 \times 10^5$ | B|
| $8, 9$ | $8 \times 10^4$ | $1.6 \times 10^5$ | ^ |
| $10 \sim 12$ | ^ | ^ | AC|
| $13, 14$ | $6 \times 10^4$ | $1.2 \times 10^5$ | A|
| $15, 16$ | $8 \times 10^4$ | $1.6 \times 10^5$ | ^ |
| $17$ | $6 \times 10^4$ | $1.2 \times 10^5$ | D |
| $18$ | $8 \times 10^4$ | $1.6 \times 10^5$ | ^ |
| $19, 20$ | $6 \times 10^4$ | $1.2 \times 10^5$ | 无 |
| $21, 22$ | $8 \times 10^4$ | $1.6 \times 10^5$ | ^ |
| $23 \sim 25$| $10^5$| $2 \times 10^5$ | ^ |

- 特殊性质 A:$\forall 1 \leq i \leq q, o_i \neq 1$。
- 特殊性质 B:$\forall 1 \leq i \leq q, o_i \neq 2$。
- 特殊性质 C:$\forall 1 \leq i \leq q, l_i = 1, r_i = n$。
- 特殊性质 D:保证在每个 $3$ 操作的时刻,$\forall 1 \leq i \leq n, a_i = b_i$。

**【提示】**

请注意本题特别的时空限制。
  1. sto sto ccf orz orz
C++
//HB-S00436 hub.cpp
/*
rp++
sto sto ccf orz orz
rp++

qiuqiule qwq
buyaobaoling awa
*/
  1. “I love CCF”
C++
//HB-S00454 hub.cpp
#include <bits/stdc++.h>
using namespace std;
int c,t,n,d,a[10005];
int main(){
    freopen("hub.in","r",stdin);
    freopen("hub.out","w",stdout);
    cout<<"I love CCF";
    return 0;
}
C++
//HB-S00550 hub.cpp
#include <bits/stdc++.h>

using namespace std;



int main()
{
    freopen("hub.in","r",stdin);
    freopen("hub.out","w",stdout);

    ios::sync_with_stdio(0);
    cin.tie(0),cout.tie(0);
    cout<<"I Love CCF Forever!!!!!";


    return 0;
}
  1. 累。
C++
/*
tired 17qizhongkaoshi zhixielediyiti zuijinhaoleibuzhidaoganshenme
kankan woxiedelieqidaima HBchu2 yinggaishi dao shu di 2 cilaiCSP-S
gu ji 50-60fen ba ai leisiwole yitiantian de shuobuding jinnianjiuAFO
zuihouganxieCCF
I love CCF.``` 
*/

翻译:

代码
好累,17号期中考试,只写了第一题

最近好累,不知道干什么
看看我写的猎奇代码
HB初二,应该是倒数第2次来CSP-S,估计50-60分吧
唉,累死我了,一天天的,说不定今年就AFO
最后感谢CCF
I love CCF.

PS:(作者表示同感)唉,有时候是真的很累

  1. 别凡尔赛,作者建图挂了。
C++
//HB-S00718 subway.cpp
//diff subway.out subway4.ans ∅
//zhe xia wan le,wang ji zui duan lu ke yi yong dijkstra le,jie guo yong de floyd,ccf lao nian ji 1.75e8 bu yi ding neng pao guo qu

翻译:

代码
这下完了,忘记最短路可以用 dijkstra 了,结果用的 floyd,CCF 老年机 1.75e8 不一定能跑过去 

(不知道写了正解的到底在担心什么)

  1. 蔚蓝档案,ADOFAI
C++
//HB-S00777 crystal.cpp
//luogu's P11690 , P11691 , and P11682 is really great!!!
//play BA(Blue Archive) just now!!!
//and adofai(A dance of fire and ice)!!!
//yasashii yukachan desu!!!
//yasashii noachan desu!!!
//kawaii hinachan desu!!!
//kawaii hoshinochan desu!!!
//kawaii shirakochan desu!!!
//kawaii azusachan desu!!!
//CCF,I want to AK IOI!

翻译:

代码
洛谷的 P11690、P11691 和 P11682 真的很棒!!!
刚刚玩了 BA(Blue Archive / 蔚蓝档案)!!!
还有 adofai(A Dance of Fire and Ice / 冰与火之舞)!!!
温柔的优香酱!!!
温柔的诺亚酱!!!
可爱的日奈酱!!!
可爱的星野酱!!!
可爱的白子酱!!!
可爱的梓酱!!!
CCF,我想 AK IOI!
  1. CCF 你赢了
C++
//HB-S00819 subway.cpp
#include<bits/stdc++.h>
using namespace std;
const int M=5e5+5;
vector<int> g(M);
int w[M];
int main(){
	freopen("subway.in","r",stdin);
	freopen("subway.out","w",stdout);
	int c,n,m,d,q;
	cin>>c>>n>>m>>d>>q;
	cout<<"CCF,you are the winner,I never test csp-s again when I don't solve any problem!!!/nI need 500 yuan to eat a big dinner!Can you give me that?Please~~~ Bro/n";
	cout<<"Oh my baby CCF~ You can do any thing in computer,right? Yeah,I think that's right! So,give 500 yuan to me or let me AK this test? 0 or 1? GIVE ME THE ANSWER!!!";
	cout<<"I count three numbers. ONE! TWO! THREE! Oh god!Why don't you tell me the answer?!/nI don't want to hurt you,baby.BUT you hurt my little heart OK? Now,choose 1 or 2 OK?";
	cout<<"All right,if you don't want to do this.That's OK.Maybe you are right.We can't be the best friend.17m later,I need to go back home.I am so happy when I meet you./n";
	cout<<"Thank you so much!It's the first ^thank^ I say this week.Treasure these words and having good time everyday!LOVE YOU FOREVER!!!";
	cout<<"/n"<<"/n"<<"/n";
	cout<<"BYE!SEE YOU NEXT YEAR!!!---------Don't forget my 500 yuan,haha./n";
	cout<<"														-----yours student:the pilot";
	return 0;
}

你换行符都打反了!! 翻译:

代码
CCF,你赢了,我以后要是再一道题都做不出来,就再也不考 CSP-S 了!!!

我需要500块钱吃顿大餐!你能给我吗?求求了~~~Bro

哦我的宝贝CCF~ 你在电脑里什么都能做,对吧?耶,我觉得没错!

所以,给我500块钱,或者让我AK这场考试?0还是1?给我答案!!!

我数三个数。一!二!三! 天哪!你为什么不告诉我答案?!

我不想伤害你,宝贝。但是你伤了我幼小的心灵,不是吗?现在,选1还是2,行吗?

好吧,如果你不想这么做。那也行。也许你是对的。我们做不成最好的朋友了。17分钟后,我就要回家了。见到你我很开心。

太感谢你了!这是我本周第一次说^谢谢^。珍惜这些话,每天过得开心!永远爱你!!!

拜拜!明年见!!!---------别忘了我的500块钱,哈哈。

-----你的学生:the pilot(这个自己翻译)
  1. 我*CCF
C++
//HB-S00833 crystal.cpp
/*
I am fully convinced the 4th data CCF gave is incorrect!
It should be 315276.
I fuck ccf.
*******    *******    *******
*          *          *
*          *          *******
*          *          *
*******    *******    *
Chinese Collector of Funds.
Do clean and justice Olympic Competition.
Good Bye, Olympics of Informatics.
I will be better when I come to traditional learning routine.
I'll miss U.
bai sheng nv yu hei mu shi
wo de qing chun lian ai wu yu guo ran you wen ti YUKINOSHITA YUKINO YUIHAMA YUI HIKIGAYA HACHIMAN
bai quan nv zhu tai duo le
guan yu ling jia de tian shi da ren ba wo guan cheng fei chai zhe jian shi
Lycoris Recoil CHISATO! PANTS!!! xinzangyaotaozoule!!!!
yuan zhi kong <xuanguanzhizhan>
chao shi kong hui ye ji KAGUYA!
si yue shi ni de huang yan
yu ni xiang lian dao sheng ming jin tou
wo men bu ke neng cheng wei lian ren! mulimuli! (*sihukexing?)
*/

翻译:

代码
我完全确信 CCF 给的第 4 个数据点是错的!
它应该是 315276。你肯定是二分从头开始检查的,因为我第一遍也输出了这个结果,可惜数据真的是对的
我* CCF。
Chinese Collector of Funds.
办干净公正的奥林匹克竞赛。
再见,信息学奥林匹克。
等我回归传统学习路线,我会变得更好。
我会想你的。
  1. 武汉专属《我有的是时间》
代码
//My teacher doesn't teach me how do I write Dijbalabala(I forget it,sorry..)
//So I can't do anymore
//CCF is the best group(hhh
//And I don't learn the Tree and the Graph
//I will learn more!!!!
//I have long time,too!
/*
5 8
-3 -1 2 2 7
*/

翻译:

代码
我老师没教我 Dij吧啦吧啦 怎么写(我忘了,抱歉……)
所以我做不下去了
CCF 是最好的组织(hhh
而且我还没学树和图
我会学更多的!!!!
我也有的是时间!

我有的是时间(bushi)

还有想被收录的私信作者!!!