跳到正文

个人记录

单县第三届 C++ 编程能力竞赛(小学组)迷惑行为大赏

wenbo___约 20 分钟
原文
文章信息与版本

文章信息

发布
2026年7月29日
收录
2026年7月29日
更新
2026年11月14日
篇幅
约 20 分钟
获赞
1

版本

  1. v2当前
  2. v1

没人写那我就先统计一下吧

免责声明:以下展示代码不代表本人观点。

如果看到了自己的代码且不想被挂,可以私信撤下;也欢迎大家投稿自己的代码。

LemonLime评测结果:https://www.luogu.com.cn/ticket/fs/get/pznejyar

在 单县第三届 C++ 编程能力竞赛(小学组) 中,共有 245 位选手提交了 860 份代码(少了120份代码),共计 836KB。

统计

统计部分数据来自 VScode。

freopen 共在 778 个文件中出现了 1825 次,其中 //freopen 共在 73 个文件中出现了 145 次;

bits\stdc++.h 共在 3 个文件中出现了 3 次;(细节斜杠是反的)

using namespace std 共在 826 个文件中出现了 826 次;

feopen在4个文件中出现了8次;

coutest在5个文件中出现了8次;

来自 202601019 的 hole.cpp 荣获最长文件,大小为 30KB\mathrm{\color{red} 30KB}。

成绩统计

我们对选手成绩进行了统计,其中有很多保龄选手,其占比竟然高达65.992%\Huge{\color{red} 65.992\%}

得分数量占比前缀和后缀和
320 Pt10.405%247100.000%10.405%
270 Pt10.405%24699.595%20.810%
220 Pt10.405%24599.190%31.215%
210 Pt10.405%24498.785%41.619%
200 Pt10.405%24398.381%52.024%
190 Pt20.810%24297.976%72.834%
180 Pt10.405%24097.166%83.239%
160 Pt31.215%23996.761%114.453%
130 Pt31.215%23695.547%145.668%
120 Pt52.024%23394.332%197.692%
100 Pt72.834%22892.308%2610.526%
90 Pt20.810%22189.474%2811.336%
80 Pt52.024%21988.664%3313.360%
70 Pt31.215%21486.640%3614.575%
60 Pt176.883%21185.425%5321.457%
50 Pt20.810%19478.543%5522.267%
40 Pt41.619%19277.733%5923.887%
30 Pt62.429%18876.113%6526.316%
20 Pt156.073%18273.684%8032.389%
10 Pt41.619%16767.611%8434.008%
0 Pt16365.992%16365.992%247100.000%

平均 : 26.4777 / 400

标准差 : 51.5365

区分度 : 40.14

代码展示示例

准考证号或题目

[文件名.cpp] 作者评价

C++
// Code

代码展示

202601001

[string.cpp]QAQ不加双引号的来了

C++
     if(S[i]==QAQ)

[coutest.cpp]

C++
#include<bits/stdc++.h>
using namespace std;
int n,s,c,h,p;
int main(){
	//freopen("coutest.in","r",stdin);
    //freopen("coutest.out","w",stdout);
	return 0;
} 

与此同时的202601191:

C++
 	if(n!=QAQ){

202601020&202601008&202601044&202601055&202601089&202601110

双后缀确实很保险,因此在赛场上得到了大范围的推广!

代码
contest.cpp.cpp
hole.cpp.cpp
... .cpp.cpp

202601002

代码
hole.lnk

202601010

[contest.cpp]

C++
#include<bits/stdc++.h>
using namespace std;
int a[100+10];
int main(){	
	int n,k;
	cin>>n>>k;
	//...
	freopen("contest.in","r",stdin);
	freopen("contest.out","w",stdout);
	return 0;
}

202601019

[hole.cpp]细节'

C++
#inclube <bits/stdc++.h>
using namespace std;'
int main()

{
	freopen("hole.in","r",stdin);
	freopen("hole.out","w",stdout);
	return 0;
}

202601029

[hole.cpp]打表人,打表神

C++
#include<bits/stdc++.h>
using namespace std;
int ans[10000] = {-1, 5, 4, 6, 4, 6, 6, 4, 6, 4, 5, 4, 3, 3, 7, 7, 7, 3, 3, 4, 4, 3, 6, 5, 2, 7, 1, 5, 6, 3, 6, 3, 5, 6, 3, 5, 3, 6, 5, 3, 4, 7, 2, 3, 4, 5, 4, 3, 2, 7, 6, 7, 7, 5, 5, 5, 5, 5, 7, 7, 6, 7, 1, 3, 4, 5, 4, 3, 2, 7, 4, 3, 5, 6, 3, 5, 3, 6, 5, 3, 6, 3, 6, 5, 2, 7, 2, 5, 6, 3, 4, 4, 3, 3, 7, 7, 7, 3, 3, 4, 5, 4, 3, 3, 7, 7, 7, 3, 3, 4, 4, 5, 4, 6, 4, 6, 6, 4, 6, 4, 3, 4, 3, 3, 7, 7, 7, 3, 3, 4, 3, 6, 3, 5, 2, 7, 1, 5, 6, 3, 7, 4, 7, 2, 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, 6, 5, 2, 7, 7, 3, 3, 4, 4, 4, 3, 3, 7, 7, 6, 7, 7, 5, 5, 5, 5, 5, 7, 7, 7, 6, 7, 7, 5, 5, 4, 3, 2, 7, 7, 7, 6, 7, 7, 5, 3, 6, 5,...(差点把我电脑卡爆,后面还有19.6k大小的打表)};
int main()
{
	freopen("hole.in", "r", stdin);
	freopen("hole.out", "w", stdout);
	int n, maxx = INT_MIN, x;
	cin >> n;
	for(int i = 1; i <= n; i++)
	{
		if(ans[i] >= maxx)
		{
			maxx = ans[i];
			x = i;
		}
	}
	printf("%04d %d", x, maxx);
	return 0;
}

居然就这么AC了?

202601035

[string.cpp]awa那就给你40分吧

C++
#include <bits/stdc++.h>
const long long N = 1e6+10;
using namespace std;
int main(){
	freopen("string.in","r",stdin);
	freopen("string.out","w",stdout);
	int n;
	cin>>n;
	for(int i=1;i<=n;i++){
		printf("-1\n");
	}
	//QAQ,91ceng baoli booned please give me 40pts,Thank you very much! 
	return 0;
}

202601037

[contest.cpp]硬肝T1!

C++
#include<bits/stdc++.h>
using namespace std;
cout<<a[j]=1000;
int main()
{
	freopen("contest.in","r",stdin);
	freopen("contest.out","w",stdout);
	int n,a;
	cin>>n>>a;
	for(int i=0;i<=n;i++)
	{
		int x,y;
		if(x>=n)
		{
			cout<<x<<n;
		}
		else
		{
			cout<<y<<n;
		}
	}
	int sum=0;
	int cnt=0;
	while(a<=n)
	{
		cnt=a+n;
	}
	if(n%a==0||n%b==0)
	{
		cout<<n;
	}
	else if(x%n==2&&x%a==2)
	{
		cout<<x;
	}
	else if(a-x==3)
	{
		cout<<a+b+cnt;
	}
	else
	{
		cout<<b-a+sum;
	}
	for(int j=0;j>=n;j++)
	{
		cout<<purified water for drinking;
	}
	int k,l;
	cin>>k>>l;
	long long ma=efound;
	for(int d=0;d<=n;d++)
	{
		if(a[j]>ma)
		{
			ma=a[j];
			{
				ma>=a[j];
			}
		}
	}
	return 0;
}

[其他(都一样的代码)]

C++
#include<bits/stdc++.h>
using namespace std;

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

	return 0;
}


202601043

[hold.cpp]

C++
#include<bits/stdc++.h>
using namespace std;
int main (){
	freopen("hold.in","r",stdin);
	freopen("hold.out","w",stdout);
	//...已省略
}

202601045

[string.cpp]

C++
if qa qa=qaq||aqa

感觉人类没救了

202601047

[所有]

C++
#include <iostream>
using namespace std;
int main{
	//...省略
}

202601055

[所有]早期未开智人类试图骗分:

