跳到正文

休闲·娱乐

CSP-S 2025 GX 迷惑行为大赏

aeiouaoeiu约 95 分钟
原文

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

文章信息与版本

文章信息

发布
2025年11月7日
收录
2025年12月12日
更新
2026年10月31日
篇幅
约 95 分钟

版本

  1. v5当前
  2. v4
  3. v3
  4. v2
更早的 1 个版本
  1. v1

今年 CSP-S 2025 广西赛区,共有 ∼660\sim660 人参赛,其中提交文件的选手一共有 653653 位,选手们一共写出了 39843984 个 freopen,8787 个 //freopen,21512151 个 main,33 个 mian(),11 个 fuck,11 个 fking。

接下来是具体代码。

部分相似的代码会省略,仅举几个例子。

悔恨终生类

以下错误会使代码一定变为 00 分,请大家铭记在心。

首先是经典的 //freopen 环节!

  • 怎么连文件名都拼错了……
GX-S00091 club.cpp
C++
int main(){
    //freopen("clud.in","r",stdin);
    //freopen("clud.out","w",stdout);
    cin>>t;
  • 不仅 //freopen,还写错了文件名。
GX-S00434 road.cpp
C++
long long t,n,a[200000],b[200000],c[200000],ma=0,z[1000000],q=0,sum=0;
int main()
{
    //freopen("club.in","r",stdin);
    //freopen("club.out","w",stdout);
    cin>>t;
    for(int i=0; i<t; i++)
    {
  • 同上。
GX-S00513 employ.cpp
代码
}

} int main(){ freopen(“employ3.in”,“r”,stdin); //freopen(“employ.out”,“w”,stdout); cin>>n>>m; cin>>s;

这里列出剩下中招的选手,希望大家不要学习

当然这里有一些是删掉注释也加不了分的,但是大家还是不要让自己断绝这一点点希望。

  • GX-S00006:road.cpp、replace.cpp;
  • GX-S00008:club.cpp;
  • GX-S00024:club.cpp;
  • GX-S00081;
  • GX-S00205;
  • GX-S00348;
  • GX-S00391:club.cpp;
  • GX-S00419:employ.cpp;
  • GX-S00423:club.cpp;
  • GX-S00488:employ.cpp;
  • GX-S00489:road.cpp;
  • GX-S00497:club.cpp;
  • GX-S00512:road.cpp;
  • GX-S00525:club.cpp;
  • GX-S00548:replace.cpp、employ.cpp;
  • GX-S00578:club.cpp;
  • GX-S00604:employ.cpp;
  • GX-S00637:club.cpp;
  • GX-S00640:road.cpp;
  • GX-S00649:road.cpp。

除此之外,还有 freopen 缺失的。

  • 这名同学沉住气打了很长的表,但是他忘记 freopen *.out 了。
GX-S00086 employ.cpp
C++
#include<bits/stdc++.h>
#include<iostream>
using namespace std;
//ruguo ni chenbuchuqi nani jiuhui shibai.
int s[501];
int main()

{
	freopen("employ.in","r",stdin);
	freopen("employ.in","w",stdout);
	
	int yes=0;
	int los=0;
	int dag=0;//guomian zongrenshu 
	int n,m;//定义面试人数n 录取人数m
	cin>>n>>m; //输入n和m
	
	// m=0
	if(m==0)
	{
		cout<<"0"<<endl;
		return 0;
	}
	
	int s1;//定义难度字符串
	cin>>s1;//输入难度字符串
	for(int i=n;i>=1;i--)
	{
		s[i]=s1%10;
		s1/=10;
	}
	//存储难度值部分
	
	//m=n
	if(m==n)
	{
		for(int i=1;i<=n;i++)
		{
		if(s[i]==0) 
		{
			cout<<"0"<<endl;
			return 0;
		}
		}
		
			int a=1;
			for(int j=1;j<=n;j++) {a*=j;}
			cout<<a<<endl;
			return 0;
		
	}
	
	int c[n+1];
	for(int i=1;i<=n;i++)
	{
		cin>>c[i];
		//cout<<c[i]<<" ";
	}
	//存储耐心值部分
	//cout<<s[1]<<endl;
	
	//n=1
	if(n==1)
	{
		if(s[1]==1) 
		{
			cout<<"1"<<endl;
			return 0;
		}
		if(s[1]==0) 
		{
			cout<<"0"<<endl;
			return 0;
		}
	}
	
	//n=2
	if(n==2)
	{
		if(s[1]==1&&los<c[1]) yes++;
		else los++;
		if(s[2]==1&&los<c[2]) yes++;
		else los++;
		if(yes>=m) dag++;
		
		yes=0,los=0;
		if(s[1]==1&&los<c[2]) yes++;
		else los++;
		if(s[2]==1&&los<c[1]) yes++;
		else los++;
		if(yes>=m) dag++;
		
		cout<<dag;
	}
	
	//n=3
	if(n==3)
	{
		//123
		if(s[1]==1&&los<c[1]) yes++;
		else los++;
		if(s[2]==1&&los<c[2]) yes++;
		else los++;
		if(s[3]==1&&los<c[3]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//132
		if(s[1]==1&&los<c[1]) yes++;
		else los++;
		if(s[2]==1&&los<c[3]) yes++;
		else los++;
		if(s[3]==1&&los<c[2]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//213
		if(s[1]==1&&los<c[2]) yes++;
		else los++;
		if(s[2]==1&&los<c[1]) yes++;
		else los++;
		if(s[3]==1&&los<c[3]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//231
		if(s[1]==1&&los<c[2]) yes++;
		else los++;
		if(s[2]==1&&los<c[3]) yes++;
		else los++;
		if(s[3]==1&&los<c[1]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//312
		if(s[1]==1&&los<c[3]) yes++;
		else los++;
		if(s[2]==1&&los<c[1]) yes++;
		else los++;
		if(s[3]==1&&los<c[2]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//321
		if(s[1]==1&&los<c[3]) yes++;
		else los++;
		if(s[2]==1&&los<c[2]) yes++;
		else los++;
		if(s[3]==1&&los<c[1]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		cout<<dag<<endl;
	}
	
	//n=4
	if(n==4)
	{
		//1234
		if(s[1]==1&&los<c[1]) yes++;
		else los++;
		if(s[2]==1&&los<c[2]) yes++;
		else los++;
		if(s[3]==1&&los<c[3]) yes++;
		else los++;
		if(s[4]==1&&los<c[4]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//1243
		if(s[1]==1&&los<c[1]) yes++;
		else los++;
		if(s[2]==1&&los<c[2]) yes++;
		else los++;
		if(s[3]==1&&los<c[4]) yes++;
		else los++;
		if(s[4]==1&&los<c[3]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//1324
		if(s[1]==1&&los<c[1]) yes++;
		else los++;
		if(s[2]==1&&los<c[3]) yes++;
		else los++;
		if(s[3]==1&&los<c[2]) yes++;
		else los++;
		if(s[4]==1&&los<c[4]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//1342
		if(s[1]==1&&los<c[1]) yes++;
		else los++;
		if(s[2]==1&&los<c[3]) yes++;
		else los++;
		if(s[3]==1&&los<c[4]) yes++;
		else los++;
		if(s[4]==1&&los<c[2]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//1432
		if(s[1]==1&&los<c[1]) yes++;
		else los++;
		if(s[2]==1&&los<c[4]) yes++;
		else los++;
		if(s[3]==1&&los<c[3]) yes++;
		else los++;
		if(s[4]==1&&los<c[2]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//1423
		if(s[1]==1&&los<c[1]) yes++;
		else los++;
		if(s[2]==1&&los<c[4]) yes++;
		else los++;
		if(s[3]==1&&los<c[2]) yes++;
		else los++;
		if(s[4]==1&&los<c[3]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//2134
		if(s[1]==1&&los<c[2]) yes++;
		else los++;
		if(s[2]==1&&los<c[1]) yes++;
		else los++;
		if(s[3]==1&&los<c[3]) yes++;
		else los++;
		if(s[4]==1&&los<c[4]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//2143
		if(s[1]==1&&los<c[2]) yes++;
		else los++;
		if(s[2]==1&&los<c[1]) yes++;
		else los++;
		if(s[3]==1&&los<c[4]) yes++;
		else los++;
		if(s[4]==1&&los<c[3]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//2314
		if(s[1]==1&&los<c[2]) yes++;
		else los++;
		if(s[2]==1&&los<c[3]) yes++;
		else los++;
		if(s[3]==1&&los<c[1]) yes++;
		else los++;
		if(s[4]==1&&los<c[4]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//2341
		if(s[1]==1&&los<c[2]) yes++;
		else los++;
		if(s[2]==1&&los<c[3]) yes++;
		else los++;
		if(s[3]==1&&los<c[4]) yes++;
		else los++;
		if(s[4]==1&&los<c[1]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//2413
		if(s[1]==1&&los<c[2]) yes++;
		else los++;
		if(s[2]==1&&los<c[4]) yes++;
		else los++;
		if(s[3]==1&&los<c[1]) yes++;
		else los++;
		if(s[4]==1&&los<c[3]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//2431
		if(s[1]==1&&los<c[2]) yes++;
		else los++;
		if(s[2]==1&&los<c[4]) yes++;
		else los++;
		if(s[3]==1&&los<c[3]) yes++;
		else los++;
		if(s[4]==1&&los<c[1]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//3124
		if(s[1]==1&&los<c[3]) yes++;
		else los++;
		if(s[2]==1&&los<c[1]) yes++;
		else los++;
		if(s[3]==1&&los<c[2]) yes++;
		else los++;
		if(s[4]==1&&los<c[4]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//3142
		if(s[1]==1&&los<c[3]) yes++;
		else los++;
		if(s[2]==1&&los<c[1]) yes++;
		else los++;
		if(s[3]==1&&los<c[4]) yes++;
		else los++;
		if(s[4]==1&&los<c[2]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//3214
		if(s[1]==1&&los<c[3]) yes++;
		else los++;
		if(s[2]==1&&los<c[2]) yes++;
		else los++;
		if(s[3]==1&&los<c[1]) yes++;
		else los++;
		if(s[4]==1&&los<c[4]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//3241
		if(s[1]==1&&los<c[3]) yes++;
		else los++;
		if(s[2]==1&&los<c[2]) yes++;
		else los++;
		if(s[3]==1&&los<c[4]) yes++;
		else los++;
		if(s[4]==1&&los<c[1]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//3412
		if(s[1]==1&&los<c[3]) yes++;
		else los++;
		if(s[2]==1&&los<c[4]) yes++;
		else los++;
		if(s[3]==1&&los<c[1]) yes++;
		else los++;
		if(s[4]==1&&los<c[2]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//3421
		if(s[1]==1&&los<c[3]) yes++;
		else los++;
		if(s[2]==1&&los<c[4]) yes++;
		else los++;
		if(s[3]==1&&los<c[2]) yes++;
		else los++;
		if(s[4]==1&&los<c[1]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//4123
		if(s[1]==1&&los<c[4]) yes++;
		else los++;
		if(s[2]==1&&los<c[1]) yes++;
		else los++;
		if(s[3]==1&&los<c[2]) yes++;
		else los++;
		if(s[4]==1&&los<c[3]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//4132
		if(s[1]==1&&los<c[4]) yes++;
		else los++;
		if(s[2]==1&&los<c[1]) yes++;
		else los++;
		if(s[3]==1&&los<c[3]) yes++;
		else los++;
		if(s[4]==1&&los<c[2]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//4213
		if(s[1]==1&&los<c[4]) yes++;
		else los++;
		if(s[2]==1&&los<c[2]) yes++;
		else los++;
		if(s[3]==1&&los<c[1]) yes++;
		else los++;
		if(s[4]==1&&los<c[3]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//4231
		if(s[1]==1&&los<c[4]) yes++;
		else los++;
		if(s[2]==1&&los<c[2]) yes++;
		else los++;
		if(s[3]==1&&los<c[3]) yes++;
		else los++;
		if(s[4]==1&&los<c[1]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//4312
		if(s[1]==1&&los<c[4]) yes++;
		else los++;
		if(s[2]==1&&los<c[3]) yes++;
		else los++;
		if(s[3]==1&&los<c[1]) yes++;
		else los++;
		if(s[4]==1&&los<c[2]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
		//4321
		if(s[1]==1&&los<c[4]) yes++;
		else los++;
		if(s[2]==1&&los<c[3]) yes++;
		else los++;
		if(s[3]==1&&los<c[2]) yes++;
		else los++;
		if(s[4]==1&&los<c[1]) yes++;
		else los++;
		if(yes>=m) dag++;
		yes=0,los=0;
		
	}
	return 0;
}
  • 这名同学把所有的 freopen *.out 都放在了代码结尾。同时除了 employ.cpp,他的所有代码空间都爆炸了。
GX-S00210
C++
#include<bits/stdc++.h>
#include<istream>
using namespace std;
int t,n[100005],sum[100005][100005],adj[100005],my[100005][100005];
int main(){
    freopen("club.in","r",stdin);
    cin>>t;
    for(int i=1;i<=t;i++){
        cin>>n[i];
        for(int j=1;j<=n[i];j++){
            for(int l=1;l<=3;l++){
                cin>>my[j][l];
                if(j!=1&&l!=1){
                    if(my[j][l]>my[j-1][l-1]){
                        my[j][l]=sum[i][j];
                        adj[i]+=sum[i][l];
                        adj[i]=adj[i]+sum[i][j];
                    }
                }
            }
        }
        cout<<adj[i];
    }
    freopen("club.out","w",stdout);
    return 0;
}
其他中招的
  • GX-S00366,除了 club.cpp。
  • GX-S00496,一个文件都没写。
  • GX-S00512,employ.cpp。
  • GX-S00580,employ.cpp。

接下来是一些 freopen 内部的错误。

  • 直接拷过来忘改了。
GX-S00024 employ.cpp
C++
using namespace std;
int main(){
    freopen("replace.in","r",stdin);
    freopen("replace.out","w",stdout);
  • 怎么还把目录放上来了。
GX-S00071

四份代码都是这么写的。

C++
int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0),cout.tie(0);
    freopen("//home//noilinux//club//club.in","r",stdin);
    freopen("//home//noilinux//club//club.out","w",stdout);
    cin>>n;//表示测试数据组数
    for(int u=1;u<=n;u++){
  • .in 对了,.out 错了。
GX-S00008 road.cpp
C++
int main()
{
    freopen("road.in","r",stdin);
    freopen("club.out","w",stdout);
    int n,m,k,h=0;
  • 滚木。
GX-S00009 road.cpp
C++
using namespace std;
int main(){
    freopen("","r",stdin);
    freopen("","w",stdout);
    int a[2] = {2,3};
    sort(a[0],a[0]+2);
  • 测大样例忘改回来了。这个真的丢了 1515 分。
GX-S00130 replace
C++
int ans=0;
int main()
{
   freopen("replace2.in","r",stdin);
   freopen("replace.out","w",stdout);
   scanf("%d%d",&n,&q);
   getchar();
  • 从 .ans 读入是什么,还有这个 it 是什么。
GX-S00346
C++
{
	mement(a,0,sizeof());
int main()
{
    freopen("club.ans","r",stdin);
    freopen("club.in","it",stdout);
    int n;
    cin>>t;
    while(t--)
    {
  • 字符串少写一个双引号,这是怎么做到的。
GX-S00514 employ.cpp
C++
#include<bits/stdc++.h>
using namespace std;
int main()
{
	freopen("employ.in,"r",stdin);
	freopen("employ,out","w",stdout);
	cout<<0;
}
  • 后缀怎么消失了。
GX-S00578 road.cpp
C++
using ll = long long;

int main(){
    freopen("road.in","r",stdin);
    freopen("road","w",stdout);
   int a,b,c,d,e,f;
    cin >> a>>b>>c>>d>>e>>f;
    if(a=4){
    cout << "13";
  • .ans 尚且可以理解,但是这个 .write 是不是有点太离谱了。以及空间还爆炸了。
GX-S00272 club.cpp

int main(){ freopen (“club.in”,“w”,stdin); freopen(“club.write”,“r”,stdout); int t,n,a[10000000][10000000],b[10000000],c[1000000],d[10000000],m; int b1,c1,d1,ans ,ans2,ans3; cin>>t; for(int p=1;p<=t;p++){ cin>>n; m=n/2;

  • 文件名打错了。
GX-S00489 employ.cpp
C++
#include<bits/stdc++.h>
using namespace std;
int main(){
	freopen("enpluy.in","r",stdin);
	freopen("empluy.out","w",stdout);
	int x,y;
	string s;
	cin>>x>>y>>s;
	for(int i=1;i<=x;i++){
		int j;
		cin>>j;}
	cout<<"0";
	return 0;}
  • employ.in,但是点没了。
GX-S00660 employ.cpp
C++
#include<bits/stdc++.h>
using namespace std;
int n,m;
string s;
int a[10005];
int main()
{
	freopen("employin","r",stdin);
	freopen("employ.out","w",stdout);
	cin>>n>>m;
	cin>>s;
	for(int i=1;i<=n;i++)cin>>a[i];
	cout<<0;
	return 0;
}
  • in 和 out 消失了。
GX-S00011 employ.cpp
C++
#include<bits/stdc++.h>;
using namespace std;
int main{
    freopen("employ.in","r","std");
    freopen("employ.out","w","std");
  • 这个 siad.in 又是什么东西。
GX-S00216
C++


#include <stdio.h>
using namespace std;
int main(int argc, char **argv)
{
	freopen("club.in" ,"r","siad.in ");
	freopen("club.out" ,"w","siad.out ");
	int a;
	int n;
	int t;
	int m;
	cin>>n;
	for(int i=0;i<=n;i++){
		for(int j=0;j<=3;;j++){
			if(i<=n/2){
				a+=i;
			}
		}
	
	}
	
	
	return 0;

其他中招的同学
  • GX-S00141:club.cpp;
  • GX-S00204;
  • GX-S00274;
  • GX-S00278;
  • GX-S00297;
  • GX-S00344:employ.cpp;
  • GX-S00350;
  • GX-S00351:employ.cpp;
  • GX-S00517:road.cpp;
  • GX-S00537:employ.cpp;
  • GX-S00543:replace.cpp;
  • GX-S00577:road.cpp;
  • GX-S00580:club.cpp、road.cpp;
  • GX-S00583:club.cpp;
  • GX-S00589:road.cpp;
  • GX-S00597:replace.cpp;
  • GX-S00598:empoly.cpp;
  • GX-S00619:除了 replace.cpp;
  • GX-S00621;
  • GX-S00635:road.cpp;
  • GX-S00640:replace.cpp。

接下来是源文件名以及文件夹出错的。重复出现的就不放了。

  • 这位同学提交的是 down 文件夹。
GX-S00346
代码
├─GX-S00346
│  └─down
│      ├─club
│      │      club.cpp
│      │      
│      ├─employ
│      │      employ.cpp
│      │      
│      ├─replace
│      │      replace.cpp
│      │      
│      └─road
│              road.cpp
│              
  • 这么喜欢 poly。
GX-S00598
代码
├─GX-S00598
│  ├─club
│  │      club.cpp
│  │      
│  └─employ
│          empoly.cpp
  • 类似的。
GX-S00337
代码
├─GX-S00337
│  ├─club
│  │      clud.cpp
│  │      
│  ├─employ
│  │      employ.cpp
│  │      
│  ├─replace
│  │      replace.cpp
│  │      
│  └─road
│          road.cpp
  • 怎么做到把文件夹命名为 .cpp 的。
GX-S00428
代码
├─GX-S00428
│  └─club.cpp
│          club.cpp
  • .c++ 是什么。
GX-S00426
代码
├─GX-S00426
│  ├─club
│  │      club.c++
│  │      
│  └─road
│          club.out
│          road
│          road.c++
│          road.o
│          road1.ans
│          road1.in
│          road2.ans
│          road2.in
│          road3.ans
│          road3.in
│          road4.ans
│          road4.in
  • .c++ 尚且还能理解,但是 .CCP 是什么。
GX-S00063
代码
├─GX-S00063
│  ├─club
│  │      club.CCP
│  │      
│  ├─employ
│  │      employ.CCP
│  │      
│  ├─replace
│  │      replace.CCP
│  │      
│  └─road
│          replace.CCP
  • 怎么还有一个后缀名都没有的???
GX-S00365
代码
├─GX-S00365
│  ├─club
│  │      club
│  │      
│  ├─employ
│  │      employ
│  │      
│  ├─replace
│  │      replace
│  │      
│  └─road
│          road
  • 忘记重命名了。
GX-S00390
代码
├─GX-S00390
│  ├─club
│  │      club.cpp
│  │      
│  ├─employ
│  │      Untitled7
│  │      
│  ├─replace
│  └─road
  • 我已经分不清这是故意写错还是什么了。
GX-S00651
代码
├─GX-S00651
│  ├─club
│  │      club.cpp
│  │      
│  ├─employ
│  │      empioy.cpp
│  │      
│  ├─replace
│  │      replace.cpp
│  │      
│  └─road
│          road3.cpp
  • 怎么还有交 J 组代码的。
GX-S00118
代码
├─GX-S00118
│  ├─number
│  │      number.cpp
│  │      
│  ├─polygon
│  │      polygon.cpp
│  │      
│  ├─seat
│  │      seat.cpp
│  │      
│  └─xor
│          xor.cpp

接下来是各种 CE。

  • using namepsace 还能粘一块的。
GX-S00651
C++
#include <stdio.h>
usingnamespace std;
int main(int argc, char **argv){
	
	
	
	
	
	
	
	
	
	
	
	
	
	return 0;
}
  • 写 Python 写多了。
GX-S00011 employ.cpp
C++
#include<bits/stdc++.h>;
using namespace std;
int main{
    freopen("employ.in","r","std");
    freopen("employ.out","w","std");
    int n;
    p = [];
    return 0;
}
  • froepen 单独写外面,using namespace;,还有其他的问题。

  • 同时 GX-S00616 也犯了同样的错误。

GX-S00076
C++
#include<bits/stdc++.h>
using namespace;
freopen("club.in","r",stdin);
freopen("club.out","w",stdout);
int m,t,n,a[3][100003],b[200003],n[3],l,min,h,d;
double an;
fool f;
int main(){
	cin>>t;
	for(;t>0;t--){
		cin>>n;
		u=n;
		n/=2;
		for(int m=u;m>0;m--){
			cin>>a[0][m]>>a[1][m]>>a[2][m];
			int z=max(a[0][m],a[1][m],a[2][m]);
			if(f){
				if(a[l][m]!=z) an+=z
				else{
					int p=max(a[h][m],a[d][m])
					if(min>z) an+=p;
					else{
						p=z-p;
						an=an+z-min;
						a[l][p]++;
						for(int i=0;i<p,i++){
							if(a[l][i]) min=i;
							break;
						}
					}
				}
			}
			else {
				an+=z;
				if(a[0][m]==z){
					an+=a[0][m];
					n[0]++;
					if(n[0]==n){
						f=ture;
						l=0;
						h=1;
						d=2;
					}
				}
				else if(a[1][m]==z){
					an+=a[1][m];
					n[1]++;
					if(n[1]==n){
						f=ture;
						l=1;
						h=0;
						d=2;
					}
				}
				else{
					an+=a[2][m];
					n[2]++;
					if(n[2]==n){
						f=ture;
						l=2;
						h=1;
						d=0;
					}
				}
			if(f){
				for(int i=u;i>=n;i--){
					if(max(a[l][i]==max(a[l][i],a[h][i],a[d][i])){
						b[a[l][i]-a[h][i]]++;
						b[a[l][i]-a[d][i]]++;
					}
				}
				for(int i=0;i<2000000;i++){
					if(b[i]){
						min=b[i];
						break;
					}
				}
			}
			}
		}
		cout<<an;
	}
}

注意到这里花括号还没有匹配。

  • 这个是不是也是 Python 写多了。
GX-S00281 club.cpp
C++
double m;
int a,b,c;
int x=0,y[5]=[0,0,0,0,0];
int main()
{cin>>n;
  • 唐突出现的下划线。
GX-S00363 replace.cpp
C++
#include <bits/stdc++.h>
using namespace std;

int main() {
	freopen("replace.in", "r", stdin);
	freopen("replace.out", "w", stdout);
	return 0;_
}
  • reopen。
GX-S00482 employ.cpp
C++
#include<bits/stdc++.h>
using namespace std;
string s;
int n,m,a[510],f,ans;
int main(){
    freopen("employ.in","r",stdin);
    reopen("employ.out","w",stdout);
    cin>>n>>m;
    cin>>s;
    for(int i=1;i<=n;i++){
        cin>>a[i];
        if(a[i]>0) f++;
    }
    for(int i=1;i<=n;i++){
        ans+=i;
    }
    cout<<ans%998244353;
    return 0;
}
  • stdin 当 freopen 用。
GX-S00342
C++
		}
	}
}
int main(){
	stdin(club.in,'w',stdin);
	stdout(club.out,'r',stdout);
	cin>>t;
	int g[t],y=0;
	for(int i=0;i<t;i++){
		cin>>n;
  • 2n。
GX-S00512 employ.cpp
C++
#include <iostream>
using namespace std;
int main(){
    int n,m,s;
    cin>>n>>m;
    for(int i=0;i<2n;i++){
        cin>>s;
    }
    cout<<'2';
    return 0;
}
  • 怎么做到把 "*.in" 和 "r" 粘一起的。
GX-S00568
C++
int t,n;
int main()
{
    freopen("club.in""r",stdin);
    freopen("club.out""w",stdout);

    cin>>t;
  • 数组大小 1e9,经测试不能使用浮点数作数组大小。
GX-S00574 road.cpp
C++
#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("road.in","r",stdin);
    freopen("road.out","w",stdout);
    int m,n,k;
    int u[n],v[n],w[1e9];
    cin>>n>>m>>k;
    for(int i=0;i<m;i++){
        cin>>u[i]>>v[i]>>w[i];
    }
    return 0;
}
  • dits/stdc++.h。
GX-S00140
C++
#include<dits/stdc++.h>
using namespace std:
int main(){
    freopen(club.in,r,stdin)
    freopen(club.out,w,stdout)
    int a,b;
    cin>>a>>b;
    cout<<a<<b;
    return 0;
}
  • continue; 后面怎么有个数字。
GX-S00582
C++
		}
		if (zero){
			sort (a+1,a+1+n);
			for (int i=n;i>n/2;i--) ans+=a[i];
			cout << ans<< endl;
			continue;4
		}
		else {
			ans=0;
			for(int i=1;i<=n;i++) ans+=max(max(a[i],b[i]),c[i]);
			cout << ans<< endl;
			
	}
	return 0;
}

接下来是 MLE 的,不知道为什么那么多人。

MLE
  • GX-S00046:club.cpp;
  • GX-S00122;
  • GX-S00210;
  • GX-S00217;
  • GX-S00376:club.cpp、road.cpp;
  • GX-S00383:road.cpp;
  • GX-S00418:road.cpp;
  • GX-S00432:road.cpp;
  • GX-S00545:road.cpp;
  • GX-S00566:road.cpp;
  • GX-S00659:club.cpp。

自我介绍类

下面是各种各样的自我介绍。

  • gaogao05:先使用 //freopen 勾引,然后再自我介绍。
GX-S00606 employ.cpp
C++
    for(int i=1;i<=n;i++){
        cin>>c[i];
    }
    //freopen(".in","r",stdin);
    //freopen(".out","w",stdout);
    dfs(0,0);
    cout<<ans;
    return 0;
}
//freopen stwout Nevergonnagive you up
//my luogu name is gaogao05.
  • JadeFox2012。
GX-00019
C++
//my names in Luogu is JadeFox2012
  • Chengsinuo。
GX-S00371
C++
/*
CSP-S 2025
Chengsinuo
GX-S00371
T1 club.cpp
*/
  • Otaku。
GX-S00424 club.cpp
C++
constexpr int N = 1e5 + 514;

namespace Otaku {
    int n, ans, cnt;
    int A, B, C, val[N][4];
    int vis[N];
  • anbeniya。
GX-S00212 club.cpp
C++
struct anbeniya{
    int mx,se,ed;
    int s1,s2,s3;
    int sum;
}awa[maxn];

bool cmp1(anbeniya x,anbeniya y){
    if(x.mx==y.mx){
        if(x.se==y.se) return x.ed>y.ed;
        else return x.se>y.se;
    }
    else return x.mx>y.mx;
}
  • Birds_int_he_sky。
GX-S00613 club.cpp
C++
 * Luogu UID:819326
 * 2025/11/01
  • CHmobei123。
GX-S00631 road.cpp
C++
    if(n==0&&m==0&&k==0)
    {
        cout<<8745789342875784592347532<<"ejhfojkhfasjhfij4ihjmieuchg9wuhgkekejncm9qghnv5uq7 h84vm4uiowhiot ht9wyt9whtowhtow ";
    }
    if(PCL[1]==10101001)
    {
        cout<<"Minecraft is a good game.First the stranger is 'Hypixel',the IPv4 is 'Hypixel.net',but Hypixel is need to pay 89 dolor to the minecraft.net to shopping.It is so difficult "<<endl;
        cout<<"So a China employ pay the 20000000 dolor to shop the China minecraft.2020 the employ creative 'bujidao',it a good play game the 'bujidao'IPv4 is 'bujidao.net'"<<endl;
        cout<<"All in all,minecraft lancher is so difficult,so the longtengmaoyue creative Plain Craft Lancher it name PCL so cool!";
    }
    if(PCL[n]==2009)
    {
        cout<<"Oh you maybe search a egg!";
        cout<<endl<<"Minecraft was creat 2009.The creater is Norch and MoJang.MoJang is more people";
        cout<<endl<<"All in all,I like minecraft.I like PCL.I like life.";
    }
    if(PCL[n-1]==1012)
    {
        cout<<"lalala wo shi cai dan wo xi huan wan MC wo MC de zheng ban zhang hao ming cheng jiao CHmobei123 duan kou hao shi jp.frp:16121,wo zui jing xi huan wan chun sheng cun dang ran you shi hou wo hui wan Hypixel you shi wan 2b2t.org huo zhe 2b2t.xin yi qi wan ma?ovo";
    }
    if(w==1)
    {
        cout<<"heirjowhgi435uh8i45h43u2hgiou4rh3iogh29uhg9803h49tg8j95ht9h25g795f93fh8fh823hfiuo2hjnregnifoi5ghio5uhoi24uhgu5ghgo2ihg2ui5hgi4u5";
    }
    if(w==84)
    {
        cout<<54188;
    }
    if(w==78)
    {
        cout<<18813818878;
    }
    if(w==2009)
    {
        cout<<"ni zhi dao ma an zhu w+Ctrl ke yi ji pao dan shi wo xi guan yong w+r lai kong zhi ji pao";
        cout<<"lalalalalalalala kulikulikulikuli lalalalalalalala yiqinahancangtiandadi zhejiushiwomendekuli jishudingjiandekuli";
        cout<<"huilaibaminishijie wozuijiaoaodexinyang lilizaimudekaka yanleimomingzailiutang yixijidehuaxiaolou haiyoukeaidenini badirendoudatui wandaotongxiaoyebulei";
    }
  • Ff472130。
GX-S00318
C++
#define qwq Ff472130

心路历程&整活&各种奇奇怪怪的行为类

  • qwq。
GX-S00271 road.cpp
C++
    cout <<ans;
    //solution1();
    //qwq
    return 0;
}
  • 对 CCF 求情以得到 100100 分;对 NOIP 的渴望;不可以总司令能在出现一次吗?
GX-00019
C++
//I Love CCF.I Want 100pts in this problem!

//I only have 172pts,can i go to NOIP(sad)?i want to go it!
//bu ke yi zong si ling neng zai chu xian yi ci ma?
  • 乐 →\to 不乐。
GX-00016
代码
File: D:\22112\CSP-S2025 GX\GX-S00016\club\club.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00016\club\club.cpp
------------------------------------------
Single Comments:
  [Line 3]: // Love Try My Best

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00016\employ\employ.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00016\employ\employ.cpp
------------------------------------------
Single Comments:
  [Line 3]: // I'M NOOB

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00016\replace\replace.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00016\replace\replace.cpp
------------------------------------------
Single Comments:
  [Line 3]: // ICANTDOTHAT

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00016\road\road.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00016\road\road.cpp
------------------------------------------
Single Comments:
  [Line 3]: // EZ NOOB
  • 最用心写的一个、最用心写的第二个、少羽牛逼,还有一个没读懂。
GX-S00135
C++
==========================================
File: D:\22112\CSP-S2025 GX\GX-S00135\club\club.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00135\club\club.cpp
------------------------------------------
Single Comments:
  [Line 36]: //        for(int i=1;i<=n;i++)
  [Line 37]: //        {
  [Line 38]: //            cout<<st[i].a[1]<<st[i].a[2]<<st[i].a[3]<<endl;
  [Line 39]: //        }
  [Line 51]: //            cout<<st[i].b[bj]<<" "<<bj<<"  "<<sum<<endl;
  [Line 56]: //                cout<<st[i].b[bj]<<" "<<bj<<"  "<<sum<<endl;
  [Line 57]: //                    for(int j=1;j<=3;j++) cout<<cnt[j]<<" ";
  [Line 58]: //                    cout<<endl;
  [Line 71]: //                cout<<st[i].b[bj]<<" "<<bj<<"  "<<sum<<endl;
  [Line 76]: //                    cout<<st[i].b[bj]<<" "<<bj<<"  "<<sum<<endl;
  [Line 77]: //                    for(int j=1;j<=3;j++) cout<<cnt[j]<<" ";
  [Line 78]: //                    cout<<endl;
  [Line 96]: //zuei yuong xin xie de yi ge
  [Line 97]: //55

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00135\employ\employ.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00135\employ\employ.cpp
------------------------------------------
Single Comments:
  [Line 61]: //zuei yuong xin xie de di er ge
  [Line 62]: //55

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00135\replace\replace.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00135\replace\replace.cpp
------------------------------------------
Single Comments:
  [Line 10]: //shao yu niu bi
  [Line 11]: //55

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00135\road\road.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00135\road\road.cpp
------------------------------------------
Single Comments:
  [Line 10]: //codm hui tiao bp50
  [Line 11]: //55
  • 喜欢玩游戏。
GX-S00139
代码
File: D:\22112\CSP-S2025 GX\GX-S00139\employ\employ.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00139\employ\employ.cpp
------------------------------------------
Single Comments:
  [Line 10]: //Just do it!
  [Line 11]: //It is too difficult to me!
  [Line 12]: //So I do not want to do it any more!
  [Line 13]: //I want to play the Star Rail
  [Line 14]: //If I can not AK I will play GXXXX Impact
  [Line 15]: //And I will play the Count Strike 2
  [Line 16]: //Thanks for your listening!
...
  [Line 289]: //Just do it!
  [Line 290]: //It is too difficult to me!
  [Line 291]: //So I do not want to do it any more!
  [Line 292]: //I want to play the Star Rail
  [Line 293]: //If I can not AK I will play GXXXX Impact
  [Line 294]: //And I will play the Count Strike 2
  [Line 295]: //Thanks for your listening!

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00139\replace\replace.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00139\replace\replace.cpp
------------------------------------------
Single Comments:
  [Line 10]: //Just do it!
  [Line 11]: //It is too difficult to me!
  [Line 12]: //So I do not want to do it any more!
  [Line 13]: //I want to play the Star Rail
  [Line 14]: //If I can not AK I will play GXXXX Impact
  [Line 15]: //And I will play the Count Strike 2
  [Line 16]: //Thanks for your listening!
  [Line 19]: //Just do it!
  [Line 20]: //It is too difficult to me!
  [Line 21]: //So I do not want to do it any more!
  [Line 22]: //I want to play the Star Rail
  [Line 23]: //If I can not AK I will play GXXXX Impact
  [Line 24]: //And I will play the Count Strike 2
  [Line 25]: //Thanks for your listening!
  [Line 27]: //Just do it!
  [Line 28]: //It is too difficult to me!
  [Line 29]: //So I do not want to do it any more!
  [Line 30]: //I want to play the Star Rail
  [Line 31]: //If I can not AK I will play GXXXX Impact
  [Line 32]: //And I will play the Count Strike 2
  [Line 33]: //Thanks for your listening!
...
  [Line 289]: //Just do it!
  [Line 290]: //It is too difficult to me!
  [Line 291]: //So I do not want to do it any more!
  [Line 292]: //I want to play the Star Rail
  [Line 293]: //If I can not AK I will play GXXXX Impact
  [Line 294]: //And I will play the Count Strike 2
  [Line 295]: //Thanks for your listening!
  • 唱歌。怎么没唱完。
GX-S00149
C++
//I'm always knew where I stood,I try to be so good.
//Look at me now,I don't know how,but I'm real hero.
//No hiding in the 
  • 怎么看出 T4 是费用流板子的。
GX-S00167 employ.cpp
C++
#include<bits/stdc++.h>
using namespace std;
//fei yong liu mu ban 48
struct Node{
    int to, nxt, w;
}e[100010];
  • 伟大的心路历程,以及恭喜拿到七勾。
GX-S00169
代码
==========================================
File: D:\22112\CSP-S2025 GX\GX-S00169\club\club.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00169\club\club.cpp
------------------------------------------
Multi Comments:
/*
froepen

zhe sha a?????
wo zen me bu hui T1
fa xian B = zheng jie???
nononono
oh no
wo yao fei le???????????
wo bu hui mei qu nian gao ba
/fn/fn/fn/fn/fn/fn/fn/fn/fn/fn/fn
wo yao na gou 7!!!!!!!!!!!!!!!!!!
xiang xin wo bu hui de bie ren ye bu hui
qwq

70+72+50+24=216

plzplzplzplzplzplzplzplzplzplz

rang wo na gou 7 ba qwq

*/

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00169\employ\employ.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00169\employ\employ.cpp
------------------------------------------
Multi Comments:
/*
hyw
he yi wei
?????????????
qwq
qwq
qwq
qwq
qwq
qwq
qwq
*/

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00169\replace\replace.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00169\replace\replace.cpp
------------------------------------------
Multi Comments:
/*
hyw
he yi wei
?????????????
qwq
qwq
qwq
qwq
qwq
qwq
qwq
*/

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00169\road\road.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00169\road\road.cpp
------------------------------------------
Multi Comments:
/*
wo zen me bu hui t1????
t2 kan zhe xiang mst

???????
how
wo gan jue wo yao fei le
/ll/ll/ll/ll

hrgf;gr;ehgersou;hgesr
ffffffff
*/
  • 🗿🗿🗿。
GX-S00201
C++
#include<bits/stdc++.h>
using namespace std;
const int N=10000086;
int main(){
    freopen("club.in","r",stdin);
    freopen("club.out","w",stdout);
    int t;
    cin>>t;
    while(t--){
        int n;
        cin>>n;
        for(int i=1;i<=n;i++){
            for(int y=1;y<=3;y++){
                int a1,a2,a3;
                cin>>a1>>a2>>a3;
            }
        }
    }
    return 0;//bro know me?🗿🗿🗿
}
  • 背诵岳阳楼记、醉翁亭记,真是好学生。
GX-S00288
C++
/*
zui weng ting ji
ou yang xiu
hcjsy,qxnzf,lhymwzwresxz,lyy.sxlql,jwsscc,excylfzjz,nqy.fhlz,ytyrlyqsz,zwty.ztzs?szszxy;mzzs?tszwy.tsyklyyc,yszz,enyzq,ggzhy:"zw"y.zwzybzj,zhsszjy,sszl,dzyeyzjy
rfrceyfk,ygeyxm.hmbhz,sjzzmy,yffeyx,jmxefy,ssgj,slesc,zjzssy.zew,meg,sizjbt,elywqy.
zyfzgyt,xzxys,qzh,hzy.lytx,wlebjz,cryy.lxey,xseyf;nqwj,qxejl.syys,zreqcz,tsyy.yhzl,fsfz,tzs,yzz,gcjc,zbhy.qzcybf,trhqjz,tszy.
yexyzs,rxsl,tsgebkcy.slyy,mssx,yygeqnly.eqnzslzl,bzrzl.rzctsyel,ebztszlqly.zntql,xnsywz,tsws?lu lin ou yang xiu ye.
*/
C++
/*
yue yang lou ji
fan zhong yan
qlsnc,tzjzsblj.ymn,ztrh,bfjx,ncxyyl.zqjz,ktxjnsfyqs,zyzwyjz
ygfblsz,zdtyh.xys,tcj,hhss,hwjy.zhxy,qxwq,czyylzdgy,qrzsby.rzbtwx,njxx,qksr,dhyc,lwzq,dwyh
rfyyff,lybk,yfnh,zlpk,rxyy,syqx,slbx,qqjc.bmmmhxyt.dsly,zyqghx,ycwj,mmxr,gjebzy
zrchjm,blbj,xxtg,ybwq,soxj,jlyy,aztl,yyqq.ehcyyk,hyql,fgyj,jycb.dsly,zyxksy,crxw,bjlf,qxyyzy.
jh!ycqgrrzx,hycezw,hz?bywx,byjb,jmtzgzyqj,cjhzyzyqm.sjyy,tyy,rzhsely?qby:"xtxzyey,htxzlel.'h.wsr,wsyg?slnjyswr.
*/
  • 我能拿二等吗。
GX-S00341
C++
//wo yao shang 2 deng awa
  • 切 T1 的选手就是自信!
GX-S00424 club.cpp
C++
// 16.18 finished I am sick
  • 禁三警告。
GX-S00444 club.cpp
C++
						ans-=c[i].cost;
						top[k]--;
					}
					i++;
				}
				break;
			}
			
		}
		printf("%d\n",ans);
	}
	return 0;
}



// it fking hard!
  • 这个我不是很懂。
GX-S00472
C++
}
//Z-9
//Zhao
  • 试图在考场上睡觉,但是失败了。
GX-S00490
C++
	//16:29 rp++++++++++++++
	//16:51 i will sleep 2 hour good luck!
	//16:55 i can not sleep
	//18:23 rp++++++++++++++
  • T2 被卡常了。预先把所有边排一遍是不是就可以了呢。
GX-S00571 road.cpp
C++
// my program has a big problem???
// O mlogm+n*2^k*logn bu neng guo qu
// shi ben di ji zi tai man le
// hai shi stl tai man le
  • ohnonononono。
GX-S00608 road.cpp
C++
    }*/
}
signed main(){
    freopen("road.in","r",stdin);
    freopen("road.out","w",stdout);
    //ohnonononono
    scanf("%lld%lld%lld",&n,&m,&k);
    for(int i=1,u,v,w;i<=n;i++){
        scanf("%lld%lld%lld",&u,&v,&w);
        e.push_back({u,v,w});
    }
  • 禁三警告 ×2\times 2。
GX-S00639 club.cpp
C++
				maxt+=a[i].a1;
			}
		}
		//fuck from here
		else if(yousan){
			maxt=0;one=0;two=0;
			sort(a+1,a+n+1,cmp1);
  • 搏一搏,单车变摩托。
GX-S00655 road.cpp
C++
   //boyibo,danchebianmotuo
    if(n==4){
        cout<<13;
        return 0;
    }
    if(n==1000&&k==5){
        cout<<505585650;
        return 0;
    }
    if(n==1000&&k==10&&u[1]==709){
        cout<<504898585;
        return 0;
    }
    if(n==1000&&k==10&&u[1]==711){
        cout<<5182974424;
        return 0;
    }
  • 自我总结,希望他再接再厉。
GX-S00657 club.cpp
C++
/*
I tried my best......
T1 :I know how to do but I forgot how to use operator
T2 :I can only get the first 4 points
T3 :It is too hard for me
T4 :Hard ,too
Maybe I should go back for whk
*/
  • Hello World!
GX-S00007 employ.cpp
C++
#include <bits/stdc++.h>
#define IOFILE "employ"

using namespace std;

int main() {
    freopen(IOFILE".in", "r", stdin);
    freopen(IOFILE".out", "w", stdout);

    cout << "Hello World!" << endl;
    return 0;
}
  • 大起大落。
GX-S00055 employ.cpp
C++
#include<bits/stdc++.h>
using namespace std;
int main(){
	freopen("employ.in","r",stdin);
	freopen("employ.out","w",stdout);
	while(true){
		cout<<"YES!!!!!!!!!!!!!!!";
	}
	return 0;
}
GX-S00055 replace.cpp
C++
#include<bits/stdc++.h>
using namespace std;
int main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	while(true){
		cout<<"NO!!!!!!!!!!!!!!!";
	}
	return 0;
}
  • 哈基米。
GX-S00361
C++
#include <bits/stdc++.h>
#define MAXN 100010
#define HAJIMINANBEILVDOU 0
using namespace std;
int a[MAXN],b[MAXN],c[MAXN];
typedef struct ffff{
    int aa;
    int bb;
  • 题目锐评。
GX-S00394
代码
==========================================
File: D:\22112\CSP-S2025 GX\GX-S00394\club\club.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00394\club\club.cpp
------------------------------------------
Single Comments:
  [Line 57]: if(s[1]<nn){//1 a
  [Line 66]: if(s[2]<nn){//2 b
  [Line 75]: if(s[3]<nn){//3 c

Multi Comments:
/*
1s
512

eazy back-way greedy
*/

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00394\employ\employ.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00394\employ\employ.cpp
------------------------------------------
Single Comments:
  [Line 59]: // cin>>T;

Multi Comments:
/*
1s
512

horrible counting problem
*/

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00394\replace\replace.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00394\replace\replace.cpp
------------------------------------------
Single Comments:
  [Line 51]: // cin>>T;

Multi Comments:
/*
1s
2048

I pay little time on the strings' algorithm, so here comes the result.
*/

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00394\road\road.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00394\road\road.cpp
------------------------------------------
Single Comments:
  [Line 77]: // cin>>T;

Multi Comments:
/*
1s
512

1e9 per second
*/
  • 骗分创奇迹,打表出省一。
GX-S00398 club.cpp
C++
#include<iostream>  //pianfen chuang qiji dabiao chu shengyi
  • 不会写。以及另一个 helloworld。
GX-S00482 replace.cpp
C++
#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("replace.in","r",stdin);
    freopen("replace.out","w",stdout);
    cout<<"I don't know how to write"<<endl;
    return 0;
}
GX-S00482 road.cpp
C++
#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("road.in","r",stdin);
    freopen("road.out","w",stdout);
    cout<<"Hello World"<<endl;
    return 0;
}
  • 万元申万的。
GX-S00484
C++
struct kafka
{
    int y,e,s,max1,max2,max3;
    bool sf;
};
struct hutao
{
    int c1,c2,c3;
};
bool cmp(kafka a,kafka b)
{
    return a.max1<b.max1;
}
int main()
  • 这个会玩。各种有意思的 #define。
GX-S00539 road.cpp
C++
#include<bits/stdc++.h>
#define CCF using
#define Colect_Many namespace
#define Coins std;
#define TenYearsOIisEmpty long long
#define NoLongLongSeeGrandGrandParents long long
#define IdieTrue cin
#define FlashingChen struct
#define XiaoMi bool
#define IdontWantToBeZerowuwu freopen("road.in","r",stdin);
#define IdontWantToBeZerowuwuwu freopen("road.out","w",stdout);
#define PissInto push_back
#define OhMyGod break;
#define NotTrue false
#define NotFalse true
#define Ture false
CCF Colect_Many Coins
vector<TenYearsOIisEmpty>g[10004];
FlashingChen node{
    TenYearsOIisEmpty u,v,w;
}a[10004];
TenYearsOIisEmpty n,m;
NoLongLongSeeGrandGrandParents k;
XiaoMi check(){
    XiaoMi vis[10004];
    queue<TenYearsOIisEmpty>q;
    q.push(1);
    vis[1]=NotFalse;
    while(!q.empty()){
        TenYearsOIisEmpty frt=q.front();q.pop();
        for(TenYearsOIisEmpty i=0;i<g[frt].size();i++){
            if(vis[g[frt][i]]) continue;
            vis[g[frt][i]]=NotFalse;
            q.push(g[frt][i]);
        }
    }
    for(TenYearsOIisEmpty i=1;i<=n;i++){
        if(!vis[i]) return NotTrue;
    }
    return NotFalse;
}
XiaoMi cmp(node a,node b){
    return a.w<b.w;
}
signed main(){
    IdontWantToBeZerowuwu
    IdontWantToBeZerowuwuwu
    IdieTrue>>n>>m>>k;
    for(TenYearsOIisEmpty i=1;i<=m;i++){
        IdieTrue>>a[i].u>>a[i].v>>a[i].w;
    }
    sort(a+1,a+1+m,cmp);
    XiaoMi flag=NotTrue;
    TenYearsOIisEmpty cnt=0,sum=0;
    while(Ture){
        cout<<"I love OI?"<<endl;
    }
    while(flag==NotTrue){
        flag=check();
        if(flag) OhMyGod;
        g[a[++cnt].v].PissInto(a[cnt].u);
        g[a[cnt].u].PissInto(a[cnt].v);
        sum+=a[cnt].w;
    }
    cout<<sum;
    return 0;
}
  • 可爱。
GX-S00573 employ.cpp
C++
		ui die = 0;
		//cout << "moni...\n";
		//for (ui i = 1; i <= n; ++i) cout << a[i] << " ";
		//cout << '\n';
		for (ui i = 1; i <= n; ++i) {
			ui p = a[i];
			ui cc = c[p];
			if (die >= cc) {
				++die;
				//cout << p << " has died ;-;\n";
				continue;
			}
			if (s[i] == '0') {
				++die;
				//cout << p << " has died ;-;\n";
				continue;
			}
			++res;
		}
		//cout << "moni end!\n";
		if (res >= m) ++ans;
  • original 拼错了。
GX-S00592 road.cpp
C++
#include<bits/stdc++.h>
using namespace std;
#define ll long long

void pre(){
    freopen("road.in","r",stdin);
    freopen("road.out","w",stdout);
}

int main(){

    pre();
    init();
    prim();//a oringe map

    cout<<ans<<endl;

    return 0;
}
  • 211985,521211985,521,以及一些不知道是不是有特殊含义的三字母。
GX-S00601 club.cpp
C++
#define int long long
const int N=211985;
const int M=1000000007;
using namespace std;
char cvb;
int re()
{
	int dfg=0,fgh=1;
	cvb=getchar();
	while(cvb>'9'||cvb<'0')
	{
		if(cvb=='-') fgh=-1;
	cvb=getchar();
		}
	while(cvb>='0'&&cvb<='9')
	{
		dfg=(dfg<<1)+(dfg<<3)+cvb-'0';
	cvb=getchar();
		}
	return dfg*fgh;
}
int n,b[4],T,q,t[4],ans;
struct jg
{
	int val,x;
}a[N];
bool gz(jg xx1,jg xx2) {return xx1.val<xx2.val;}
signed main()
GX-S00601 employ.cpp
C++
#include<cstdlib>
#define int long long
const int N=521;
const int M=998244353;
using namespace std;
char cvb;
  • 碎碎念、发病、唱歌。
GX-S00613
C++
/*
 * 初三了,打完这场CSP就去备考了。要是考不上有OI训练营的高中就真的AFO了……
 * 估分35pts,这题大概是DP但我不会写(悲
 * 求进迷惑行为大赏
 * 我是温迪的狗!!!
 * 我是温迪的狗!!!
 * 我是温迪的狗!!!
 * 我是温迪的狗!!!
 * 我是温迪的狗!!!
 * 我是温迪的狗!!!
 * 我是温迪的狗!!!
 * 我是温迪的狗!!!
 * 我是温迪的狗!!!
 * 我是温迪的狗!!!
 * 
 * 《风与飞鸟》
 * 传说那阳光
 * 沐浴万物生长
 * 而我抬头
 * 风沙万丈
 * 
 * 在那背后
 * 是怎样的蓝天
 * 一墙之隔
 * 一生之所向
 * 
 * 陌生的精灵
 * 听到这琴声吗
 * 随我歌唱
 * 带我远洋
 * 
 * 再小的希望
 * 能像花一样尽情绽放
 * 迎接朝阳
 * 
 * 不安的音符跳动着
 * 在心中鸣响乐章
 * 没有人能困住灵魂
 * 站起身伸出翅膀
 * 
 * (这段忘了)
 * 
 * 顷刻间意志
 * 如同熊熊烈火
 * 看它燎原
 * 肆意盘旋
 * 
 * 迷途的人们
 * 别再遮蔽双眼
 * 迎向逆风
 * 怒视深渊
 * 
 * 随着我自由地高歌
 * 回荡在塔顶漩涡
 * 在王座崩落的一刻
 * 我看见天的颜色
 * 
 * ……后面忘了
 * (666高潮部分全忘了,记性真好)
 * ……前面忘了
 * 
 * 传说那阳光
 * 沐浴万物生长
 * 风与飞鸟
 * 自由飞翔
 * 
 * Luogu UID:819326
 * 2025/11/01
*/
  • GXOI。
GX-S00638
C++
#define GXOI ioxg
  • 下面是一些退役纪念。
祝好
GX-S00385
C++
==========================================
File: D:\22112\CSP-S2025 GX\GX-S00385\employ\employ.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00385\employ\employ.cpp
------------------------------------------
Single Comments:
  [Line 70]: // sorry,afo
  [Line 71]: // i love you,oi
  [Line 72]: // but i was stupid,i cant ...

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00385\road\road.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00385\road\road.cpp
------------------------------------------
Single Comments:
  [Line 100]: // wo hai shi men ban fa...
  [Line 101]: // zai jian
  [Line 102]: // gan xie wo zai nnsz yu dao de mei yi wei oiers pap
GX-S00433
C++
/*
这可能是我oi生涯的最后一场比赛吧,今年什么都不会,只能写点部分分
或许我对oi再认真一点,结果就会有所不同吗?
但就算再怎么后悔,都已经结束了
只不过是个无名小卒尔尔
想必此时ZYPRESSN也如夜雨一般漆黑吧

祝学弟拿下校史第二个NOI-Au
*/
GX-S00523
C++
==========================================
File: D:\22112\CSP-S2025 GX\GX-S00523\club\club.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00523\club\club.cpp
------------------------------------------
Single Comments:
  [Line 105]: //QwQ
  [Line 106]: //18:00 le wei shen me yang li dou bu guo ,wo ju ran guo le zui hou yi ge da yang li
  [Line 107]: //hai shi bu neng ma

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00523\employ\employ.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00523\employ\employ.cpp
------------------------------------------
Single Comments:
  [Line 17]: //yi ti bu hui
  [Line 18]: //ying gai da bu liao NOIP le
  [Line 19]: // QwQ
  [Line 20]: //liu ge ji nian ba
  [Line 21]: // AFO

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00523\replace\replace.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00523\replace\replace.cpp
------------------------------------------
Single Comments:
  [Line 14]: //yi ti bu hui
  [Line 15]: //ying gai da bu liao NOIP le
  [Line 16]: // QwQ
  [Line 17]: //liu ge ji nian ba
  [Line 18]: // AFO

==========================================
File: D:\22112\CSP-S2025 GX\GX-S00523\road\road.cpp
Path: D:\22112\CSP-S2025 GX\GX-S00523\road\road.cpp
------------------------------------------
Single Comments:
  [Line 26]: //AFO
GX-S00054 replace.cpp
C++
#include<bits/stdc++.h>

using namespace std;

int main(){
	freopen("replace.in", "r", stdin);
	freopen("replace.out", "w", stdout);
	printf("Goodbye OI!");
	return 0;
}

精神错乱类

西西弗斯类

  • 手写超级快读,然后不幸 CE。
GX-S00453
C++
char buffer[65565];
unsigned li = 0;

char mgetchar()
{
    if (buffer[li] == '\0')
    {
        buffer[read(0, buffer, 65565)] = '\0';
        li = 0;
    }
    return buffer[li++];
}

template<typename T>
void in(T& i)
{
    i = 0;
    int f = 1;
    char c;
    do
    {
        c = mgetchar();
        if(c == '-') f = -1;
    }
    while(c < '0' || c > '9');
    while(c >= '0' && c <= '9') i = i * 10 + c - '0', c = mgetchar();
    i *= f;
}

template<>
void in(string& s)
{
    s = "";
    char c;
    while(isspace(c = mgetchar()));
    do
    {
        s += c;
    }
    while(!isspace(c = mgetchar()) && c != EOF);
}


void out(long long i)
{
    if(i < 0) putchar('-'), i = -i;
    if(i < 10) putchar(i + '0');
    else out(i / 10), putchar(i % 10 + '0');
}

void out(int i)
{
    if(i < 0) putchar('-'), i = -i;
    if(i < 10) putchar(i + '0');
    else out(i / 10), putchar(i % 10 + '0');
}


void out(string& s)
{
    for(int i = 0; i < s.size(); ++i)
    {
        putchar(s[i]);
    }
}


void out(string&& s)
{
    for(int i = 0; i < s.size(); ++i)
    {
        putchar(s[i]);
    }
}

void traverse(int& res, vector<int>& c, vector<int>& s, vector<int>& visited, int& m, int index)
{
    if(index >= m) 
    {
        ++res;
    }
    //if(index = c.size() - 1) return;
    //base case

    for(int i = 0; i < c.size(); ++i)
    {
        res
        if(visited[i] == 0 && c[i] > s[index] && s[index] != -1)
        {
            ++visited[i];
            ++index;
            traverse(res, c, s, visited, m, index);
            --visited[i];
            --index;
        }
    }
}

void a()
  • 无意义循环。
GX-S00625 road.cpp
C++
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
  freopen("road.in","r",stdin);
  freopen("road.out","w",stdout);
  int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
   int a=1;b=1;c=1;
  for(int i=1;i<=a;i++)
  {
	  int g=6;g++;g--;
  }
  return 0;
}