跳到正文

休闲·娱乐

CSP-S 2025 SH 迷惑行为大赏

MoLing_qwq约 44 分钟
原文
文章信息与版本

文章信息

发布
2025年11月8日
收录
2025年12月12日
更新
2026年11月8日
篇幅
约 44 分钟

版本

  1. v2当前
  2. v1

本次 SH CSP-S 最大考号为 13231323,然而只收到了 13151315 个文件夹,怎么回事呢?笔者懒得查找缺失的文件夹,为缺考的选手默哀。

所有的选手文件夹居然都满足了 SH-Sxxxxx 的格式,没有人写错文件夹名字。

如果以下统计有误,或者你希望登上迷惑行为大赏,或者你不希望你的代码在大赏中被展示,请私信笔者。

11

共有 ≥24\ge 24 个非诈骗的含有形如 freopen("club1.out","w",stdout) 或 freopen("club.ans","w",stdout) 的文件,≥44\ge 44 个非诈骗的含有 //freopen(...) 的文件,默哀。

于是我们收到了开幕雷击:

  • SH-S00001 replace.cpp
C++
//f**k wo yao shi ji de KMP zen me xie wo zhi shao duo na 10 fen
//wo bu xi huan ni KMP
int main(){
	freopen("club.in","r",stdin);
	freopen("club.out","w",stdout);
	cin>>n>>q;
    ...
}

翻译:

代码
// *,我要是记得 KMP 怎么写,我至少多拿 10 分
// 我不喜欢你 KMP

鸠占鹊巢,以及出现敏感词。

共有 1515 个文件中出现了 #include<bits\stdc++.h> 且都不是诈骗,默哀。共有两个文件出现了 #include<windows.h>,不过没有导致挂分,不想默哀。

然而我们迎来了第二次开幕雷击……

  • SH-S00002 replace.cpp
C++
using namespace std;
const int N = 1e6 + 10;
int n, q;
pair<string, string> c[N];
void solve() {
	string a, b, ta1, ta2, tb1, tb2;
	cin >> a >> b;
	int cnt = 0;
	for(int i = 1; i <= n; i++) {
		for(int j = 0; j < a.size() - c[i].first.size() - 1; j++) {
			if(a.substr(j, c[i].first.size()) != c[i].first) continue;
			if(b.substr(j, c[i].first.size()) != c[i].second)continue;
			if(j != 0) ta1 = a.substr(0, j);
			else ta1 = "";
			if(a.size() - j - c[i].first.size() != 0) ta2 = a.substr(j + c[i].first.size(), a.size() - j - c[i].first.size());
			else ta2 = "";
			a = ta1 + c[i].second + ta2;
			cnt++;
		}
	}
}
int main() {
	ios :: sync_with_stdio();
	cin.tie(0), cout.tie(0);
	freopen("replace.in", "r", stdin);
	freopen("replace.out", "w", stdout);
	cin >> n >> q;
		string x, y;
		cin >> x >> y;
		c[i] = pair<string, string>{x, y};
	}
	for(int i = 1; i <= q; i++) {
		solve();
	}
	return 0;

(以上为代码全文。)

不是哥们……你头文件呢?而且少一个 }。

笔者尝试查找 feropen,结果发现:

  • SH-S00102 employ.cpp
