CSP-S 2025 JX 迷惑行为大赏(下)
CSP-S 2025 JX 迷惑行为大赏(下)
这是 CSP-S 2025 JX 迷惑行为大赏 的下部分,记录范围 JX-S00284~JX-S00566。
上部分见 CSP-S 2025 JX 迷惑行为大赏(上)。
如果有未统计到的或者统计错误的可以私信作者补充或修改。
如有侵权可以私信作者删除。
本文(上和下)有一个彩蛋,看看你能不能找到。
一定要看到最后并且点赞转发宣传一下,把这么多代码都翻一遍是很累的qwq。
你也可以在评论区打出你认为最迷惑的代码(或者其他形容词,比如最抽象)。
JX-S00288
club.cpp
for(int j=1;j<=3;j++){
if(b[j]<=s){
dp[i][j]=max(dp[i][j-1],a[i][j]);
}
}
ans+=dp[i][3];
然而 dp 未定义。并且这份代码还少了一个右花括号。
road.cpp & replace.cpp
#include<bits/stdc++.h>
using namespace std;
int main(){#include<bits/stdc++.h>
employ.cpp
if(s[i]=='0') cnt++;
cnt 未定义。
JX-S00295
employ.cpp
//const int MOD=998244353;\
int n,m;\
int s[510];\
struct nx{\
int x,c;\
bool vis=false;\
}p[510];\
int ans=0;\
void sh(int d,int i){\
if(p[i].vis){\
return;\
}\
if()\
}
神秘注释。
JX-S00298
road.cpp
//bye bye qqq
JX-S00308
replace.cpp
string p[200010],q[200010],r[200010],s[200010];
...
for(int i=1;i<=n;i++){
cin>>s;
}
我觉得 C++ 标准应该加入这种方便的读入方式(虽然自己实现也不是很难)。
JX-S00309
club.cpp
/*
...
}*/
/if(s[0]==100000){
...
}
JX-S00313
employ.cpp
//🏁🏁🏁
很好奇这是怎么打出来的,Alt+小数字吗?
JX-S00321
这位选手四道题的 using namespace std; 都被写作:
#define CSP2025 using
#define RP namespace
#define plusplus std
CSP2025 RP plusplus;
RP plusplus!
JX-S00327
replace.cpp
//shibushi gaixieyiyanl
//www, xueddongxiyidiandoumeikaoaaa
//wozhiganjue juewang aaa
//lian hash ye xiegual...
//suanlb, shao 20pts youyoushenmguanxine
//nibijinglianxu liangnian douyudaolshihezijdt
//zonggaikenyicb...
//meiyouzhongwenshurufa maosilianwoddanaodoubeixianzhil...
//taikewul!!!!!!!!!!
//woshizz,wwwwwwwwwwwwqaqaqaqaqaqaqaq.
//freopen//freopen//freopen//freopen//freopen//freopen//freopen//freopen//freopen//freopen//freopen//freopen
//wozaiganshenm...
//orzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorz
//freopen("replace.in","r",stdin);
//freopen("replace.out","r",stdin);
//rest in peace...
翻译:
//是不是 该写遗言了
//www, 学的东西一点都没考aaa
//我只感觉 绝望 aaa
//连 hash 也 写挂了...
//算了罢, 少 20pts 又有什么关系呢
//你毕竟连续 两年 都遇到了适合自己的题
//总该啃一次吧...
//没有中文输入法 貌似连我的大脑都被限制了...
//太可恶了!!!!!!!!!!
//我是纸张,wwwwwwwwwwwwqaqaqaqaqaqaqaq.
//freopen//freopen//freopen//freopen//freopen//freopen//freopen//freopen//freopen//freopen//freopen//freopen
//我该干甚么呢...
//orzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorz
//freopen("replace.in","r",stdin);
//freopen("replace.out","r",stdin);
//休息在和平里...
也很可爱捏。
road.cpp
// 2^k times MST, O(mlogm*2^k)/O((n+m)logn*2^k).
// only the n-1 edges that have been chosen can be changed.//fake
这个就不翻译了。
JX-S00329
在 T2~4 的代码中都有:
/*
* start time: 22:28
* end time: 2:28
*
* rp++
*/
这表明了考场电脑的时间之准确(你看它连一分钟误差都没有,是不是很准确)。
JX-S00330
club.cpp
//love wuyin,my teacher
JX-S00336
以下代码都是这位选手代码的全部内容,不是节选。
road.cpp
adddsad
replace.cpp
312313
employ.cpp
dadadad
JX-S00340
这位选手在 T2、3、4 分别输出了 91、78、13。我检查了多次,T2 输出的确实是 91 而不是 13。不过我想知道为什么不是 13,是这位选手对官方数据足够强大的信心吗?
JX-S00353
在所有题目的代码中都有:
// cout << "CSP-S 2025 RP++" << '\n';
RP++!
JX-S00355
road.cpp
//kao lv bao li mei jv na xie cun zhuang hui xuan
//fa xian chu shi bu zai zui xiao sheng cheng shu li de ken ding hou mian ye bu zai?????
//mlogm+2^k*(k*n+n*bingchaji)
//666 ji xian shu jv pao 1.05s xiang xin CCF shao ye ji
//666 jia ge qi fa shi he bing jiu shi 0.9s le
翻译:
//考虑暴力枚举哪些村庄会选
//发现初始不在最小生成树里的肯定后面也不在?????
//m log m + 2^k (kn + n * 并查集)
//666 极限数据跑 1.05s 相信 CCF 少爷机
//666 加个启发式合并就是 0.9s 乐
相信 CCF 少爷机!
还是 road.cpp
// i'm SBSBSBSBSB
// a~a~a~a~hahahahahawoshishabi
//wozenmezhemecai
翻译:
// 我是扇贝鼠标烧杯烧饼士兵。
// a~a~a~a~哈哈哈哈哈我是沙笔(指用沙子做成的笔)。
//我怎么这么强
club.cpp
//woshishabi
replace.cpp
//wei shen me cuo le!!!!!!!!!!!!!!!!!!!!!!!!!
//I'm SB
...
//wo shi sha bi
这些不翻译了,和上面的差不多。
JX-S00357
这位考生的 freopen 是这样写的(xxx 表示文件名):
freopen("xxx.in","R",std);
freopen("xxx.out","W",std);
JX-S00387
这位考生的所有 #include 都写成了 include,并且在 club.cpp 中,cin >> 写成了 cin <<。不过奇怪的是,其他三题的 cin >> 都写对了。
club.cpp
include<bits/stdc++.h>
using namespace std;
int x[50100];
int y[50100];
int z[50100];
int main(){
freopen("club.in","r",stdin);
freopen("club.out","w",stdout);
cin<<n;
...
这里的变量 n 未定义。
JX-S00390
这位选手所有题目代码开头都是:
//xjz0918 CSP-S2025 RP++
//FROM GAN NAN SHI DA FU ZHONG
你好,来自赣南师大附中的 xjz0918。CSP-S 2025 RP++!
JX-S00394
这位选手的 T1、3、4 代码中都有:
// remember to use return with han'shu
记得在函数里用 return!
JX-S00395
road.cpp
vector<pair<int,int> e[10003]
int main(){
...
漏了一个分号。这导致了 8 处 CE。
employ.cpp
cin>>s;
s 未定义。
JX-S00403
road.cpp & employ.cpp
printf("Hello,world!");
你好,世界……再一次……再一次……
JX-S00408
这位选手在是这样写的:
#include<bits/static>
using namespace static;
int main()
{
freopen("xxx.in","r",stdin);
freopen("xxx.out","w",stdout);
...
然而在 replace.cpp 中,freopen 是这样写的:
freopen("replace.in","r",staticin);
freopen("replace.out","w",staticout);
JX-S00420
club.cpp
// gan jue zi ji dai ma xiang tiao long
而这份代码长这样:
#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int N=1e5+2;
struct node{
int a,b,c;
}s[N],num;
ll t,n,ans;
bool cmp(node l,node r){
return (max(l.a,max(l.b,l.c))*2-l.a-l.b-l.c)>(max(r.a,max(r.b,r.c))*2-r.a-r.b-r.c);
}
int main(){
freopen("club.in","r",stdin);
freopen("club.out","w",stdout);
cin>>t;
while(t--){
cin>>n;
ans=0;
for(int i=1;i<=n;i++) cin>>s[i].a>>s[i].b>>s[i].c;
num.a=n/2,num.b=n/2,num.c=n/2;
sort(s+1,s+n+1,cmp);
// for(int i=1;i<=n;i++) cout<<s[i].a<<" "<<s[i].b<<" "<<s[i].c<<endl;
for(int i=1;i<=n;i++){
int maxn=max(s[i].a,max(s[i].b,s[i].c));
if(maxn==s[i].a){
num.a--;
if(num.a<0){
maxn=max(s[i].b,s[i].c);
if(maxn==s[i].b){
num.b--;
if(num.b<0){
num.c--;
ans+=s[i].c;
}
else ans+=s[i].b;
}
if(maxn==s[i].c){
num.c--;
if(num.c<0){
num.b--;
ans+=s[i].b;
}
else ans+=s[i].c;
}
}
else ans+=s[i].a;
}
else if(maxn==s[i].b){
num.b--;
if(num.b<0){
maxn=max(s[i].a,s[i].c);
if(maxn==s[i].a){
num.a--;
if(num.a<0){
num.c--;
ans+=s[i].c;
}
else ans+=s[i].a;
}
if(maxn==s[i].c){
num.c--;
if(num.c<0){
num.a--;
ans+=s[i].a;
}
else ans+=s[i].c;
}
}
else ans+=s[i].b;
}
else{
num.c--;
if(num.c<0){
maxn=max(s[i].b,s[i].a);
if(maxn==s[i].b){
num.b--;
if(num.b<0){
num.a--;
ans+=s[i].a;
}
else ans+=s[i].b;
}
if(maxn==s[i].a){
num.a--;
if(num.a<0){
num.b--;
ans+=s[i].b;
}
else ans+=s[i].a;
}
}
else ans+=s[i].c;
}
}
cout<<ans<<endl;
}
return 0;
}
我感觉更像海马。你感觉像龙还是海马呢?
replace.cpp
//neng na fen zhi jie chi shi --c.t
/*
zou lang deng guan shang shu bao fang , zou dao fang qian chuang wai wang , hui xiang gang mai de shu yi beng ming jiao ban dao tie he fang zai
chuang bian dui hao duo di yi ye di liu ye di qi ye xu , ran er wo zong xiang bu dao pei wo kan zhe shu de ni hui yao zou , bu zai shi bu zai you
xian zai yi jin kan bu dao , tie he de yao shi kong , tou le guang kan jian ta xiu le hao jiu ,hao jiu hao jiu ,wai wei de hui chen bao wei le wo
hao an hao an tie he de yao shi wo zhao bu dao , fang zai tang guo pang de shi wo hen xiang hui yi de tian ~ , ran er guo lv le ni he wo lun luo
er cheng mei , fang zai he zi li de shi ni gei wo de kuai le e e , wo hao xiang ji de ke shi wo ji bu de , wei shen me zhe yang zi ni la zhi wo
shuo ni you xie you yu zen me neng zhe yang zi , yu hai mei ting ni jiu cheng san yao zou , yi jin xi guan bu qu zu zhi ni guo hai yi zhen zi ni
jiu hui hui lai , yin xiang zhong de ai qin hao xiang , di bu guo na shi jian ,wei shen me zhe yang zi , ni la zhe wo shuo ni yi jin jue ding , wo la bu
zhu ni , ta a de shou ying gai bi wo geng nuan , tie he de xu bian cheng le ri ji bian cheng le kong qi yan hua cheng hui yi yin xiang zhong de ai qi hao
xiang zhong de ai qin hao xiang di bu guo na shi jian , suo yi ni qi quan .
*/
看样子是首歌。
employ.cpp
//wu yu le
//C C F N B
//wo chu ji mi le , ni men xian mu ba (^3^)
//zuo wan yi ba shuang da jin
翻译:
//无语了
//C C F N B
//我出基醚了(?),你们羡慕吧 (^3^)
//昨晚一把双打金(?)
倒数第一二行实在看不懂,AI 也不会,有没有翻译官帮忙翻译一下。
JX-S00428
这位选手的 T1~4 代码都有:
//#define connect_or_leave_oi return
除了 replace.cpp 都有:
//connect_or_leave_oi 0;
好奇为什么要注释掉,是怕爆炸吗?
同时,club.cpp 中还有:
// cout<<18961+16178+19722+17976+9953+10557+15344+13424+8769+16441;
意义不明。
JX-S00455
club.cpp
/*
--------- -> oooo IIIIIII
/ \ -> o o I
/ \ -> o o I
/ \ -> o o I
oooo IIIIIII
To other OIers:
liang nian OI yi chang kong , hui tou zai kan ,shi chang meng
nan er bu zhan lin yu zhi, kong fu tian sheng ba chi qu
yan wang han yu shui wu bai, juan tu chong lai zai cheng wang
jin ri zan jie zhan yi qu, ming zhao deng xian da fen huang
My OI is over,but my dream is never over.
----OIer
feropen("club.out","w",stdin);
feropen("club.in","r",stdout);
feropen("club.out","w",stdin);
feropen("club.in","r",stdout);
feropen("club.out","w",stdin);
feropen("club.in","r",stdout);
feropen("club.out","w",stdin);
feropen("club.in","r",stdout);
*/
绝对正经的翻译:
致其他 OIer:
两年 OI 一场空,回头再看,是场梦
男儿不沾磷与志,空腹天升八尺蛆
阎王韩愈税五百,卷土重来再撑网
今日咱姐栈溢蛆,冥召等闲大粪黄
我的 OI 在上面,但我的梦永远不会在上面。
———— OIer
好吧下面这段才是正经的翻译:
致其他 OIer:
两年 OI 一场空,回头再看,是场梦
男儿不展凌云志,空负天生八尺躯
阳王憾陨谁无败?卷土重来再称王
今日暂且展翼去,明朝登仙笞凤凰
我的 OI 生涯结束了,但我的梦永远不会停止。
———— OIer
倒数第四句搜到的是“阳莾”,可能是打错了或者记错了?或者就是这个音。倒数第三个字搜到的是“笞”,读作 chī。
同时,这位选手还是压行牢大,road.cpp 只有 8 行,最后一行是空行。每个函数只有一行,using namespace std; 和定义变量占一行,#include 占一行,最长的一行足有 780 字符,总计 1910 字符。
JX-S00458
club.cpp
//I hate this greedy problem. It took me 70 minutes to solve it!
//Also, I don't know whether the solution is correct or not, even though it passed the big example.
road.cpp
//LONG LONG IS VERY IMPORTANT!!!
LONG LONG 确实很重要。
//Why is it a graph problem??? I have to use some magic algorithms...
//Designant.
//Antithese
//Fractured Ray
//Testify (However, I'm not an Arcaea player.)
//Bounded Quietude
//BANGING STRIKE (I'm not sure about this...)
//Spasmodic
//Igallta
//Rrhar'il
//Crave Wave
//The Chariot ~REVIILE~
//Luminescence
//Retribution
//DESTRUCTION 3,2,1 (That's my feeling now!)
//Distorted Fate (However, I'm not a Phigros player either.)
//Komplexe
//sølips (Guess why I can type that character 'ø' without copying.)
//QZKago Requiem
//PANDORA PARADOXXX (Of course, I'm not a maimai player...)
//Gold Town
//REANIMATE
//Quo Vadis
//Double Agent
//PLEASE (Nothing to say... I don't play music games...)
//CR200J CR220J CR300AF CR300BF CR400AF CR400BF CR450AF CR450BF (To tell the truth, I'm really a train lover!)
//So how can I solve this problem? nope:( )
//But only 16 pts I can get... (NEED KRUSKAL?)
//UPDATE 17:30 Maybe 32 pts? I add 'k' into my program, but it was TLE on Example 2.
//So I can't get the 1st prize in CSP-S...
//And I should fight for the senior high school entrance examination, so...
//GOODBYE, OI.
//AFOed on November 1st, 2025.
可爱捏……再一次……再一次……
replace.cpp
//The string problem is so evil that I only passed Example 1 and 2.
//I have tried to learn KMP many times, but I couldn't understand the algorithm!!!
//Now I want to be DESTRUCTED. There were only less than 8 pts I could get.
原来你也一直学不会 KMP。
employ.cpp
//The code only passed Example 1.
//NEVER GONNA GIVE YOU UP!!!
//freopen("employ,in",r,stdin);
//freopen("employ.ouy","w",stdout);
//This is my last CSP, so I want to surprise the person who is seeing this code.
//1145141919810 137891 (I still don't know what's this.)
//orz qhx xzy lyx pce sto %%%
//See my T2 code please!
//Luogu Qiu101029, uid: ...(I forgot...)
/*
A FFFFFFF OOO
A A F O O
AAAAA FFFFFFF O O
A A F O O
A A F OOO (It is so ugly...)
*/
//A fun fact: Every code is larger than 1000 bytes.
uid 我帮你找到了,是 1200904,不用谢。
最后一句话说的是对的。
JX-S00459
club.cpp
/*
...
byd ex
*/
你怎么能这样说人家,这样人家不会伤心的嘛!
road.cpp
/*
it seems to do with dp.
but i can't think how...
*/
(不知道写什么了,随便乱写一点叭 ^_^)
JX-S00466
club.cpp
/*
I'm ready fucking bad,everything I lreaned I have forgotten today,my mum
spend a lot of money for me,but I can't make her dream come true,I hate
that I'm so disable.It's just 30 minutes left,but Ican't change anything,
my disability cause my failture .I promise I will make up my heart to do
everything well and never be disable like now,goodbye csp and fucking
disable me.
*/
本土化翻译:
/*
我真的是*了,我学过的所有东西今天全忘干净了。
我妈在我身上花了很多钱,但是我不能让她的梦想成真。
我讨厌我如此 fw。只剩 30 分钟了,但是我不能改变什么。
我的 fw 导致了我的失败。我保证我会洗心革面,
把每件事做好,再也不像今天这样 fw。
再见 CSP,和那个 fw 的我。
真是个励志的故事。
JX-S00471
road.cpp
struct node{
int v;
int w;
bool operator < (const _node __&x, const _node __y) const
return __x.w < __y.w;
}
};
void dij(int s){
...
}
...
dis(1);
不好评价。喜提 7 处 CE。
JX-S00475
这位考生四道题的代码都用了:
#include<bits/bits/stdc++.h>
JX-S00493
这位选手四道题的 freopen 后面都有:
//please open it
JX-S00503
replace.cpp
// huh? CSP-S? ACAM?
JX-S00506
club.cpp
/*
\o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/
| | | | | | | | | | | |
/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
*/
road.cpp
/*
91=78+13;
78=91-13;
13=91-78;
91 91 91 91 91 91 91 91 91 91 91 91 91 91
78 78 78 78 78 78 78 78 78 78 78 78 78 78
13 13 13 13 13 13 13 13 13 13 13 13 13 13
*/
JX-S00507
club.cpp
//fuck, now the problem is how to dp to make it biggest, I only can tanxin, I am trying to bianli to try getting score.
//But I don't have mind.I want to give up,teacher.Although I spend all time solving it, I am failed. I am so sorry. ----18:12
//no, no, no! how did huangweibo do in the last exam? he got two, but now I only get zero! And I don't know how to use these require----18:22
神秘。
JX-S00510
club.cpp
//chong gou shu
//segment tree
//zhuxi tree
//shu lian pou fen
//dp
//tan xin
//er fen
//zui duan lu
//tarjan
//shu de zhi jin/zhong xin
//topu
//stack
//queue
//priority_queue
//map
//bitset
//zi dian shu
//manacher
//KMP
//exgcd
//ju zhen
//fen kuai
//da biao
神秘算法列表。
JX-S00515
club.cpp
/*
According to n%2==0
So there is only one that over n/2
And there will be OK after moving the ones which more than n/2
*/
/*
record:
about 00:40
overcome all big example, believe that it is OK
VScode is so comfortable and convinent
How bad my English is!
*/
VScode is so comfortable and convinent!
replace.cpp
/*
finished egg!
*/
?
road.cpp
/*
record:
00:50 I think I know how to solve.
It is that O(2^n) for choosing k,
then using min_born_tree with m which added the chosen k, and it needs O(n). (How bad my English is!)
01:10 Oh no!! It is wrong, because of O(2^k*m) == O(1e9)
02:00 I can ac it V-V...
03:03 K! the title is vary unclear!
03:06 overcome example.
hope 64
May do it on tree
*/
反复强调(How bad your English is)。
JX-S00517
//remember:
//freopen!!!
//mod!!!
//time limit and memory limit!!!
//the special numbers!!!
JX-S00524
就是开头代码里有六个板子的那位,他的 T1 代码中有如下这段:
/*
----------------------------
TLEWA luogu uid 515129
CSP 2025 rp++
----------------------------
g++ ?.cpp -o ? -O2 -std=c++14
ulimit -s 10240000
#define force_inline [[gnu::force_inline]] inline
----------------------------
2:45 AC T1
3:33 AC T2 too slow...
*/
竟然是 TLEWA 牢大么,%%%。祝你 rp++。
JX-S00531
club.cpp
//RP++ csp I love you, see you, OI! AFO? forever? please remember me, I'm dog_emperor.
你好,dog_emperor。RP++!
road.cpp
//RP++ tu lun........
//if this problem I get 100 pts.....
RP++!!
replace.cpp
//RP++ tiao le 90 min jie guo da shu ju guo bu liao hai neng you fen ma?
//sto CCF orz qiu
RP++!!!要相信 CCF 的数据。实在不行可以尝试不可以总司令
employ.cpp
//RP++ bu hui xie yi dian shu chu yang li %%% /bx CCF Orz
相信 CCF 的数据!
JX-S00533
club.cpp
//^^^^|\^^^^^^/|^^^^
//^^^^|^\^^^^/^|^^^^
//^^^^///----\\\^^^^
//^^^////_/\_\\\\^^^
//^^^|||<O><O>|||^^^
//^^^||| . |||^^^
//^^^^VVV| |VVV^^^^
//^^^/----------\^^^
//^^/^^^^^^^^^^^^\^^
//^^|############|^^
而且这份代码第 42 行没写分号(哭笑)。
JX-S00565
// luogu uid: 1277793
// shift!
你好,GroyhjQwQ(喜)。
上部分见 CSP-S 2025 JX 迷惑行为大赏(上)。