跳到正文

休闲·娱乐

GD CSP2025 迷惑行为大赏

Shellchen约 20 分钟
原文

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

文章信息与版本

文章信息

发布
2025年11月6日
收录
2025年12月12日
更新
2026年11月9日
篇幅
约 20 分钟

版本

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

注:如果不想上电视可以私信我删除。

今年第一次做,使用 VSCode 查找。

本场比赛所有代码中有超过 2000020000 个 //freopen。

为什么呢?因为 GD-J02081 的 number.cpp 里面有 131467131467 个 //freopen。此人代码 1159KB,默哀。

为了保证准确性,我删去了他代码里面的所有 //freopen。之后有:

  • 超过 2000020000 个 freopen。
  • 364364 个文件中有 13111311 个 //freopen,没数有几个诈骗犯。其中 GD-J00631 四题均是注释 freopen,默哀。
  • 28792879 个文件中有 28672867 个 #define int long long,其中我贡献了 88 个。
  • 87208720 个文件中有 1662716627 个 while。
  • 55055505 个文件中有 64436443 个 struct。
  • 9393 个文件中有 120120 个 luogu。
  • 191191 个文件中有 540540 个 CCF。

有 5151 个人留下了洛谷账号且代码中有关键词 luogu。

盒
代码
GD-J00020=1357680
GD-J00054=GD-S00057=845367
GD-J00137=GD-S00139=1422155
GD-J00162=GD-S00162=944843
GD-J00448=GD-S00410=974005
GD-J00724=GD-S00661=1346586
GD-J00729=1439381
GD-J00806=1485346
GD-J00810=1340395
GD-J00877=840762
GD-J01018=1653348
GD-J01166=1384934
GD-J01215=934048
GD-J01369=GD-S01234=1379404
GD-J01480=1047636
GD-J01935=513746
GD-J02047=1129279
GD-J02082=883803
GD-J02094=723036
GD-J02332=1373205
GD-J02579=752017
GD-J02585=1833687
GD-J02710=1062508
GD-J02815=993044
GD-J02890=1771759
GD-J03241=1076971
GD-J03296=1236589
GD-J03386=862989
GD-J03498=GD-S03177=1145044
GD-J03670=980618
GD-J03876=1246673
GD-J03970=1056231
GD-J04004=1057454
GD-J04012=1049103
GD-S00028=642434
GD-S00195=818165
GD-S01159=807846
GD-S01165=1058410
GD-S01573=1416713
GD-S01643=608273
GD-S01697=578398
GD-S01711=775951
GD-S01738=513746
GD-S01869=723036
GD-S02121=1530321
GD-S02151=1401495
GD-S02772=215572
GD-S02776=1611353
GD-S02984=1320771
GD-S03311=676569
GD-S03679=1178681

其实还不止,因为我是按搜索 luogu 关键词来找的。我也留了洛谷账号(可以找找我喵!)

下面是正式部分。

AKIOI 合集
  • 1212 个文件中有 2525 个 akioi。
GD-J01099 & GD-S00991 所有八题(外加抽象缺省源)
代码
#\
i\
n\
c\
l\
u\
d\
e\
<\
b\
i\
t\
s\
/\
s\
t\
d\
c\
+\
+\
.\
h\
>
#\
d\
e\
f\
i\
n\
e\
 \
a\
k\
i\
o\
i\
 \
r\
e\
t\
u\
r\
n\
 \
0

注:标题中的两者为同一人。此人写的所有 return 0 都是 akioi。

GD-J02706 seat.cpp(外加扣税国王)
代码
/*
听好了,出体人。
等我AKIOI,我会制定新的考场规则。
题目难度不按主观升序要扣税
出大模拟要扣税
卡常数更要扣税
构造题不给大样例要扣税
大样例用脚造要扣税
出超纲题要扣税 
*/
GD-S01911 replace.cpp
代码
/*
2 1
iakioi ioiaki
akio oiak
iakioi ioiaki
*/
GD-S02379 replace.cpp
C++
int stoakioiorz=n+Q;
for(int i=1;i<=stoakioiorz;i++) cin>>s[i]>>t[i],chk(s[i],t[i],v[i],L[i],R[i]),p[i]=q[i]=i;
......
int ak=1919810,ioi=114514,bx=33550336;
return (ak-ioi)/bx/bx/bx;
暴戾语言合集
  • 2828 个文件中有 4747 个 fuck。
  • 55 个文件中有 33 个 shit。
  • 33 个文件中有 22 个 nmsl。