C++
#include<bits/stdc++.h>
#include<windows.h>
#include<time.h>
using namespace std;
int main(){
	freopen("employ.in","r",stdin);
	freopen("employ.out","w",stdout);
	//  /7............................(/
	//  ./7..........................(/.
	//  ../7........................(/..
	//  .../7......................(/...
	//  ..../7....................(/....
	//	...../7..................(/.....
	//	....../7................(/......
	//	......./7..............(/.......
	//	......../7............(/........
	//	........./7..........(/.........
	//	........../7........(/..........
	//	.........../7......(/...........
	//	............/7....(/............
	//	............./7..(/.............
	//	..............|()|..............
	//	............./(../7.............
	//	............/(..../7............
	//	.........../(....../7...........
	//	........../(......../7..........
	//	........./(........../7.........
	//	......../(............/7........
	//	......./(............../7.......
	//	....../(................/7......
	//	...../(................../7.....
	//	..../(..................../7....
	//	.../(....................../7...
	//	../(......................../7..
	//	./(........................../7.
	//  /(............................/7
	//	......./7..............(/.......
	//	......../7............(/........
	//	........./7..........(/.........
	//	........../7........(/..........
	//	.........../7......(/...........
	//	............/7....(/............
	//	............./7..(/.............
	//	..........  .|(CCF)|............
	//	............./(../7.............
	//	............/(..../7............
	//	.........../(....../7...........
	//	........../(......../7..........
	//	........./(........../7.........
	//	......../(............/7........
	//	......./(............../7.......
	//	....../(................/7......
	//	...../(................../7.....
(省略空行*13)
																																																								//
(省略空行*24)
																																																								//
																														srand(time(0));
																														for(int i=1;i<=10;i++){
																															if(rand()%100>3){
																																cout<<"         %%"<<endl;
																																cout<<"        %--%"<<endl;
																																cout<<"         %%"<<endl;
																																cout<<"      %%%%%%"<<endl;
																																cout<<"    /  %%%%%%"<<endl;
																																cout<<"   |    %%%%%%//"<<endl;
																																cout<<"       %%%%%%"<<endl;
																																cout<<"         %  %"<<endl;
																																cout<<"   ##  %   %"<<endl;
																																cout<<"   ##  %   %   _CCF_骗你的~"<<endl;
																																Sleep(200);
																																//system("cls");
																																cout<<"         %%"<<endl;
																																cout<<"        %^-%"<<endl;
																																cout<<"         %%   CCF我爱你~"<<endl;
																																cout<<"        %%%%%%/"<<endl;
																																cout<<"      /%%%%%%"<<endl;
																																cout<<"     |  %%%%%%"<<endl;
																																cout<<"   ##    %%%%%%"<<endl;
																																cout<<"   ##   %  %"<<endl;
																																cout<<"      %     %"<<endl;
																																cout<<"        %    %"<<endl;
																																Sleep(200);
																																//system("cls");
																															}
																															else{
(省略一部分输出,是无关紧要的歌词)
																	Sleep(2000);
																																cout<<"AKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAKAK"
																																<<endl<<"CCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCFCCF"
																																<<endl<<"#include<bits/stdc++.h>#include<bits/stdc++.h>#include<bits/stdc++.h>(省略几十次重复)#include<bits/stdc++.h>"
																																<<endl<<"int mian()int mian()int mian()int mian()(省略几十次重复)int mian()int mian()int mian()int mian()int mian()"
																																<<endl<<"phigrosphigrosphigrosphigros(省略几十次重复)phigrosphigrosphigrosphigrosphigrosphigrosphigrosphigrosphigros"
																																<<endl<<"feropenferopenferopenferopen(省略几十次重复)feropenferopenferopenferopenferopenferopenferopenferopenferopen"
																																<<endl<<endl<<":P"<<endl;
																																Sleep(5000);
																																//system("cls");
																															}
																														}
	return 0;
}

请注意,其中出现的一行代码一行空行的现象,实则是每行的开头有大量的 Tab,也就是说这份代码的缩略图大致如下:

代码
........
........
........
........
........
........




            ........
            ........
            ........
            ........
            ........
            ........

怎么是 windows.h 哥,很好的解释了 #include<windows.h> 的作用。而且含有大量诈骗,字符画,以及概率型字符画。另外大量重复的 bits/stdc++.h 意义不明,没有起到应有的诈骗作用……

出现了一个 frepoen:

  • SH-S01065 replace.cpp
C++
#include <bits/stdc++.h>
using namespace std;
int n,q;
int main()
{
	freopen("replace.in","r",stdin);
	frepoen("replace.out","w",stdout);
	cin>>n>>q;
	for (int i=1;i<=q;i++)
		cout<<0<<endl;
}

并且还有不可以,总司令。

出现了一个 froepen:

  • SH-S00414 road.cpp