C++
#include <bits/stdc++.h>
using namespace std;
int main()
{
freopen("contest.in", "r", stdin);
freopen("contest.out", "w", stdout);
cout<<1;
cout<<2;
cout<<3;
cout<<4;
cout<<5;
cout<<6;
cout<<7;
cout<<8;
cout<<9;
cout<<10;
cout<<11;
cout<<12;
cout<<13;
cout<<14;
cout<<15;
cout<<16;
cout<<17;
cout<<18;
cout<<19;
cout<<20;
cout<<21;
cout<<22;
cout<<23;
cout<<24;
cout<<25;
cout<<26;
cout<<27;
cout<<28;
cout<<29;
cout<<30;
cout<<31;
cout<<32;
cout<<33;
cout<<34;
cout<<35;
cout<<36;
cout<<37;
cout<<38;
cout<<39;
cout<<40;
cout<<41;
cout<<42;
cout<<43;
cout<<44;
cout<<45;
cout<<46;
cout<<47;
cout<<48;
cout<<49;
cout<<50;
cout<<51;
cout<<52;
cout<<53;
cout<<54;
cout<<55;
cout<<56;
cout<<57;
cout<<58;
cout<<59;
cout<<60;
cout<<61;
cout<<62;
cout<<63;
cout<<64;
cout<<65;
cout<<66;
cout<<67;
cout<<68;
cout<<69;
cout<<70;
cout<<71;
cout<<72;
cout<<73;
cout<<74;
cout<<75;
cout<<76;
cout<<77;
cout<<78;
cout<<79;
cout<<80;
cout<<81;
cout<<82;
cout<<83;
cout<<84;
cout<<85;
cout<<86;
cout<<87;
cout<<88;
cout<<89;
cout<<90;
cout<<91;
cout<<92;
cout<<93;
cout<<94;
cout<<95;
    //...省略此后357行

return 0;
}

202601065

[string.cpp]好萌!但是CE\mathrm{\color{yellow} CE}

C++
#include <bits/stdc++.h
using namespace std;
int main()
{
	int n;
	cin<<n;
	for(int i=1;i<=Q;c++)
	{
		cout<<"QAQ"
	}
	return 0;
}

202601127

[contest.cpp]题面哥

C++
#include<bits/stdc++.h>
using namspace std;
int main(){
	freopen("contest.in","r",stdin);
	freopen("contest.out","w",stdout);
	
	
}
return 0;
第三届 C++大赛
小学组
时间:2026 年 7 月 5 日 09:00 ~ 11:00
题目名称 比赛 地牢迷宫 数字黑洞 字符串
题目类型 传统型 传统型 传统型 传统型
目录 contest maze hole string
可执行文件名 contest maze hole string
输入文件名 contest.in maze.in hole.in string.in
输出文件名 contest.out maze.out hole.out 
//以下略

202601165

[contest.cpp]看我暴力读入文件!

C++
#include<bits/stdc++.h>
using namespace std;
int 
int main()
{
	freopen("contest.in","r",stdin);
	freopen("contest.out","w",stdout);	freopen("contest.in","r",stdin);
	freopen("contest.out","w",stdout);	freopen("contest.in","r",stdin);
	freopen("contest.out","w",stdout);	freopen("contest.in","r",stdin);
	freopen("contest.out","w",stdout);	freopen("contest.in","r",stdin);
	freopen("contest.out","w",stdout);	freopen("contest.in","r",stdin);
	freopen("contest.out","w",stdout);	freopen("contest.in","r",stdin);
	freopen("contest.out","w",stdout);	freopen("contest.in","r",stdin);
	freopen("contest.out","w",stdout);	freopen("contest.in","r",stdin);
	freopen("contest.out","w",stdout);	freopen("contest.in","r",stdin);
    //一共272个freopen,以下省略
    //...
}  

202601222

[string.cpp]直言不会!

C++
#include<bits/stdc++.h>
using namespace std;
都不会啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 
int main(){
	freopen("test.in","r",stdin);
	freopen("test.out","w",stdout);
	return 0;
}

202601271

[contest.cpp]hyw神秘语言

C++
#include<bits/stdc++.h>
using namespace std;
int main()
{
(k+1)	
   (dao.2hou.shao.k.suan,yi.zu);
   (gao.1.ming.you.yi.ming,ma,shang,ji.ji);	
freopen(contest."in" "r");
freopen(contest.out,"w"stdout);
return 0;
}

202601288

[所有]理解能力这么强,想必是语文≥115120pts\geq \frac{115}{120} \mathrm{pts}的高手

代码
freopen("本题名称.in","r",stdin);
freopen("本题名称.out","w",stdin);

能不能用UTF-8存害得我还得换编码

原文