版本比较
CSP-S 2025 JX 迷惑行为大赏(下)
正文
增加 649 行删除 1 行
190 行未改动全部展开191192193194195195196197198199209 行未改动全部展开409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100022 行未改动10231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093190 行未改动全部展开```cpp/* * start time: 22:28 * end time: 2:28 * * * rp++*/```
209 行未改动全部展开 freopen("replace.in","r",staticin); freopen("replace.out","w",staticout);```
### JX-S00420
club.cpp
```cpp// gan jue zi ji dai ma xiang tiao long```
而这份代码长这样:
```cpp#include<bits/stdc++.h>using namespace std;#define ll long longconst 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
```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 zaichuang 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 youxian 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 wohao 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 luoer 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 woshuo 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 nijiu 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 buzhu 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 haoxiang zhong de ai qin hao xiang di bu guo na shi jian , suo yi ni qi quan .*/
```
看样子是首歌。
employ.cpp
```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```
翻译:
```cpp//无语了//C C F N B//我出基醚了(?),你们羡慕吧 (^3^)//昨晚一把双打金(?)```
倒数第一二行实在看不懂,AI 也不会,有没有翻译官帮忙翻译一下。
### JX-S00428
这位选手的 T1~4 代码都有:
```cpp//#define connect_or_leave_oi return```
除了 replace.cpp 都有:
```cpp //connect_or_leave_oi 0;```
好奇为什么要注释掉,是怕爆炸吗?
同时,club.cpp 中还有:
```cpp // cout<<18961+16178+19722+17976+9953+10557+15344+13424+8769+16441;```
意义不明。
### JX-S00455
club.cpp
```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.
----OIerferopen("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);*/```
~~绝对正经的~~翻译:
```cpp致其他 OIer:
两年 OI 一场空,回头再看,是场梦
男儿不沾磷与志,空腹天升八尺蛆 阎王韩愈税五百,卷土重来再撑网 今日咱姐栈溢蛆,冥召等闲大粪黄
我的 OI 在上面,但我的梦永远不会在上面。 ———— OIer```
好吧下面这段才是正经的翻译:
```cpp致其他 OIer:
两年 OI 一场空,回头再看,是场梦
男儿不展凌云志,空负天生八尺躯 阳王憾陨谁无败?卷土重来再称王 今日暂且展翼去,明朝登仙笞凤凰
我的 OI 生涯结束了,但我的梦永远不会停止。 ———— OIer```
倒数第四句搜到的是“阳莾”,可能是打错了或者记错了?或者就是这个音。倒数第三个字搜到的是“笞”,读作 chī。
同时,这位选手还是压行牢大,road.cpp 只有 8 行,最后一行是空行。每个函数只有一行,`using namespace std;` 和定义变量占一行,`#include` 占一行,最长的一行足有 780 字符,总计 1910 字符。
### JX-S00458
club.cpp
```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
```cpp//LONG LONG IS VERY IMPORTANT!!!```
LONG LONG 确实很重要。
```cpp//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
```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
```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 OA A F OOO (It is so ugly...)*///A fun fact: Every code is larger than 1000 bytes.```
uid 我帮你找到了,是 1200904,~~不用谢~~。
最后一句话说的是对的。
### JX-S00459
club.cpp
```cpp/*
...
byd ex*/```
你怎么能这样说人家,这样人家不会伤心的嘛!
road.cpp
```cpp/*it seems to do with dp.but i can't think how...*/```
(不知道写什么了,随便乱写一点叭 ^_^)
### JX-S00466
club.cpp
```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. */```
本土化翻译:
```cpp /* 我真的是*了,我学过的所有东西今天全忘干净了。 我妈在我身上花了很多钱,但是我不能让她的梦想成真。 我讨厌我如此 fw。只剩 30 分钟了,但是我不能改变什么。 我的 fw 导致了我的失败。我保证我会洗心革面, 把每件事做好,再也不像今天这样 fw。 再见 CSP,和那个 fw 的我。```
真是个励志的故事。
### JX-S00471
road.cpp
```cppstruct node{ int v; int w; bool operator < (const _node __&x, const _node __y) const return __x.w < __y.w; }};```
```cppvoid dij(int s){ ...}
...
dis(1);```
不好评价。喜提 7 处 CE。
### JX-S00475
这位考生四道题的代码都用了:
```cpp#include<bits/bits/stdc++.h>```
### JX-S00493
这位选手四道题的 freopen 后面都有:
```cpp//please open it```
### JX-S00503
replace.cpp
```cpp // huh? CSP-S? ACAM?```
### JX-S00506
club.cpp
```cpp/* \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ | | | | | | | | | | | | / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \*/```
road.cpp
```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
```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
```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
```cpp/*According to n%2==0So there is only one that over n/2And 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
```cpp/*finished egg!*/```
?
road.cpp
```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
```cpp//remember://freopen!!!//mod!!!//time limit and memory limit!!!//the special numbers!!!```
### JX-S00524
~~就是开头代码里有六个板子的那位~~,他的 T1 代码中有如下这段:
22 行未改动```
竟然是 TLEWA 牢大么,%%%。祝你 rp++。
### JX-S00531
club.cpp
```cpp//RP++ csp I love you, see you, OI! AFO? forever? please remember me, I'm dog_emperor.```
你好,dog_emperor。RP++!
road.cpp
```cpp//RP++ tu lun........//if this problem I get 100 pts.....```
RP++!!
replace.cpp
```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
```cpp//RP++ bu hui xie yi dian shu chu yang li %%% /bx CCF Orz```
相信 CCF 的数据!
### JX-S00533
club.cpp
```cpp//^^^^|\^^^^^^/|^^^^//^^^^|^\^^^^/^|^^^^//^^^^///----\\\^^^^//^^^////_/\_\\\\^^^//^^^|||<O><O>|||^^^//^^^||| . |||^^^//^^^^VVV| |VVV^^^^//^^^/----------\^^^//^^/^^^^^^^^^^^^\^^//^^|############|^^```
而且这份代码第 42 行没写分号(哭笑)。
### JX-S00565
```cpp// luogu uid: 1277793// shift!```
你好,__Groyhj__QwQ(喜)。
---
上部分见 [CSP-S 2025 JX 迷惑行为大赏(上)](https://www.luogu.com.cn/article/c2rvo0j1/)。