C++
#include<bits/stdc++.h>
#define int long long
//So hard...IAFO
//int mian()
//froepen()
//slove()
//LUOGU=909552
using namespace std;
int fa[114514];
int find(int x){
	if(x==fa[x])return x;
	else return (fa[x]=find(fa[x]));
}
struct edge{
	int u,v,w;
}ed[1014514];
inline bool cmp(edge& a,edge& b){
	return a.w<b.w;
}
inline void disc(int a,int b){
	if(fa[a]==b)fa[a]=a;
	else fa[b]=b;
}
int n,m,k,c[114],cw[20][10010];
signed main(){
	ios_base::sync_with_stdio(0);cin.tie(0);long long ans=0;
	freopen("road.in","r",stdin);
	freopen("road.out","w",stdout);
	cin>>n>>m>>k;
	for(int i=1;i<=m;i++)cin>>ed[i].u>>ed[i].v>>ed[i].w;
	for(int i=1;i<=k;i++){
		cin>>c[i];
		for(int j=1;j<=n;j++){
			cin>>cw[i][j];
			ed[++m]={n+i,j,cw[i][j]};
		}
	}
	for(int i=1;i<=n+k;i++)fa[i]=i;
	sort(ed+1,ed+m+1,cmp);
	for(int i=1;i<=m;i++){
		int tu=find(ed[i].u),tv=find(ed[i].v);
		if(tu!=tv){
			fa[tu]=tv;ans+=ed[i].w;
		}
	}
	cout<<ans;
	return 0;
}

这位 GinoZQwQ 在本题写了一个最小生成树的板子,获得部分分。祝好。以及数组大小有点恶臭。

  • SH-S01134 road.cpp
C++
#include <bits/stdc++.h>
using namespace std;

struct node{
	int city,money;
};
int main(){
	freopen("road.in","r",stdin);
	freopen("raod.out","w",stdout);
	cout<<0;
	fclose(stdin);
	fclose(stdout);
	return 0;
}

raod.out。但是这位是不可以,总司令,所以不遗憾。

共有 55 份代码中出现了 empoly.in/.out,44 份是 freopen 中的,其中有 22 份 empoly.cpp,默哀。剩余一份是:

  • SH-S00884 employ.cpp
C++
//l=empolyed people's number(state:t)

……

  • SH-S01240 club.cpp
C++
    freopen("club.in","r",stdin);
	freopen("clud.out","w",stdout);

默哀。

含有 fstream 的代码有 9797 份,然而还出现了一位选手,其代码中出现了 istream:

  • SH-S00559 club.cpp(节选)
C++
struct Student
{
    int id, a, b, c;
};

class Solution
{
public:
    Solution();
    void solve(istream &in, ostream &out);
private:
    vector<Student> a, b, c;
    int n;
};

Solution::Solution()
{
    a.push_back({0, 0, 0});
}

bool compareUsingA(Student x, Student y)
{
    return x.a > y.a;
}

可以看出颇有工程项目的意味。另外这份代码长达 267267 行。此选手的 road.cpp 也具有类似特点。

出现了 44 个文件含有 cin<<,默哀。没有文件含有 cout>>。

22

笔者尝试翻阅选手们的注释。

  • SH-S00231 club.cpp
C++
//  (〃>目<)
//  (╯▔皿▔)╯
//  [○.`Д′· ○]
//  (ˉ▽ˉ;)...
//  ≧ ﹏ ≦
//  o(╥﹏╥)o
//  /(ㄒoㄒ)/~~
//  ┏┛墓┗┓...(((m-__-)m
  • road.cpp
C++
//  ε=ε=ε=(#>Д<)/
//  ε=(′ο`*)))

/ka

  • SH-S00271 employ.cpp
C++
//yydz,鉴定为网络流

鉴定失败。

  • SH-S00385 employ.cpp
C++
#include<bits/stdc++.h>
using namespace std;
int main(){
	freopen("employ.in","r",stdin);
	freopen("employ.out","w",stdout);
	cout<<0;
	return 0;
}

//wo ai shang zhong, shang zhong wan sui!
//wo ai feng zhi gang, feng zhi gang wan sui!
//wo ai CCF, CCF wan sui!!!

似乎这是一位来自上海中学的选手,你好。以及,不可以,总司令。

  • SH-S00389 employ.cpp
C++
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
	freopen("employ.in","r",stdin);
	freopen("employ.out","w",stdout);
	cout<<0;
	//歌手G A Y 王XX(全名被笔者隐藏),出生于2013年。
	//他生前最喜欢创作 91音乐,78音乐,69音乐,13音乐,深受广大群众喜爱。
	//特别是配上他的《九佾舞于庭》,更是精妙绝伦。
	//可是,就在昨天,2091年的7月8日,著名歌手王天凡去世,享年78岁。
	//人们为了纪念他,在他的座位上反复地播放他创作的78音乐专辑,以祝他安息。
	return 0;
}

