跳到正文

个人记录

SH-CSP-S迷惑行为大赏

zhangzhihao2约 15 分钟
原文
文章信息与版本

文章信息

发布
2023年11月9日
收录
2025年12月12日
更新
2026年11月16日
篇幅
约 15 分钟

版本

  1. v2当前
  2. v1

基本数据

本次上海 2023 CSP-S 有 10581058 人参与,有 39003900 份代码文件。

24632463 个文件中出现 #include<bits/stdc++.h>,占 63.2%63.2\%。

280280 个文件中出现 #include<iostream>,占 7.2%7.2\%。

2020 个文件中出现 #include<stdio.h>,占 0.5%0.5\%。

110110 个文件中宁死不加 using namespace std;,使用了 std::,占 2.8%2.8\%。

100100 个文件中使用了快读,占 2.6%2.6\%。

一:保留节目:freopen 酿成的惨剧

首先是大家喜闻乐见的文件输入输出~

注释 freopen 什么的大家已经见怪不怪了警钟敲烂,这边就放一下数据:

我们重新定义注释 freopen 类失误的范围,如果即使解除注释后,也仍然显然无法获得任何分数,那么这样的失误不能算在其中。也就是说,在选出的文件中,freopen 的注释极大可能直接使原本有的分数飞走~

经过详细统计,这次的失误率很低,仅有 1818 个文件中出现了这样的失误,失误率为 0.5%0.5\%。

字符串剪切(strcut)人:

C++
//SH-S01006 struct.cpp
...
int main()
{
	freopen("struct.in","r",stdin);
	freopen("strcut.out","w",stdout);
	...
}

锡制SD卡(sdtin)人:

C++
//SH-S00016 struct.cpp
...
int main(){
	freopen("struct.in","r",sdtin);
	freopen("struct.out","w",stdout);
	...
}

吹捧sd卡(sdtout)人:

C++
//SH-S01079 struct.cpp last one of SH-S
...
int main(){
	freopen("struct.in","r",stdin);
	freopen("struct.out","w",sdtout);
	...
}

这边建议和上边那位凑成一对。

来自电子笔(froepen)人:

C++
//SH-S00252 lock.cpp
...
int main()
{
	freopen("lock.in","r",stdin);
	froepen("lock.out","w",stdout);
	...
}

可惜了 T1 一道大水题。

输入和输出互穿身份人:

C++
//SH-S00219 struct.cpp
...
int main(){
	freopen("struct.in","w",stdin);
	freopen("struct.out","r",stdout);
	...
}

python 写太多人:

C++
//SH-S00633 each file is like this in tree.cpp
...
int main()
{
	freopen("tree.in",'r',stdin);
	freopen("tree.out",'w',stdout);
	...
}

太可惜了,python 写多了分不清 '' 和 "" 的区别直接爆零…

二:注释是 TA 的主场

其中可能涉及一些关于CCF的立场问题,文章作者只负责拿出来供大家评判,但一直非常敬重CCF,并且对于部分存在敏感问题的代码,在代码公开的前提下,一律认为代码作者已经做好了承担责任的准备。

愿者上钩人:

C++
//SH-S00214 each file

// I hate strings forever!!!!
//freopen("game.in","r",stdin);
//freopen("game.out","w",stdout);
//freopen("game.in","w",stdin);
//freopen("game.out","r",stdout);
//freopen("game.in.txt","w",stdin);
// Never gonna give you up!
// Hello,stranger!
// AFOed.QwQ 100+35+30+0=165 pts only
// UID of My Luogu Account is 639085.Subsribe me!!!
// It's 18:13 now.I feel empty
// No.2 High School Afflicated to the East China Normal University
// HSEFZ! Genshin Impact Club!
// Play Genshin Played
// No Genshin played
// kkksc03 chen_zhe orz
// sto xyf clp ltd weq ljk jhx orz
// sto xyf clp ltd weq ljk jhx AKIOI
// I want to join in the Mi Huo Xing Wei Da Shang of SH!!!

难以想象精神状态人:

C++
//SH-S00258 struct.cpp
...
int main(){
	...
}/*
�Ի���Ϊ���ͣ�
Never Gonna Give You UP~

//freopen

IAKIOI

I AK IOI

AFO

See you again

Luogu

422996

114514

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

CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
CANOT AK IOI = skill issue = noob lol
*/

试图通过赞美 CCF 来骗分人:

C++
//SH-S00779 tree.cpp

//I really love CCF

使用提分符咒人:

C++
//SH-S00152 each file
...
/*
|-----\    |------\        |            |
|      \   |       |       |            |
|       \  |       |       |            |
|-------\  |-------/  -----|-----  -----|-----
|  \_      |               |            |
|    \_    |               |            |
|      \__ |               |            |
*/

暴躁老哥:

代码
//SH-S00882 tree.cpp
I FUCK CCF
I FUCK CSP
I FUCK NOIP
I FUCK NOI
I FUCK EVERYTHING!!!

面对 T3 大模拟破防人:

C++
//SH-S00012 struct.cpp
#include<bits/stdc++.h>
using namespace std;
int n;
int main()
{
	freopen("struct.in","r",stdin);
	freopen("struct.out","w",stdout);
	cin>>n;
	/*for(int i=1;i<=n;i++)
	{
		cin>>op;
		if(i==1 && op!=1)
		{

		}
	}*/
	cout<<"FUUCK CCF"<<endl;
	cout<<"CCF S13"<<endl;
	cout<<"WQNMD CCF"<<endl;
	return 0;
}
//AFO!
//��ϧ���һ�����ڴ�ͬ���� ����OIһ���գ�

可以看出他本来是想做的(

面对 T1 大水题又爱又恨人:

C++
//SH-S00446 lock.cpp
...
int main()
{
	...
}//luogu username: Gracezhuzhu
/*
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
|| I love coin collecting foundation(CCF)!!!!!! ||
//////////////////////////////////////////////////
*/

三:各种离谱到家

代码水平高超人:

C++
//SH-S00178
//lock.cpp
#include<bits/stdc++.h>
using namespace std;

int main{
  //freopen("lock.in","w",stdin);
  //freopen("lock.out","t",sydout);

  int a[6];
  for(int i = 0;i<5;i++){
  	i[0] = w[i];
  }

  int n;
  for(int i= 1;i<3;i++0{
  	for(int j = 0 ;j<5;j++){
  		a[j]=a[j]+1;
  		n= n+1;

  		if(i=2){
  			a[j]=a[j]+1;
  			a[j+1]=a[j+1] +1;
  			n=n+1;
		  }
		  continue;
	  }
  }
  cout>>n;

}

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

int main{
  //freopen("game.in","w",stdin);
  //freopen("game.out","t",sydout);
  int n;
  int m[100000000];

  cin << n;
  for(int i = 0;i < n;i++){
  	cin << m[i];
  }
  int num;
  for(int i = 1;i <= n ;i++){
  	for(int j = 0;j < n;j++){
  		for(int k = 0;k<j;k++){
  			if(m[j]=m[j+1]){
  				num =mun +1;
			  }else{
			  	comtinue;
			  }
		  }
	  }
  }
  cout >> num;

  return 0;
}

这位哥甚至自信地没有运行过代码(

我们 S 组的 OIer 经过了专业的训练,无论多好笑都不会笑,除非实在忍不住。

原文
存档评论3 条抓取于