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

· · 个人记录

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

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

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

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 荣获最长文件,大小为 \mathrm{\color{red} 30KB}。

成绩统计

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

得分 数量 占比 前缀和 后缀和
320 Pt 1 0.405% 247 100.000% 1 0.405%
270 Pt 1 0.405% 246 99.595% 2 0.810%
220 Pt 1 0.405% 245 99.190% 3 1.215%
210 Pt 1 0.405% 244 98.785% 4 1.619%
200 Pt 1 0.405% 243 98.381% 5 2.024%
190 Pt 2 0.810% 242 97.976% 7 2.834%
180 Pt 1 0.405% 240 97.166% 8 3.239%
160 Pt 3 1.215% 239 96.761% 11 4.453%
130 Pt 3 1.215% 236 95.547% 14 5.668%
120 Pt 5 2.024% 233 94.332% 19 7.692%
100 Pt 7 2.834% 228 92.308% 26 10.526%
90 Pt 2 0.810% 221 89.474% 28 11.336%
80 Pt 5 2.024% 219 88.664% 33 13.360%
70 Pt 3 1.215% 214 86.640% 36 14.575%
60 Pt 17 6.883% 211 85.425% 53 21.457%
50 Pt 2 0.810% 194 78.543% 55 22.267%
40 Pt 4 1.619% 192 77.733% 59 23.887%
30 Pt 6 2.429% 188 76.113% 65 26.316%
20 Pt 15 6.073% 182 73.684% 80 32.389%
10 Pt 4 1.619% 167 67.611% 84 34.008%
0 Pt 163 65.992% 163 65.992% 247 100.000%

平均 : 26.4777 / 400

标准差 : 51.5365

区分度 : 40.14

代码展示示例

准考证号或题目

[文件名.cpp] 作者评价

// Code

代码展示

202601001

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

     if(S[i]==QAQ)

[coutest.cpp]

#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:

    if(n!=QAQ){

202601020&202601008&202601044&202601055&202601089&202601110

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

contest.cpp.cpp
hole.cpp.cpp
... .cpp.cpp

202601002

hole.lnk

202601010

[contest.cpp]

#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]细节'

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

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

202601029

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

#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,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6, 5, 3, 2, 5, 6, 3, 6, 3, 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分吧

#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!

#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;
}

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

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

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

    return 0;
}


202601043

[hold.cpp]

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

202601045

[string.cpp]

if qa qa=qaq||aqa

感觉人类没救了

202601047

[所有]

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

202601055

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

#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]好萌!但是\mathrm{\color{yellow} CE}

#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]题面哥

#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]看我暴力读入文件!

#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]直言不会!

#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神秘语言

#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

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

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

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