91 78 69 13 意义不明。这是第几个总司令。CSP-S 2025 在 20912091 年 77 月 99 日举行。

  • SH-S00569 club.cpp
C++
/*
3
4
4 2 1
3 2 4
5 3 4
3 5 1
4
0 1 0
0 1 0
0 2 0
0 2 0
2
10 9 8
4 0 0

*/
//我不知道这样行不行

//别假了

	//freopen("club.in","r",stdin);
	//freopen("club.out","w",stdout);
	//freopen("club.in","r",stdin);
	//freopen("club.out","w",stdout);
	//freopen("club.in","r",stdin);
	//freopen("club.out","w",stdout);
	//freopen("club.in","r",stdin);
	//freopen("club.out","w",stdout);
	//freopen("club.in","r",stdin);
	//freopen("club.out","w",stdout);
	//freopen("club.in","r",stdin);
	//freopen("club.out","w",stdout);
	//freopen("club.in","r",stdin);
	//freopen("club.out","w",stdout);
	//freopen("club.in","r",stdin);
	//freopen("club.out","w",stdout);
	//freopen("club.in","r",stdin);
	//freopen("club.out","w",stdout);
//1= please!!!!!!!!!!!!!
//(省略 56 行重复)
//1= please!!!!!!!!!!!!!

//luogu id: lhz2022

祝这位诈骗分子 lhz2022 如愿。

  • SH-S00576 club.cpp

代码达 305305 行。

怎么有一车人 club 写了 200+200+ 行?以下不列举了。

  • SH-S00607 club.cpp
C++
//I think I have leave from OI.
//I am grade 9 now.
//This is the last time I attend CSP when I am in middle school.
//Hope for a good score.
//---from No4 middle school affiliated to ECNU
//--Chang__An__Li

祝好。

  • SH-S00608 club.cpp
C++
int main()
{
	// 诈骗寻找迷惑行为大赏的人类:
	// freopen("blub.in", "r", stdin);
	// // freopen("club.in", "r", stdin);
	// 哦对了如果你是迷惑行为大赏欢迎观看我其他代码awa
	freopen("club.in", "r", stdin);
	freopen("club.out", "w", stdout);
	ios::sync_with_stdio(0);
	cin.tie(0);
	int t; cin >> t;
	while (t--) solve();
	return 0;
}
/*
Never gonna give you up
never gonna let you down~
never gonna turn~
around~
and dessert you~
Fucky fucky CCF~
They are all money coll-
ectors~
China↑
Collecting←
Found→
ation↓
*/

满足你的心愿。欸,笔者刚才并没有在 //freopen 列表中看见这位呀?!原来这位写的是 // freopen,下次可以去掉空格,增加被找到的概率哦。

然后让我们来看看这位选手的其它代码。

  • replace.cpp
