跳到正文

休闲·娱乐

CSP-S 2025 CQ 迷惑行为大赏

Shunpower约 18 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年1月9日
篇幅
约 18 分钟

版本

  1. v4当前
  2. v3
  3. v2
  4. v1

一如既往:如有侵权或不适请私信我撤下。

今年 CQ 市共有 789789 名 OIer 参加了提高组。写出了 28682868 份有意义的代码(检索到至少一个 #include)。虽然参加的人数变多了,但有意义的代码数量相对于去年来说减少了。

令人遗憾的是,本次清理了文件夹中不为题目名称的文件。所以我们无法找到文件名写错的源文件了。

对他的打击比 freopen 写错还大

检索正则 //[ ]*freopen,在 6767 个文件中检索到 121121 个结果。我把用这种方式手动检阅到的代码放在这个标题下。

CQ-S00034 的 road.cpp 全文。我也要退役了,满足你的愿望 qwq。

C++
#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 的代码框架:

C++
//  #define DXN
signed 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 代码末注释:

C++
/*
//  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 now
Stay close to me
Be my lover
Won`t you let me go
Close your eyes now
And you will see
There is a rainbow
For you and me
*/

而上面:

C++
void subtask2() {  // He was died...
	...
}
void subtask3() {  // He was died, too...
	...
}

CQ-S00183 的 employ.cpp,为冲正解失败的勇士默哀:

C++
fv 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:

C++
#include<bits/stdc++.h>
using namespace std;
// wei ren min fu wu

CQ-S00279:

C++
//忘了最小生成树怎么打了 怎么办......
//完蛋了www,唯有的48分被吃了

CQ-S00356 的 club.cpp:

C++
/*#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,我也不知道为什么要把上面的代码又粘一遍:

C++
/*#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,这是第三遍了!

C++
/*#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:

C++
/*
啊?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,诈骗中:

C++
//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:

C++
/*
//freopen
//froepen
//fropen
//fopen
//freopen("employ.in", "w", stdin);
//freopen("employ.in", "r", stdout);
//freopen("employ.out", "r", stdin);
*/

CQ-S00614:

C++
//freopen
//炸完了

CQ-S00622(重点是函数名):

C++
int 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:

C++
/*
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 orzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorz
slove
cin<<
cout>>
(此处省略 50 行 114514 和 1919810)
*/

CQ-S00681:

C++
signed 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 的考场游记。希望你考了 380380。

C++
/*
//freopen();
考前 13:50
众所周知,考前__一发,能考 380,希望有用。
14:30
开考了,先吃块大白兔奶糖补充营养
16:17
妈呀,前两题没思路,倒是把第三题(可能)写出来了
拿 AC 自动机做的,最后一个样例跑了 0.3 秒,但是感觉可能被卡,但估计不太好构造
now:0+0+100+0=100
16:39
把 T2 暴力加部分分拿到了。
now:0+48+100+0=148
16:52
突然发现之前把 employ 都拼成了 empoly(
17:06
写了个状压 dp,把 T4 部分分拿了。
感觉今年 T4 比去年友好,至少能读懂了(
now:0+48+100+20=168
17:13
机房突然熄灯,不知道在干啥,熄灯10s后就亮了。
27:21
把 T1 能想到的分全拿了。
now:70+48+100+20=238

欸,桑丘,我有了个绝妙的注意,如果在最后发癫是不是就可以上迷惑行为大赏了!
...
...
...
...
...
我明白了,我不是 dante。
不是 steve。
也不是 kards 玩家(笑点解析:这人玩过线上kards但一般只玩线下版,所以没进军官)。
我是......XDFZ OI 的最后一颗子弹!
天闹黑卡,板载!

键盘挥打
踏入调试
调!
颓废已经结束
随心所欲的写题吧
将由我来调试!
过编吧!过拍吧!AC吧!
全体OIER,回应于我!
自我毁灭的编写!
*/

原文