版本比较
CSP-S 2025 CQ 迷惑行为大赏
正文
增加 583 行删除 1 行
1233456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585一如既往:如有侵权或不适请私信我撤下。
今年 CQ 市共有 $789$ 名 OIer 参加了提高组。今年 CQ 市共有 $789$ 名 OIer 参加了提高组。写出了 $2868$ 份有意义的代码(检索到至少一个 `#include`)。虽然参加的人数变多了,但有意义的代码数量相对于去年来说减少了。
令人遗憾的是,本次清理了文件夹中不为题目名称的文件。所以我们无法找到文件名写错的源文件了。
## 对他的打击比 `freopen` 写错还大
检索正则 `//[ ]*freopen`,在 $67$ 个文件中检索到 $121$ 个结果。我把用这种方式手动检阅到的代码放在这个标题下。
CQ-S00034 的 `road.cpp` 全文。我也要退役了,满足你的愿望 qwq。
```cpp#include<bits/stdc++.h>
using namespace std;
namespace hyh { const int N = 1e4, M = 1e6; int n, m, k; struct ovo { int x, w; bool operator < (const ovo d) const { return w > d.w; } }; vector<ovo> e[M]; signed main() { // freopen("road.in", "r", stdin); // freopen("road.out", "w", stdout); // 我故意的 我afo了 记得把我放上去哦 cin >> n >> m >> k; for (int i = 1; i <= m; i++) { int u, v, w; } return 0; }}signed main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); return hyh::main();}//决斗!//byd我跟你报了//started in 16:51 → /fad
//没这么冷静
//从十三年前的横空出世//再到两年前的意外相遇//最后是一分钟前的//颠覆世界的一万三千亩玫瑰凋落了//可你的长夏却永不会落下//下一个瞬间//也请你//```
CQ-S00139 的代码框架:
```cpp// #define DXNsigned main(){ // freopen("rd.out","r",stdin);#ifndef DXN freopen("road.in","r",stdin); freopen("road.out","w",stdout);#endif#ifdef NXD int t=read();while(t--)#endif gs(); return 0;}```
CQ-S00152 的 `employ.cpp` 代码末注释:
```cpp/*// freopen("employ.in", "r", stdin);// freopen("employ.out", "w", stdout);#pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma #pragma#define #define #define #define #define #define #define #define #define #define #define #define #define #define #define #define// freopen("emlpoy.in", "r", stdin);// freopen("emlpoy.out", "w", stdout);
Hello, I am a OIer that isn`t get lots of points in this problem.(1294410)I want to get 200 pts so that I can atend NOIP, but I can`t.I only can atend NOIP at senior high school.emm...See you next year if I won`t AFO.
And give this song to someone(wz):
Take my hand nowStay close to meBe my loverWon`t you let me goClose your eyes nowAnd you will seeThere is a rainbowFor you and me*/```
而上面:
```cppvoid subtask2() { // He was died... ...}void subtask3() { // He was died, too... ...}```
CQ-S00183 的 `employ.cpp`,为冲正解失败的勇士默哀:
```cppfv sol() { ...//这里有一个长达 62 行的 dp,但是无法通过样例 1}int main() {// freopen("employ.in", "r", stdin);// freopen("employ.out", "w", stdout); IOS; i32 T = 1;// cin >> T; while (T--) sol();}
```
CQ-S00240:
```cpp#include<bits/stdc++.h>using namespace std;// wei ren min fu wu```
CQ-S00279:
```cpp//忘了最小生成树怎么打了 怎么办......//完蛋了www,唯有的48分被吃了```
CQ-S00356 的 `club.cpp`:
```cpp/*#include<bits/stdc++.h>using namespace std;int p=0;//void dfs(int x,int y,int z)//{// p++;// if(p>=5)// {// sum=max(sum,)// }//}int main(){ //freopen("club.in","r",stdin); //freopen("club.out","w",stdout); int n,t,a[100001][100001],b[100001],c[100001],sum=0,ans; cin>>t; for(int i=1;i<=t;i++) { cin>>n; for(int j=1;j<=n;j++) { for(int w=1;w<=3;w++) cin>>a[j][w]; } //dfs(a[1][1],a[1][2],a[1][3]); cout<<sum<<" "; } return 0;}*///A
#include<bits/stdc++.h>using namespace std;int main(){ freopen("club.in","r",stdin); freopen("club.out","w",stdout); ...}//*/
```
而这是他的 `employ.cpp`,我也不知道为什么要把上面的代码又粘一遍:
```cpp/*#include<bits/stdc++.h>using namespace std;int p=0;//void dfs(int x,int y,int z)//{// p++;// if(p>=5)// {// sum=max(sum,)// }//}int main(){ //freopen("club.in","r",stdin); //freopen("club.out","w",stdout); int n,t,a[100001][100001],b[100001],c[100001],sum=0,ans; cin>>t; for(int i=1;i<=t;i++) { cin>>n; for(int j=1;j<=n;j++) { for(int w=1;w<=3;w++) cin>>a[j][w]; } //dfs(a[1][1],a[1][2],a[1][3]); cout<<sum<<" "; } return 0;}*//*#include<bits/stdc++.h>using namespace std;int p=0;//void dfs(int x,int y,int z)//{// p++;// if(p>=5)// {// sum=max(sum,)// }//}int main(){ //freopen("club.in","r",stdin); //freopen("club.out","w",stdout); int n,t,a[100001][100001],b[100001],c[100001],sum=0,ans; cin>>t; for(int i=1;i<=t;i++) { cin>>n; for(int j=1;j<=n;j++) { for(int w=1;w<=3;w++) cin>>a[j][w]; } //dfs(a[1][1],a[1][2],a[1][3]); cout<<sum<<" "; } return 0;}*/#include<bits/stdc++.h>using namespace std;int main(){ freopen("employ.in","r",stdin); freopen("employ.out","w",stdout); int n,m,a[1000],ans=0,k,jjy; ...}
```
而这是他的 `replace.cpp`,这是第三遍了!
```cpp/*#include<bits/stdc++.h>using namespace std;int p=0;//void dfs(int x,int y,int z)//{// p++;// if(p>=5)// {// sum=max(sum,)// }//}int main(){ //freopen("club.in","r",stdin); //freopen("club.out","w",stdout); int n,t,a[100001][100001],b[100001],c[100001],sum=0,ans; cin>>t; for(int i=1;i<=t;i++) { cin>>n; for(int j=1;j<=n;j++) { for(int w=1;w<=3;w++) cin>>a[j][w]; } //dfs(a[1][1],a[1][2],a[1][3]); cout<<sum<<" "; } return 0;}*//*#include<bits/stdc++.h>using namespace std;int p=0;//void dfs(int x,int y,int z)//{// p++;// if(p>=5)// {// sum=max(sum,)// }//}int main(){ //freopen("club.in","r",stdin); //freopen("club.out","w",stdout); int n,t,a[100001][100001],b[100001],c[100001],sum=0,ans; cin>>t; for(int i=1;i<=t;i++) { cin>>n; for(int j=1;j<=n;j++) { for(int w=1;w<=3;w++) cin>>a[j][w]; } //dfs(a[1][1],a[1][2],a[1][3]); cout<<sum<<" "; } return 0;}*//*#include<bits/stdc++.h>using namespace std;int p=0;//void dfs(int x,int y,int z)//{// p++;// if(p>=5)// {// sum=max(sum,)// }//}int main(){ //freopen("club.in","r",stdin); //freopen("club.out","w",stdout); int n,t,a[100001][100001],b[100001],c[100001],sum=0,ans; cin>>t; for(int i=1;i<=t;i++) { cin>>n; for(int j=1;j<=n;j++) { for(int w=1;w<=3;w++) cin>>a[j][w]; } //dfs(a[1][1],a[1][2],a[1][3]); cout<<sum<<" "; } return 0;}*/#include<bits/stdc++.h>using namespace std;int main(){ freopen("replace.in","r",stdin); freopen("replace.out","w",stdout); ...}
```
CQ-S00491:
```cpp/*啊?2.148e8???你告诉我是这个复杂度???还只给1000ms。无语ing……(15:32)希望评测机能跑得快一点吧,球球了,我T1都没有做出来,看着是贪心,结果写完才发现第三个样例不对,气鼠我了!(15:44)哦,我刚刚才发现是3.048e7,算错了,唬我一脸……(16:45)我觉得我想出正解了,3.024e7,应该能过吧……(16:55)我好像又又又又算错时间复杂度了(17:04)啊啊啊为什么大样例超时了!!!(17:58)哦!我又又又知道了!有些步骤根本不需要!(17:58)服了,为什么第2个大样例输出0啊!!!!!我要爆零了!!!!!!!!!!!我T1崩溃不想做了!!!T2只过了小样例!(18:28)*/```
CQ-S00565,诈骗中:
```cpp//froepen("employ.cpp","r",stdin)//freoepm("employ.out","w",stdin)//CSP AK me//rp+=inf//#include <bits\stdc++.h>//#inculde <bits/stdc++.h>//freopen//const int mod=998244853;//qwq awa qaq//queueforces//orz//How to dp a permutation?????????//qwq//qwqwq//qwqwqwq//qwqwqwqwq//qwqwqwqwqwq//qwqwqwqwqwqwq//qwqwqwqwqwqwqwq//qwqwqwqwqwqwqwqwq//qwqwqwqwqwqwqwqwqwq//qwqwqwqwqwqwqwqwqwqwq//qwqwqwqwqwqwqwqwqwqwqwq```
CQ-S00609:
```cpp/*//freopen//froepen//fropen//fopen//freopen("employ.in", "w", stdin);//freopen("employ.in", "r", stdout);//freopen("employ.out", "r", stdin);*/```
CQ-S00614:
```cpp//freopen//炸完了```
CQ-S00622(重点是函数名):
```cppint main(){ //freopen("club.in","r",stdin); //freopen("club.out","w",stdout);
cin>>t; while(t--){ cin>>n;
if (n==2){ pian(); continue; }
bool f1=0,f2=0;
...
if (!f1 && !f2){ pian1(); continue; } if (!f2){ pian2(); continue; }
if (n<=10){ bao(); continue; }
zheng(); }
return 0;}
```
CQ-S00639:
```cpp/*luogu1250410喵//freopen("xxxx.in","r",stdin);//freopen("xxxx.out","w",stdout);feropen("xxxx.in","r",stdin);feropen("xxxx.out","w",stdout);freopen("xxxx.in","w",stdin);freopen("xxxx.out","r",stdout);stostostostostostostostostostostostostostosto ccf CCF orzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzslovecin<<cout>>(此处省略 50 行 114514 和 1919810)*/```
CQ-S00681:
```cppsigned main() { // MAX 0.95s EXPECT 0.5s#ifdef WYY freopen("road114.in", "r", stdin); // freopen("road114.out", "w", stdout);#else freopen("road.in", "r", stdin); freopen("road.out", "w", stdout);#endif std::ios::sync_with_stdio(false), ld.tie(0), jyt.tie(0); JoKing::main();#ifdef WYY // while(true);#endif return 0;}/*MST 问题。但是有一些边需要 c_i 的代价去启用。暴力是 O(2^10 \times 10^6 \times \alpha(10^5)) 的。原有的非最小生成树边没有用。边集优化为 10^5 级别,可以通过。*/```
XDFZ OI 的最后一颗子弹 CQ-S00749 的考场游记。希望你考了 $380$。
```cpp/*//freopen();考前 13:50众所周知,考前__一发,能考 380,希望有用。14:30开考了,先吃块大白兔奶糖补充营养16:17妈呀,前两题没思路,倒是把第三题(可能)写出来了拿 AC 自动机做的,最后一个样例跑了 0.3 秒,但是感觉可能被卡,但估计不太好构造now:0+0+100+0=10016:39把 T2 暴力加部分分拿到了。now:0+48+100+0=14816:52突然发现之前把 employ 都拼成了 empoly(17:06写了个状压 dp,把 T4 部分分拿了。感觉今年 T4 比去年友好,至少能读懂了(now:0+48+100+20=16817:13机房突然熄灯,不知道在干啥,熄灯10s后就亮了。27:21把 T1 能想到的分全拿了。now:70+48+100+20=238
欸,桑丘,我有了个绝妙的注意,如果在最后发癫是不是就可以上迷惑行为大赏了!...............我明白了,我不是 dante。不是 steve。也不是 kards 玩家(笑点解析:这人玩过线上kards但一般只玩线下版,所以没进军官)。我是......XDFZ OI 的最后一颗子弹!天闹黑卡,板载!
键盘挥打踏入调试调!颓废已经结束随心所欲的写题吧将由我来调试!过编吧!过拍吧!AC吧!全体OIER,回应于我!自我毁灭的编写!*/
```