C++
// 目标:25pts  X
/*
f**k(这个单词原文是中文)CCF!
神兽保佑:
\/
oo      ..
+ ==-=--|
||   ||
(重复 144 次!重复 144 次!重复 144 次!)
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//const int N = 2e5 + 5, L = 5e6 + 5;
const int N = 1e3 + 5, L = 2005;
int n, q;
string s[N][2];
int hash[N][2][L];
void kmp(string s1, string s2)
{
	;
}
int main()
{
	freopen("replace.in", "r", stdin);
	freopen("replace.out", "w", stdout);
	ios::sync_with_stdio(0);
	cin.tie(0);
	// 玉石俱焚家人们
	// 本来想#include <doc/xxxx>,怕被禁赛
	while (1) {
		;
	}
	cin >> n >> q;
	for (int i = 1; i <= n; ++i) {
		cin >> s[i][1] >> s[i][2];
	}
	return 0;
}

代码达 897897 行。虽然但是还是禁三警告。

  • road.cpp
C++
// 暴戾语言竞赛:f**k ccf!(省略 53 遍!)f**k ccf!f**k 酸碱盐!f**k 酸性盐!f**k 碱性盐!f**k 强酸!f**k 强碱!f**k 化学!f**k ChO!f**k IMO!f**k IPhO!f**k ccf!(省略 93 遍!)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e4 + 5, M = 1e6 + 5, K = 13;
const int Inf = 2e9;
const ll INF = 4e18;
// 注意:本题需开longlong,否则 will be f**ked by ccf, but im f**ked by ccf anyways
// AK: absolutly killed=>IAKCPS: Im absolutly f**ked by CCF

你真的要被禁三了……以及,对五大学科竞赛无差别攻击……除了生物??

  • SH-S00763 replace.cpp
C++
//目前考虑前i次有希望的考试,并且其中恰好有j场考试成功,i-j场考试放弃
//那些成功的考试中恰好有k个人的耐心值是小于等于t的(t=pos[i]-j)的方案数(考虑放弃的考试的人员安排以及这k个成功的人的人员安排)
 #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for(ll i=a;i<=b;i++)
#define rrep(i, a, b) for(ll i=a;i>=b;i--)
const ll N=109, MOD=998244353;

int main(){
	freopen("replace.in", "r", stdin);
//	freopen("replace.out", "w", stdout);
	ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);

	return 0;
}//注意一定要滚动数组!!!

既然有了 DP 的思路,你怎么放弃了……欸,不对,这怎么是 replace.cpp?!

原来这位选手在 employ.cpp 中确实给出了其 DP 代码,然而其放弃了 T3,并将 T4 的思路写在了 T3 的代码里……这种行为颇具迷惑意味。

  • SH-S00773 road.cpp
C++
cin>>n>>m>>k;//或许有些遗憾吧,没有达到预期
//但是还是很高兴,至少,我尝试过
//就像题目名一样,路漫漫其修远兮,吾将上下而求索
//求得了什么,无处追寻
//T1用了2h才写出来,T2不会,T3不会,T4都没看
//我常常追忆过去 OI带给了我很多
//我认识了很多新朋友,也有了社交的圈子
//这大概就是命运吧,我终究不是OI的料
//都说女生不适合学这个,我想 我就是一个很好的例子
//本来还想去noip的,看来也没希望了
//afo快乐 后会无期

祝好。

  • SH-S00835 road.cpp
C++
/*I'm broke, lads.*/    // |=@|< <<|=!
/*I'm broke, lads.*/    #include<bits/stdc++.h>
/*I'm broke, lads.*/    using namespace std;
/*I'm broke, lads.*/    struct Edge {
/*I'm broke, lads.*/        int u, v, w;
/*I'm broke, lads.*/        Edge() {
/*I'm broke, lads.*/            vil = -1;
/*I'm broke, lads.*/        }
/*I'm broke, lads.*/        Edge(int U, int V, int W) : u(U), v(V), w(W) {
/*I'm broke, lads.*/            vil = -1;
/*I'm broke, lads.*/        }
/*I'm broke, lads.*/        bool operator<(const Edge& b) const {
/*I'm broke, lads.*/            return w < b.w;
/*I'm broke, lads.*/        }
/*I'm broke, lads.*/    };
/*I'm broke, lads.*/    int n, m, k;
/*I'm broke, lads.*/    vector<Edge> edges;
/*I'm broke, lads.*/    vector<int> fa;
/*I'm broke, lads.*/    int find(int node) {
/*I'm broke, lads.*/        return (node == fa[node] ? node : (fa[node] = find(fa[node])));
/*I'm broke, lads.*/    }
/*I'm broke, lads.*/    void unite(int x, int y) {
/*I'm broke, lads.*/        fa[find(x)] = find(y);
/*I'm broke, lads.*/    }
/*I'm broke, lads.*/    bool connected(int x, int y) {
/*I'm broke, lads.*/        return find(x) == find(y);
/*I'm broke, lads.*/    }
/*I'm broke, lads.*/    int main() {
/*I'm broke, lads.*/        freopen("road.in", "r", stdin);
/*I'm broke, lads.*/        freopen("road.out", "w", stdout);
/*I'm broke, lads.*/        cin >> n >> m >> k;
/*I'm broke, lads.*/        //...(省略主函数)
/*I'm broke, lads.*/
/*I'm broke, lads.*/        cout << ans << '\n';
/*I'm broke, lads.*/        return 0;
/*I'm broke, lads.*/    }
/*I'm broke, lads.*/    //
/*I'm broke, lads.*/    // AC 1-4
/*I'm broke, lads.*/    //
/*I'm broke, lads.*/    // Try #1
/*I'm broke, lads.*/    // use cnt to iterate through which villages to turn into cities
/*I'm broke, lads.*/    // and add the edges to use kruskal every time
/*I'm broke, lads.*/    // also, check if the minimum value is smaller than the price to build the city
/*I'm broke, lads.*/    //
/*I'm broke, lads.*/    // Try #2
/*I'm broke, lads.*/    // check the minimum cost with making no villages to cities using kruskal
/*I'm broke, lads.*/    // then, use cnt to iterate through which villages to turn into cities
/*I'm broke, lads.*/    // each time, check if a route is lesser or equal to the original path
/*I'm broke, lads.*/    // then change the weight
/*I'm broke, lads.*/    //
/*I'm broke, lads.*/    // Try #3
/*I'm broke, lads.*/    // put all the paths between cities via villages in edges[], with a special param of the village
/*I'm broke, lads.*/    // if kruskal uses the edge then iterate through the edges to minus the weight
/*I'm broke, lads.*/    //
/*I'm broke, lads.*/    // should be at most O(n^2)
/*I'm broke, lads.*/    // AAAH