GD-J00178 polygon.cpp(外加代码长度 110KB & cout<<<1)
C++
#include <bits/stdc++.h>
using namespace std;
#define explode return
#define fuck 1
int a[5005],n,cnt;
int main(){
	freopen("polygon.in","r",stdin);
	freopen("polygon.out","w",stdout);
	while(1){
		cnt++;
		if(cnt=1145414154) break;
	}
	while(1){
		cnt++;
		if(cnt=1145414154) break;
	}
	......
	while(1){
		cnt++;
		if(cnt=1145414154) break;
	}
	while(1){
		cnt++;
		if(cnt=1145414154) break;
	}
	cout<<<1; 
	while(1); 
	explode fuck;
}
GD-J00759 seat.cpp & xor.cpp & polygon.cpp
代码
//fuck you,CCF
GD-J00784 所有四题
C++
void fuck(){
	freopen("number.in","r",stdin);
	freopen("number.out","w",stdout);
	return;
}

其它题目对应替换文操。

GD-J01330 seat.cpp
代码
//cout<<"fuck ccf\n";
GD-J01374 polygon.cpp
代码
/*这题我大概能拿到40左右的部分分,这会总分就到了240,第三题一点都不想做 
时间不到10点,充足的很 
这题我有另一个疯狂的想法 
如果先全排列,然后去判断每一种排列符不符合要求即可 
但我不会全排列的写法 
全排列大概是O(n^3)吧,也比我这个2^n好很多了(应该大概是n^3吧?) 
第一题更是sort一下就过了 
第二题打个简单模拟也能满,数据范围摆在那里了 
第三题不会 
话说这次考试竟然一道多测都没有
CCF换出题人了?
感觉今年的难度比去年低一些,或许240还不够2=
希望大家都考的比我好 
也希望能看到迷惑行为大赏里面有我 
不过我可能很少会上luogu了 
学c++大概5年了,考了大概3年还是4年,s组每年都靠运进去,但今年复习s组却差了2分晋级 
明年我就高中了,要开始复习whk了,希望今年不留什么遗憾吧 
by zh_iieee
还有fuck CCF 也不怕这个禁赛3年了 

10:30
做了一下第三题,不会 
说不定交上去能拿10分 
就这样吧,今年的csp就到这里吧,唯一能算的遗憾是忘记了全排列怎么写 
明年再见,如果我还考的话,我会在不会的题里面写while(1) 
祝各位来年好运 
*/ 
GD-J01630 xor.cpp
C++
bool cmp(ad fuck,ad ccf){
	return fuck.l>ccf.l;
}
GD-J01749 polygon.cpp
C++
#include<bits/stdc++.h>
using namespace std;
int n,ans;
int ccf[5010],num[5010],mx=-114514,vis[5010];
void ccfnmsl(int x,int y){
	if(y==x){
		int fl=0;
		for(int i=1;i<=x;i++)fl+=num[i];
		if(fl>=mx*2)ans++;
	}
	for(int i=y;i<=x;i++){
		if(vis[ccf[i]]==0){
			vis[ccf[i]]=1;
			num[i]=ccf[i];
			mx=max(mx,num[i]);
			vis[ccf[i]]=0;
		}
	}	
}
int main(){
	freopen("polygon.in","r",stdin);
	freopen("polygon.out","w",stdout);
	cin>>n;
	for(int i=1;i<=n;i++)cin>>ccf[i];
	for(int i=3;i<=n;i++){
		ccfnmsl(i,0);
	}
	cout<<ans;
	return 0;
} 

(以上为代码全文。)

GD-J02081 seat.cpp & xor.cpp(外加字符画)

seat.cpp:

代码
//have you guys found that if you look at the squares in T2 you can find gray dots?	
//AWA
//a bit shit,but finish in 20min

xor.cpp:

C++
for(int j = 1;j <= n;j ++){//fuck it p can start from any place that takes 35 
......
/*
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!      !!!! !!!! !!!!!     !!! !!   !!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!! !!!!!!!!! !!!! !!!! !!!!!!!! !  !!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!      !!!! !!!! !!!! !!!!!!!!   !!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!! !!!!!!!!! !!!! !!!! !!!!!!!! !   !!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!! !!!!!!!!!!    !!!!!!     !!! !!!  !!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!     !!!!!!!     !!!!!!      !!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!! !!!!!!!!!!! !!!!!!!!!!!! !!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!! !!!!!!!!!!! !!!!!!!!!!!!     !!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!! !!!!!!!!!!! !!!!!!!!!!!! !!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!      !!!!!!      !!!!!! !!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHY IS THIS THING ALWAYS LESS THAN THE RIGHT ANS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*/

这一堆感叹号什么意思?粘贴到 IDE 里面就能看到字符画。

GD-J02496 polygon.cpp
C++
#include <bits/stdc++.h>
using namespace std;

int main() {
	freopen("polygon.in", "r", stdin);
	freopen("polygon.in", "w", stdout);
	// please give me 100 points :(;
	// who made this shit question
	// i wanna kill you
	// totally a shit question
	// holy shit
	// it's really hard
	// why
	// nooooooo
	// fu** the polygon
	// fu**
	// fu**
	// fu** your ***
	int n;
	cin >> n;
	for(int i=1;i<=n;i++) {
		int tmp;
		cin >> tmp;
	}
	cout << 0;
	return 0;
}

(以上为代码全文。)

GD-J02677 polygon.cpp
代码
#if IloveCCF==1
	while(1) cout<<"CCF I love(fuck) you.\n";
#endif
#if you_have_no_egg==1
	while(1) cout<<"You have on egg.\n"; 
#endif
GD-J02832 seat.cpp & polygon.cpp

seat.cpp:

C++
#include<bits/stdc++.h>
#define ll long long
using namespace std;
ll n,m,c,r,i,j,pd,fuck,a[111],seat[11][11],step=1;
bool cmp(ll x,ll y){
	return x>y;
}
int main(){
	freopen("seat.in","r",stdin);
	freopen("seat.out","w",stdout);
	cin>>n>>m;
	for(i=1;i<=n*m;i++){
		cin>>a[i];
	}
	fuck=a[1];
	cin>>c>>r;
	sort(a+1,a+n*m+1,cmp);
	for(j=1;j<=m;j++){
		if(pd%2==0){
			for(i=1;i<=n;i++){
				seat[j][i]=a[step++];
			}
		}else{
			for(i=n;i;i--){
				seat[j][i]=a[step++];
			}
		}
		pd++;
	}
	for(i=1;i<=n;i++){
		for(j=1;j<=m;j++){
			if(seat[i][j]==fuck){
				cout<<i<<' '<<j;
				return 0;
			}
		}
	}
	return 0;
}

polygon.cpp:

C++
#include<bits/stdc++.h>
#define mn 5001
#define mod 998244353
using namespace std;
int n,a[mn],b[mn],m,i,step=3,ans,fuck;
int main(){
	freopen("polygon.in","r",stdin);
	freopen("polygon.out","w",stdout);
	cin>>n;
	for(i=1;i<=n;i++){
		cin>>a[i];
		cout<<a[i]<<' ';
		b[i]=a[i];
	}
	cout<<endl;
	for(i=1;i<=n;i++){
		a[i]+=a[i-1];
		b[i]=max(b[i],b[i-1]);
	}
	for(i=1;i<=n;i++){
		cout<<a[i]<<' '; 
	}
	cout<<endl;
	while(step<=n){
		fuck=0;
		for(i=step;i<=n;i++){
			if(a[i]-a[fuck]>2*b[i]){
				cout<<step<<' '<<a[i]-a[fuck]<<endl;
				ans++;
			}
			fuck++;
		}
		step++;
	}
	cout<<ans%mod;
	return 0;
}

(以上均为代码全文。)

GD-J03570 xor.cpp
C++
#include <bits/stdc++.h>
using namespace std;


int a[500001];
int main()
{
	freopen("xor.in","r",stdin);
	freopen("xor.out","w",stdout);
	int n,k;
	cin >> n >> k;
	for(int i=1;i<=n;i++) cin >> a[i];
	string x="I don't know what is it.Can you help me?";
	for(int i=1;i<=n;i++)
	{
		if(a[i]!=1 && n%2==0)
		{
			x="fuck.";
		}
		else if(a[i]!=1 && n%2!=0) x="what?What are you saying?";
	}
	cout << x;
	fclose(stdin);
	fclose(stdout);
	return 0;
}

(以上为代码全文。)

GD-J03614 所有四题
代码
//fucking CCF
GD-J03866 polygon.cpp
代码
//CCF nmsl
GD-S01608 road.cpp
代码
//cout << "Fucking v" << v << endl;
......
//cout << "fucking i" << i << endl; 
GD-S02631 club.cpp
代码
//I am so fuck!
GD-S02927 replace.cpp
代码
//cout<<"fuck!";
......
//if(x==0 and i==1) cout<<"fuck! "<<f<<endl;
GD-S03055 club.cpp
C++
bool tmp(clubnum fuck,clubnum CCF){
	if(fuck.a!=CCF.a)return fuck.a>CCF.a;
	else if(fuck.b!=CCF.b)return fuck.b>CCF.b;
	else return fuck.c>CCF.c;
}