CSP-S 2024 SD 赛区迷惑行为大赏

· · 休闲·娱乐

&&S-2024-$%CpS-##&

不急了。

重量级选手 SD-S00462

文件结构

C:\USERS\APPLE\DESKTOP\迷惑行为大赏\CSP-S2024\ANSWER\SD-S00462
+---arena
|       arean.cpp
|
+---colour
|       colour.cpp
|
+---detect
|       detect.cpp
|
\---duel
        duel.cpp

SD-S00462\duel\duel.cpp

#include<bits/stdc++.h> 
using namespace std;
int main{
int n,i,j;
freopen("duel.in";"n";std)
freopen("duel.out";"t";std)
cin>>
cout<<
return 0;
}

SD-S00462\detect\detect.cpp

#include<bits/stdc++.h>
using namespace std;
int main{
freopen("detect.in","n",std)
freopen("detect.out";"t";std)
int n,m,L,V,p,d,u,a,i;
cin>>n,m,L,V;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
cout<<
return 0;
}

第 7 行有 1293 个空格,这是睡觉的时候压着键盘了?

SD-S00462\colour\colour.cpp

#include<bits/stdc++.h>
using namespace std;
int main{
int A[n];
cin>> n>>endl;
int c,c==A[n];
freopen(colour.in;n;std)
freopen(colour.out;t;std)
return 0;
}

SD-S00462\arena\arean.cpp

#include<bits/stdc++.h>
using namespace std;
int main{
int A[n];
cin>> n>>endl;
int c,c==A[n];
freopen("colour.in";"n";std)
freopen("colour.out";"t";std)
return 0;
}

文件相关信息

统计代码, python

本次 CSP-S 山东省赛区共收集到了 142\color{red}8 位选手的代码:5 位选手的考号以 JS 开头(JS-S00128 JS-S00944 JS-S01098 JS-S01403 JS-S01664),其余均为 SD 开头(最大值为 SD-S01424,但 SD-S01338 未出现)。

排除 SD-S01338 选手后,共有 5191 份符合文件收集规范的代码,这也就意味着 521 份代码缺失。

同时在文件夹中出现了 102 份非预期文件/文件夹。

完整列表见此。

SD-S00074

answers/SD-S00074/SD-S00024乔子娇/ 非预期
answers/SD-S00074/SD-S00024乔子娇/arena/ 非预期
answers/SD-S00074/SD-S00024乔子娇/arena/arena.cpp 非预期
answers/SD-S00074/SD-S00024乔子娇/color/ 非预期
answers/SD-S00074/SD-S00024乔子娇/color/color.cpp 非预期
answers/SD-S00074/SD-S00024乔子娇/detect/ 非预期
answers/SD-S00074/SD-S00024乔子娇/detect/detect.cpp 非预期
answers/SD-S00074/SD-S00024乔子娇/duel/ 非预期
answers/SD-S00074/SD-S00024乔子娇/duel/duel.cpp 非预期

值得一提的是,该选手的 detect.cpp color.cpp arena.cpp 中均在 return 0; 后执行 fclose(stdin);fclose(stdout);。

SD-S01150

answers/SD-S01150/duel/duel.cpp 未找到
answers/SD-S01150/detect/detect.cpp 未找到
answers/SD-S01150/color/color.cpp 未找到
answers/SD-S01150/arena/arena.cpp 未找到
answers/SD-S01150/color/SD-S01150贾耀康.cpp 非预期
answers/SD-S01150/detect/SD-S01150贾耀康.cpp 非预期
answers/SD-S01150/duel/SD-S01150贾耀康.cpp 非预期

该选手挂掉了 100+0+0+0=100 分。

~$ 临时文件

answers/SD-S00307/color/color.cpp 未找到
answers/SD-S00307/arena/arena.cpp 未找到
answers/SD-S00102/~$duel.out 非预期
answers/SD-S00125/duel/~$duel.out 非预期
answers/SD-S00196/detect/~$etect3.in 非预期
answers/SD-S00307/detect/~$detect.in 非预期
answers/SD-S00706/arena/~$arena1.in 非预期