I’m broke, lads.

以及很遗憾,这份代码似乎 CE 了:

C++
/*I'm broke, lads.*/        Edge() {
/*I'm broke, lads.*/            vil = -1;
/*I'm broke, lads.*/        }
  • SH-S00854 club.cpp
C++
#include<bits/stdc++.h>
using namespace std;
int m,n,x,a[100005][5],dp[100005][50005],minn,upp;
long long T;

你的 dp 数组大小是 5×1095\times 10^9,需要约 2×104MB2\times 10^4\text{MB} 的空间。另外:此代码后续没有使用 dp 数组。

不过似乎这份代码本来也是部分 WA 的。

  • SH-S00866 club.cpp

游记。

C++
// 14:30
// 崩溃了,第一题难度就这么大,DP?贪心?
// 14::50
// T2看了,根本不会,最小生成树Prim早忘了
// 15:10
// T3看了,还是不会,什么东西啊?
// 15:12
// T4看了,一脸懵逼,早知道不来考S组复赛了,回去还要挨骂.....
// 15:15
// 完蛋,直接开始暴搜吧
// 15:36
// 暴搜写完了,写大样例了
// 15:45
// 特殊性质A写完了
// 15:51
// 思考:假设初始的时候所有人都安排在1号团
// => 将ai1都变成0,那么ai2和ai3都是+和-
// => 将至少n/2个人安排进2/3,那么ans = (sum a1) + ai2、ai3最大
// 17:39
// 这次考试绝对考砸了,T1只写了暴力骗分,T2暴力写不出来,T3倒在判断string长度上了,T4太复杂了完全不会
// 怎么办?只能躺平了,预估40pts
// 哎,早知道不来考s组的,一堆东西学了又忘,dp往深一点就不会了,最小生成树学了但仅限模版,二分答案现在还弄不懂,dijiesitela跟拖大便一样,完全不会
// 我为什么要来学OI???

遗憾退场。祝好。

  • SH-S00885 road.cpp
C++
#include <bits/stdc++.h>
using namespace std;
//DEUS BEAT AZERTIAM
struct link{
	int pater;
	int price;
	bool on;
};

这个注释是什么意思,笔者没看懂。

  • SH-S00895 所有代码中
C++
//本人最后一个赛季,祭~
//感谢八年来OI带来的欢乐,以及不一样的人生经历~
  • club.cpp
C++
//有没有见过美国总统大选的选票呀?
//    Bidden(304 votes)|-------------------------|----------   |v.s.|  --------------| Bidden(234 votes)
//                                              219votes

何意味?

  • SH-S00912 replace.cpp
C++
    for (int i = 0; i < q; i++)
	{
		cin >> tmp >> tmp2;
		cout << 0 << end;
		//祈求ccf的施舍
	}

总司令,很遗憾,你 CE 了。

  • SH-S00929 club.cpp
C++
	//inborn unfamiliar grown-up continuous either ruin eyesight fantastic ant surprising
	//awake eagle cartoon movie never-ending annoying brain researcher rate result
	//magician recent trick voluntary crazy therefore wonder shake bark
	//ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
	//1234567890-=[]{};:'"',./?><~`!@#$%^&*()1234567890.+-*/\|

随机输入单词测试键盘?看起来挺抽象的。

  • 还是这位,employ/algorithm
C++
(为 C++ 头文件 algorithm 全文)
  • employ/algorithm.h
C++
(仍然是 C++ 头文件 algorithm 全文!)

你把 #include<algorithm> 搬进你的文件夹干嘛?

  • employ.cpp