英语型选手

answers/SD-S00355/detect/dectect.cpp 非预期
answers/SD-S00418/defect/ 非预期
answers/SD-S00418/defect/defect.cpp 非预期
answers/SD-S00419/deul/ 非预期
answers/SD-S00419/deul/duel.cpp 非预期
answers/SD-S00461/arene/ 非预期
answers/SD-S00462/arena/arean.cpp 非预期
answers/SD-S00462/colour/ 非预期
answers/SD-S00462/colour/colour.cpp 非预期
answers/SD-S00544/duel/dule.cpp 非预期
answers/SD-S00617/arena/arenna.cpp 非预期
answers/SD-S00638/duel/dule.cpp 非预期
answers/SD-S00642/arena/arent.cpp 非预期
answers/SD-S00761/arena/area.cpp 非预期
answers/SD-S00817/detect/delect.cpp 非预期
answers/SD-S01102/detect/detcet.cpp 非预期
answers/SD-S01129/arean/ 非预期
answers/SD-S01129/arean/arena.cpp 非预期
answers/SD-S01153/detect/decete.cpp 非预期
answers/SD-S01304/detect/detcet.cpp 非预期
answers/SD-S01326/arena/arema.cpp 非预期
answers/SD-S01420/arena/arean.cpp 非预期
answers/SD-S01422/duel/dule.cpp 非预期

因此可以统计出(括号中为出现次数)

duel    deul (1) dule (3)
detect  dectect (1) defect (1) delect (1) detcet (2) decete (1)
color   colour (1)
arena   arene(1) arenna (1) arent (1) area (1) arean (3) arema (1)

SD-S00418 挂了 0 分,原因是 inline read() {...},在加入返回值类型后,这份代码在 T3 中获得了 30 分。

SD-S00419, SD-S01422 挂了 100 分。

.in .out .exe 文件

answers/SD-S00202/arena/arena.exe 非预期
answers/SD-S00222/arena/arena.out 非预期
answers/SD-S00222/color/color.in 非预期
answers/SD-S00222/color/color.out 非预期
answers/SD-S00222/detect/detect.in 非预期
answers/SD-S00222/detect/detect.out 非预期
answers/SD-S00222/duel/duel.in 非预期
answers/SD-S00323/color/color.exe 非预期
answers/SD-S00323/color/color.out 非预期
answers/SD-S00325/color/color.exe 非预期
answers/SD-S00325/detect/detect.exe 非预期
answers/SD-S00353/color/color.exe 非预期
answers/SD-S00353/color/color.in 非预期
answers/SD-S00353/color/color.out 非预期
answers/SD-S00353/detect/detect.exe 非预期
answers/SD-S00353/detect/detect.in 非预期
answers/SD-S00353/detect/detect.out 非预期
answers/SD-S00353/duel/duel.exe 非预期
answers/SD-S00353/duel/duel.in 非预期
answers/SD-S00353/duel/duel.out 非预期
answers/SD-S00428/detect/detect.exe 非预期
answers/SD-S00464/arena/arena.in 非预期
answers/SD-S00464/arena/arena.out 非预期
answers/SD-S00464/color/color.in 非预期
answers/SD-S00464/color/color.out 非预期
answers/SD-S01099/color/color.in 非预期
answers/SD-S01099/color/color.out 非预期
answers/SD-S01099/detect/detect.in 非预期
answers/SD-S01099/detect/detect.out 非预期
answers/SD-S01099/duel/duel.in 非预期
answers/SD-S01099/duel/duel.out 非预期
answers/SD-S01239/duel/duel.exe 非预期
answers/SD-S01239/duel/duel.out 非预期
answers/SD-S01313/color/color.exe 非预期
answers/SD-S01313/color/color.out 非预期
answers/SD-S01313/detect/detect.exe 非预期
answers/SD-S01313/detect/detect.out 非预期
answers/SD-S01313/duel/duel.exe 非预期
answers/SD-S01313/duel/duel.out 非预期

Misc

answers/SD-S00222/arena/arena,in 非预期
answers/SD-S00222/duel/新建文本文档.txt 非预期
answers/SD-S00222/duel/未命名1.cpp 非预期
answers/SD-S00222/duel/未命名1.exe 非预期
answers/SD-S01099/color/未命名3.cpp 非预期
answers/SD-S01099/color/未命名3.exe 非预期
answers/SD-S01099/detect/未命名2.cpp 非预期
answers/SD-S01099/detect/未命名2.exe 非预期
answers/SD-S01099/duel/未命名1.cpp 非预期
answers/SD-S01099/duel/未命名1.exe 非预期
answers/SD-S01025/arena/擂台游戏(arena).cpp 非预期
answers/SD-S01025/color/染色(color).cpp 非预期
answers/SD-S01025/detect/超速检测(detect).cpp 非预期
answers/SD-S01025/duel/决斗(duel).cpp 非预期

SD-S00222

+---arena
|       arena,in
|       arena.out
|
+---color
|       color.in
|       color.out
|
+---detect
|       detect.in
|       detect.out
|
\---duel
        duel.in
        新建文本文档.txt
        未命名1.cpp
        未命名1.exe

所有 .in .out 文件的内容均为空。

SD-S01099 挂了 10+0+0=10 分。

bonus:我去年的考号是 SD-S01025()

freopen 相关

本部分统计由 VS Code 与代码, C++ 完成。

//freopen 在 75 个文件中出现了 3062 次。

其中 SD-S00294 选手的 arena.cpp 共含有 2808 个 //freopen,占比约 91.70\%。

在这份代码中,//freopen("arena.in","r",stdin); 出现了 1376 次,//freopen("arena.out","w",stdout); 出现了 1402 次。

SD-S00764 选手的 duel.cpp, detect.cpp, color.cpp 各含有 41 个 //freopen,其代码均具有如下结构:

#include <bits/stdc++.h>
//#define int long long
//二中信竞,原神,启动!
//lg uid:739444
//注册exoj.top 谢谢喵
//freopen("我是SD-001 张三 qwq
... 剩余 40 行重复

@ScapegoatTree,二中信竞,原神,启动!

剩余的 131 个 //freopen 分布在 71 个文件中,平均一个文件有约 131/71=1.85 个 //freopen。

// freopen 共出现了 159 次,分布在 94 个文件中。

经手动检查,SD 选手的有效 freopen 均为以下形式之一:

freopen("<题目名>.in", "r", stdin);
freopen("<题目名>.in","r",stdin);
freopen("<题目名>.out", "w", stdout);
freopen("<题目名>.out","w",stdout);
freopen("<题目名>.in","r",stdin);freopen("<题目名>.out","w",stdout);

的所有代码见列表。

SD-S00012 detect

freopen("detect4.in","r",stdin);

该选手挂了 0 分

SD-S00032 duel

//  freopen("duel.in","r",stdin);
//  freopen("duel.out","w",stdout);

该选手挂了 5 分。

SD-S00033 color arena

// color.cpp
freopen("color.in","r",stdin);
freopen("color.out","r",stdout);
// arena.cpp
freopen("arena.in","r",stdin);
freopen("arena.out","r",stdout);

该选手挂了 20+0=20 分。

SD-S00036 duel color

//freopen(luogu uid 408071)

@TankYu

SD-S00037 color

freopen("color.in","r",stdin);
freopen("color.ans","w",stdout);

SD-S00053 detect

freopen("detect.out ","w",stdout);

SD-S00057 all

//删freopen注释

SD-S00059 arena

//  freopen("arena.in","r",stdin);
//  freopen("arena.out","w",stdout);

该代码的 main() 函数为空函数。

SD-S00073 all

freopen("<题目名>","r",stdin);
freopen("<题目名>","w",stdout);

SD-S

SF《NOI 系列赛常见技术问题整理》相关情况统计

bits/stdc++.h 在 3947 份代码中出现了 3969 次。

bits\stdc++.h 在 18 份代码中出现了 18 次,有趣的是去年只在 1 份代码中出现 1 次。