C++
    //employ employer employee
	//我要拿下今年CSP-S复赛一等奖
	//我不要爆零!!!我不要爆零!!!我不要爆零!!!我不要爆零!!!我不要爆零!!!
	//不爆零!!!不爆零!!!不爆零!!!不爆零!!!不爆零!!!
	//爆零警告
	//s[i]=0则拒绝,s[i]=1则录用

怎么还有英语词性转换……另外祝你不爆零。

  • 还是 employ.cpp
C++
	//ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
	//1234567890-=[]{};:'"',./?><~`!@#$%^&*()1234567890.+-*/\|
	//https://www.mozilla.org/zh-CN/privacy/firefox/
	//https://hao.360.com/?src=lm&ls=n039d848e98
	//IT DIY VIP ASAP PRC CPC WTO WHO
	//FAQ STEM TV APP
	//teamwork band DJ(=disc jockey) lead
	//off-stage backstage

这是什么。

以及……

  • 还是这位选手……replace.cpp
C++
	//ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
	//1234567890-=[]{};:'"',./?><~`!@#$%^&*()1234567890.+-*/\|
	//qwertyuiopasdfghjklzxcvbnm
	//.in,.out
	//https://www.winrar.com.cn/download-70064scp.html
	//https://www.mozilla.org/zh-CN/firefox/all/desktop-esr/win64/zh-CN/
	//https://www.mozilla.org/en-US/firefox/132.0.2/system-requirements/
	//https://www.winrar.com.cn/download/winrar-x64-700scp.exe
	//我的电脑 此电脑
	//不要爆零
	//我想AC本题,不想爆零
  • SH-S00953 road.cpp
C++
struct cmp : public binary_function<node, node, bool>{
    bool
    operator()(const node& a, const node& b) const
//woc把stl.function.h 的代码复制过来改了改真对了
    { return a.w > b.w; }
};

nizhazhemeniu

  • SH-S00969 road.cpp
C++
//你好,我是洛谷网红Nephren(uid=1436750)
//当你看到我写的话时,我差不多快退役了
//今年我T1都没写出来,真是废物呢,呵呵
//不过,我永远喜欢我的npyCute_Furina
//退役,回归whk吧

你好 Nephren。祝好。

  • SH-S1057 replace.cpp
C++
//wo1bu2hu3iz4uo5zh6ed7ao8ti9
//(省略 27 个空行)
//phigrOS万岁!OI万岁!
  • SH-S01144 club.cpp
C++
        for(int i=1;i<=n;++i){
        ll mx=-1,sm=-1;
        for(int j=0;j<3;++j){
            ll now=arr[j][i];
            if(now>=mx) sm = mx,mx = now, bst[1][i] = bst[0][i], bst[0][i] = j;
            else if(now>sm) sm = now, bst[1][i] = j;
        }
        res += sm;
        dif[i] = mx - sm;
        // std::cout<<"Yakumo "<<bst[0][i]<<" "<<dif[i]<<std::endl;
    }
    std::sort(id+1,id+1+n,[](const int&A,const int&B){
        return dif[A]>dif[B];
    });
    for(int i=0;i<3;++i)cnt[i]=0;
    int lim = n>>1;
    for(int i=1;i<=n;++i){
        int ID = id[i];
        // std::cout<<"Reimu "<<ID<<std::endl;
        if(cnt[bst[0][ID]] == lim)++cnt[bst[1][ID]];
        else{
            ++cnt[bst[0][ID]];
            res+=dif[ID];
        }
    }

捕捉到 Yakumo 和 Reimu。

  • SH-S01302
C++
//还是那个又菜又爱玩的我,还是那个惊喜与惊吓并存的比赛
//从NOIP2018小学组试点,到CSP-J,再到CSP-S,磕磕绊绊走到今天
//十年竞赛生涯,我似乎未曾获得什么,但我感到很满足
//感恩有你,CCF

祝好。

  • SH-S00003 club.cpp
C++
#include<bits/stdc++.h>

using namespace std;
int main()
{
	freopen("club.in","r",stdin);
	freopen("club.out","w",stdout);

	cout<<"18";
	cout<<"4";
	cout<<"13"<<endl;

	return 0;
}

输出样例骗分,但不完全是样例……

感觉 SH 选手整活还是太少了,能不能给力一点儿呀?

原文