跳到正文

休闲·娱乐

CSP-S 2026 JL迷惑行为大赏

XiaoFu_QqQ约 36 分钟
原文
文章信息与版本

文章信息

发布
2026年11月5日
收录
2026年11月5日
更新
2026年11月13日
篇幅
约 36 分钟
获赞
1

版本

  1. v5当前
  2. v4
  3. v3
  4. v2
更早的 1 个版本
  1. v1

去年 noip 就想做了,但是素材太少,就没做。

话说为什么 JL 这几年一个迷惑行为大赏也没有呢。

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

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

由纯人工进行筛选,编写,借助 VScode 和一些自己写的脚本进行统计,并未借助 AI。本文筛选了所有注释和编译错误,如有遗漏,请见谅。

一下以形如 xxx 的数字代表准考证号为 JL-S00xxx 的选手。

T1~T4 分别指本次考试的第 11 到第 44 题。

选手编号+题号也指选手在这题提交的代码。

一些统计数据

本次比赛共 374374 名选手提交了 12111211 份文件。

.c

发现了 1313 份为 .c 文件,剩余都是 .cpp。

其中 010T1 和 343,374的所有代码都是 .c 但是写的是 c++。

而 065 是写的是某些像 c++ 的不明语言。

其程序

T1:

C
include<bits/stdc++.h>
using namespace std;
int a[1000000000000];
int main()
{
	int n;
	long long m;
	cin>>n,m;
	for(int i=0;i<=n;i++)
	{
		cin>>a[i];
	}
	sort(a,a+n);
	int b=0;
	for(int i=0;i<n;i++)
	{
		int sum=0;
		int x=a[i+1]-a[i];
		if(x<m)
		{
			for(int j=i;j>=0;j--)
			{
				m=m-x;
				if(m>=0)
				{
					sum++;
					a[j]=a[j]+x;
				}
				else{
					break;
				}
			}
		}
		for(int j=i+1;=n;j++)
		{
			if(a[i]==a[j])
			{
				sum+=1;
			}
		}
		b=max(b,sum);
	}
	cout<<b;
	return 0;
}

T2:

C
include<bits/stdc++.h>
using namespace std;
int main()
{
	int c,n,m,d,q,w,i,k,a,t,x,y;
	cin>>c>>n>>m>>d>>q;
	for(int j=1;j<=m;j++)
	{
		cin>>w;
	}
	for(i=1;i<=n;i++)
	{
		cin>>k;
		for(int j=1;j<=k;j++)
		{
			cin>>a>>t;
		}
	}
	for(int j=1;j<=q;j++)
	{
		cin>>x,y;
	}
	
	return 0;
}

T3:

C
include<bits/stdc++.h>
using namespace std;
int main()
{
	int c,t,n,d;
	for(int i=1;i<=t;i++)
	{
		for(int j=1;j<=t;j++)
		{
			cin>>n;
		}
		cin>>d;
	}
	
	return 0;
}

T4 是空文件。

但现在无论扩展名,都一律视为 c++。

常用名与诈骗

在 11911191 份文件中找到 11951195 个 main。

在 11291129 份文件中找到 22742274 个 freopen。

在 2424 份文件中找到 4343 个 //freopen。

其中059T2,117T1,180T1,225T1,259T1,352T1,363T3 并非诈骗,警钟长鸣。

271T2 是唯一一个诈骗//freopen的。

在 22 个文件中找到 22 个 mian。

RP++

在 44 个文件中找到11个 AK 和 csp,甚至是相同 44 个文件

在 44 个文件中找到 1919 个 rp,全是火车头中的for 循环。

在 293293 个文件中找到 444444 个#define,064 的四份代码分别贡献了10个,荣获火车头长度第一。

代码展示
C++
#include<bits/stdc++.h>
#define int long long
#define rep(i,a,b) for(int i=(a);i<=(b);i++)
#define per(i,a,b) for(int i=(a);i>=(b);i--)
#define mem(a,b) memset(a,b,sizeof(a));
#define all(x) (x).begin(),(x).end()
#define abs_(x) ((x)<0?-(x):(x))
#define sz(x) ((int)(x).size())
#define ull unsigned long long
#define pb push_back
#define fi first
#define se second
using namespace std;

同时,在 211211 个文件中找到 213213 个#define int long long

dzd 严查

在 104T3 中找到一个 ccf。

在 22 个文件中找到 33 个 d**k。

并未找到 f**k。

238

在 55 个文件中找到了 1212 个 238,其中大样例贡献了 99 个。

在 33 个文件中找到了 66 个 239,其中大样例贡献了 55 个。

what is 238

ȸ ȹ

flat
&#x0238;
&#x0239;

象形文字,我们机房某位“先贤”提出的,过于压抑了说是。

迷惑代码展示

本章节如未注明,不保证为完整代码。

016

T1

神秘文件路径。

C++
x-special/nautilus-clipboard
cut
file:///home/senior/Desktop/%E5%BA%B7%E7%A5%9E%E5%BC%80%E6%92%AD%E4%BA%86%EF%BC%8C%E7%9C%9F%E7%9A%84%E5%81%87%E7%9A%84

(全文)

048

T1

:根本没有这种代码

:你只是怕了

:这谁不怕

点击查看代码
C++
/*
对于任意一个数列,分解为N个等差数列,从公差最小的开始处理

然后等差数列的结论是解 \sum{N}{i} \leq \frac{m}{公差},其中N为答案

最后递归算N的和(发现太难写,先写个暴力)

算了,相较于后面那些题目,还是这个吧……
*/
#include<bits/stdc++.h>
using namespace std;

#define int long long

// 算了,为了考试方便,还是不用迭代器了
// bool check(vector<int>::iterator &begin,vector<int>::iterator &end)
// {
//     for(auto )
// }

// int get_dis()// 获取一段等差数列的公差

// int main()
// {
//     int n,m;
//     cin>>n>>m;
//     vector<int> a(n+1);
//     for(int i=1;i<=n;i++)
//     {
//         cin>>a[i];
//     }
//     if(check(a.begin(),a.end()))
//     {
//         int d=get_dis(a.begin(),a.end())
        
//     }
// }

#define ERROR -1

#define Unknow -2

int get_d(vector<int> &a,int fi,int ed) // 算了,防止没有调用拷贝构造,还是稳妥一些吧(怕卡常)
{
    return (ed>=fi+1?a[fi+1]-a[fi]:ERROR);
}

int solve(vector<int> &a,int fi,int ed,int m)
{
    int d=get_d(a,fi,ed);
    if(ERROR == d) return ERROR;
    const int maxx = ceil(m/d);
    int ans=0,sum=0;
    for(int i=1;i<=maxx;i++)
    {
        sum += i;
        if(sum <= maxx) ans++;
        else return ans+1;
    }
    return ERROR;
}

bool check(vector<int> &a,int fi,int ed)
{
    if(ed >= fi+3){
    const int maxx=ed-fi;
    int dis=a[fi+1]-a[fi];
    for(int i=2+fi;i<ed;i++)
    {
        if(a[i+1]-a[i] != dis) return false;
    }return true;}
    else if(ed >= fi +2)
    {
        return (a[fi+1]-a[fi] == a[fi+2] - a[fi+1]);
    }
    else if(ed >= fi +1) return true;
    else
    return ERROR;
}

struct Node
{
    pair<int,int> fi=make_pair(0,0),ed=make_pair(0,0);
    int dis=Unknow;
    explicit Node(){fi=make_pair(0,0);ed=make_pair(0,0);dis=Unknow;}
    explicit Node(pair<int,int> a,pair<int,int> b,int c){fi=a;ed=b;dis=c;}
    ~Node() = default;
};

bool cmp(const Node &A,const Node &B) // 算了,还是手写吧,别用多态了
{
    if(A.dis != B.dis )
    return A.dis < B.dis;
    else
    {
        return A.fi.first < B.fi.first;
    }
}

ostream &operator << (ostream &out, Node &x)
{
    out<<"fi.num: "<<x.fi.first<<" fi.val: "<<x.fi.second<<" ed.num: "<<x.ed.first<<" ed.val: "<<x.ed.second<<" diss: "<<x.dis;
    return out;
}

049

T3

警示后人,一个 sub 不只有一个点。

C++
if(c==3){
//do sth
}

056

T2

段错误(核心已转储)。

实际代码并未 RE。

C++
//Segmentation fault (core dumped)?

076

T1

560CNY560CNY 打水漂的。(无恶意)

C++
#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("crystal.in","r",stdin);
    freopen("crystal.out","w",stdout);
    int n,m;
    cin>>n>>m;
    int a[n];
    for(int i=0;i<n;i++)cin>>a[i];
    if(n==5 && m==5)cout<<3;
    if(n==5 && m==8)cout<<4;
    return 0;
}
//shayebuhui wuwuwu

(全文)

102

T2

我只是想骗个分能有什么坏心思呢?

C++
//欸,不是。CCF,我只是想骗个分啊你为什么这么刁难我?TELL ME,WHY!?
#include<bits/stdc++.h>
using namespace std;
int main()
{
	freopen("subway.in","r",stdin);
	freopen("subway.out","w",stdout);
	int c,n,m,d,q;
	cin>>c>>n>>m>>d>>q;
	if(c==0&&n==2n&&m==5&&d==20&&q==2)
		cout<<"32\n17\n";
	if(c==0&&n==3&&m==7&&d==20&&q==2)
		cout<<"35\n16\n";
	if(c==0&&n==15&&m==136&&d==20&&q==200)
		cout<<"(注:此处省略若干)";
	if(c==0&&n==480&&m==481&&d==20&&q==90000)
		cout<<"(注:此处省略8万余行)";

104

T3

祝好。

C++
// a treat for me
// afo on 2026/10/31.
// Oct31==Dec25?
// trick||treat!
// I'm sorry for my parents
// bye oi.
// J2 S[2,3]
// why to do this
// i think my oi dont have any problems
// why,i give it so many times
// ccf lv7?
// i cant have it in this world
// im a loser
// it only have 8 mins.
// if give me then anythimes.
// if give me next year.
// if i wouldnt study oi...
// i will be a lose student.
// now too.
// Away From OI on Oct 31.
// 4mins.
// luogu's contest i can get 100+ pts
// /kel
// can i have the future?
// nobody knows.
// /bx ylx dyh zbl qhm qyl hyt sya cm mxh kkc dsa.
// not me.
// why...

(全文)

109

T3

一如既往的低。

C++
#include<bits/stdc++.h>
#define ll long long
using namespace std;
/*
希望CCF的数据强度一如既往的高,我才初一,不会退役的把 Update by10.30 18:27:00 chenmo_0310_lixin
*/
int c,t;
int main(){
    freopen("migrate.in","r",stdin);
    freopen("migrate.out","w",stdout);
    cin>>c>>t;
    if(t==2)cout<<"1\n2";
    if(t==17)cout<<"8129\n16\n9\n7\n12\n0\n0\n0\n2\n1\n0\n2\n3\n6\n0\n2\n0";
    return 0;
}

134

T2

破防了。

C++
//破防了我去,,,,,,,,,我咋啥也不会了,,,,,,,,,,,,,,,

并非全文,但代码 CE 了。

143

T2

一分没挂,恭喜。

C++
    //O(nmlogm+qn) is trivial
    //how to go better
    //consider link sth between the routes
    //then U know what to do with the d!
    //that's easy
    //make a 190*500000 match? sounds crazy
    //you facing still a big challenge
    //the good point is that you could floyd
    //well done!
    //the rest?
    //is O(qd^2) acceptable
    //of course
    //that's it
    //200 at last!

157

上 33 个也是重量级啊。

T1

游记来着。

Wait, half an HOUR just passed? Man I should not have started that Tetris game.⪓⪓⪓⪓⪓⪓

C++
/*
14:19   Waiting for contest to begin...
        Bored.
        Found that in Code::Blocks IDE when use mouse to hover above words it will show the description.
        Cool! A dictionary!
        Hmm,let me see what this will take me...
14:22
        What's a 'generic term'? Weird.
        Apparently 'taxonomic' means categorization or something like that.
14:25
        Bored. Waiting. I should just wait...and wait...and wait...
14:28
        A clock precise to the millisecond. Just what I need for a coding competition.
14:33
        Problem A seems simple.
        Let me try...
14:45
        Solved A!
        So simple that probably everyone solved it.
        B seems to be a graph problem. Let the nodes be the No. of the subway.
14:49
        Problem statement B makes me sad.
        Way to long.
14:57
        Why the problem order in the submitting system is different from the problem order in the statement???
15:00
        The real challenge in B is understanding the statement.
        Why this is a Floyd! But how will I build the graph...
15:02
        HOW WILL I BUILD THE GRAPH???
15:06
        1st:build a graph with n+m nodes.O(sigma k)=5*10^5
        2nd:for each subway line node run dij.O(n*dij)=O(500*forgot QAQ)
        3rd:use the results to build the graph for the subways.O(n^2)=2.5*10^5
        4th:run Floyd on the subway graph.O(n^3)=1.25*10^8                          is this possible?
        5th:read the query and print.O(q)=1*10^5
15:20
        No wait.
        1st:build a graph with n+m nodes.O(sigma k)=5*10^5
        2nd:build the graph for the subways.O(n*m*min(d,n))=5*10^8                  is this possible?
        3rd:run Floyd on the subway graph.O(n^3)=1.25*10^8                          is this possible?
        4th:read the query and print.O(q)=1*10^5
        Really,could anybody remember the time complexity of dij?
        (ans:everyone except me)
        7*10^8.Maybe?Let me calculate the min possible points earned when judge runs 1*10^8 per sec.
15:25
        At least 50 points. This is definitely Floyd, so I'm going to assume it will pass.
        3.2.1.Go! Start programming!
15:28
        Wait. Why is there a 'number of test case' input? For easier sub-solutions?
15:38
        Time complexity calculation non-optimal.
        2nd:build the graph for the subways.O(n*m*min(d,n))=5*10^8                  is this possible?
        ->
        2nd:build the graph for the subways.O(sigma k*min(d,n))=1*10^8
        Much better now!
        total estimate around 2.5*10^8.
15:45
        Oh no. Time complexity worse than I thought.
        4th:read the query and print.O(q)=1*10^5
        ->
        4th:read the query and print.O(q*d*d)=4*10^7
        Not much though.
        Re-calculation needed.
        1st:build a graph with n+m nodes.O(sigma k)=5*10^5
        2nd:build the graph for the subways.O(sigma k*min(d,n))=1*10^8
        3rd:run Floyd on the subway graph.O(n^3)=1.25*10^8                          is this possible?
        4th:read the query and print.O(q*d*d)=4*10^7
        Total equal to around 3*10^8.
        Maybe?
15:50
        Version 1 of B done!
16:35
        B passed all large samples.
        Time longest 0.5 s-probably no TLE.
16:37
        answer to the password:today is not Christmas.
17:06
        Wait, half an HOUR just passed? Man I should not have started that Tetris game.⪓⪓⪓⪓⪓⪓
18:20
        Could not solve C.
        100+100+0+0=200
        Gonna test A&B.
*/

T3&T4

不可以,总司令!

C++
#include<bits/stdc++.h>
using namespace std;
int main()
{
    freopen("hub.in","r",stdin);
    freopen("hub.out","w",stdout);
    int c,T;
    cin>>c>>T;
    for(int i=1;i<=T;i++)
        cout<<"0\n";
    //No, commander, no!
    return 0;
}
C++
#include<bits/stdc++.h>
using namespace std;
int main()
{
    freopen("migrate.in","r",stdin);
    freopen("migrate.out","w",stdout);
    int c,T;
    cin>>c>>T;
    for(int i=1;i<=T;i++)
        cout<<"0\n";
    //No, commander, no!
    return 0;
}

168

T1

CTRL+F,int,long long,CTRL+ALT+ENTER。

C++
#include <bits/stdc++.h>
#define AK return
#define csp 0
using namespace std;
long long n,m;
long long ans=0;
long long a[500010];
long long p[500010];
bool fa=1,fb=1;
long long fbs=-1;
long long fm=m;
long long l=1,r=1;
signed main()
{
    //bu kai long long jian zu zong!
    freopen("crystal.in","r",stdin);
    freopen("crystal.out","w",stdout);
    ios::sync_with_stdio(0);
    cin.tie(0);
    cin>>n>>m;

    for(long long i=1;i<=n;i++)
    {
        cin>>a[i];
    }

T4

I can speak Chinese!

C++
#include <bits/stdc++.h>
#define AK return
#define csp 0
using namespace std;
int main()
{
    //freopen("hub.in","r",stdin);
    //freopen("hub.out","w",stdout);
    AK csp;
    /*
    大家好
    我终于知道怎么写中文了
    使用ibus engine就可以了
    */
}

177

T4

咋这么难?!

C++
bool check(int x) {
    // za quan shi tu lun
    if (rand() % 2 == 0) return 0;
    return 1;
}
// J zha le T2 mei tiao chu lai sai hou yi kan T3 hui zheng jie T4 hui bao li po beng le
// S neng you 1= ma T1 wei zheng jie zui hou yi ge da yang li mei guo qian mian ji ge guo le
// qi wang 75+0+0+0 JL neng you 1= ma
// zui hou yi nian le
// oi-chat .netlify .app 
void solve() {
    int n, k;
    cin >> n >> k;
    for (int i = 1; i < n; ++i) {
        int u, v;
        cin >> u >> v;
        vec[u].push_back(v);
        vec[v].push_back(u);
    }
    // za zhe me nan

189

T1

你给我 100100 分我都认了。

虽然 T1 确实没挂。

C++
//ji ba zhe ci de1 bu fen fen zen me dou zhe me bu hao xie
// T2 T3 T4 dou shi rngdle shui beng de zhu
//gan jue T3 8 fen ying gai mei wen ti T2 44 fen ke neng you hen da wen ti
//T4 15 fen bu zhi dao wei shen me di er ge yang li RE le,di yi ge guo de
//ai jiu zhe yang ba,zhi qiu T1 bu gua,ni gei wo 100 fen wo dou ren le

266

T1

咋复制的题面?!

C++
/*小 R 有 n 颗能量水晶,其中第 i (1 ≤ i ≤ n) 颗的能量值为整数 a i 。
小 R 想用其中若干颗能量水晶合成一颗大水晶,用于合成的水晶必须具有相同的
能量值。小 R 希望参与合成的水晶尽可能多。他可以进行 至多
. m 次操作。每次操作可
以任选一颗水晶,将其能量值增加 1;同一颗水晶可以被重复选择。
你需要帮助小 R 求出,进行至多 m 次操作后,他最多能用多少颗能量水晶合成一
颗大水晶。
Oct31==Dec25?
*/

T4

kskbl,zdjd

C++
//kskbl4109

268

T2

祝好

C++
#include <bits/stdc++.h> //wei shen me bu guo yang li!! wo xie le 3 ge xiao shi |`_`| gei wo ji fen ba...

271

T1

恭喜,但仍然改变不了 CCF 失去一些东西的事实。

C++
//wo qu
//wo hao xiang A le t1
//15:29 (tiao le ban tian fa xian sort fang cuo wei zhi le
//xie xie CCF
//xie xie shuang zhi zhen
//qsy I love you!

T2

唯一一个诈骗的。

歌没听过。

C++
//才发现可以用中文口牙!
//最后十分钟
//预计100+0+16+0
//t1好简单www希望补药炸……
//freopen feropen mian
//嘿嘿骗一下
//天空之下万事寥落 ————星尘/Mocker44《诗空茫》
//就这样吧!

278

T1

Believe yourself!

C++
/*
Believe yourself!
If the code don't run, 99% is your problem!
Believe yourself!!!!!

da jia xie xun huan de shi hou you zhe dian a !
*/

// 5min solved
// zhe me eazy?
// long long is save?
// nevermind, I trust you.

// small sample accepted, but large sample wrong???why???

// cyt sleep at 15:57
// awake at 16:39
// using 42min.

// binaray ans?
// yes.

// solved at 16:22
// i think this is yellow
// cyt is still sleeping.

341

T2

very very nice!

C++
//676767           /
//                /        -----------
//               /                   /
//              /                   /
//             /                   /
//            /-------            / 
//           /         \         /
//           |         |        /
//           \         /       /
//            \       /       /
//              ------       /
//                          /

编译错误

警钟敲烂!

共 7474 名选手。

010

T4

《bits/stdc++》

C++
#include <bits/stdc++>
using namespace std;
int main()
{
  freopen("hub.in","r",stdin);
  freopen("hub.out","w",stdout);
  cout<<'1'<<endl;
  cout<<'2';
}

013

T2&T3&T4

"migrate.out"."w"

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

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


    return 0;
}

其余死因相同,不再展示。

014

这还是 c++ 吗?

C++
include<bits.bts/s>                                                                                                            >
std using namespace;
int(main)
    for{
    foropen("crystal"in"c")
    foropen("crystal"in"c")
    }
int a <=1
for (int i<=0 ;i++)
{
count << a << a;
int a <=0;
}
for(int a <=0 ;i++){
        int a std;
    for (int a<=0 i++){
        int a<=0;
        forward_iterator_tag;
        forward(int <=0 a++);
        long(int (a));
        string(int a <=b)
        return 0;
        for read(i<=50){
            count<<a<<i++;
            i++;
            a++;
        }
        for(int a <= 0)
      count<<

}
return 0;

(全文)

上述是 T1,其余死因相同,不再展示。

026

T4

以为是 PHP。

C++
0 1
99999 1000
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
(以下省略100000行大样例)

035

long long ll;

T1

C++
#include<bits/stdc++.h>
using namespace std;
long long ll;
const int maxn=5e5+10;
ll a[maxn],sum[maxn];

050

ALL

众所周知 1×2=21 \times 2=2,所以两个单引号=双引号!

C++
freopen("a,out",''w'',stdout);

其余死因相同,不赘述。

364

T2

一万年内无人能看懂。

代码
共一万余行空行中夹杂 166 个 12345678910100000000000000000000
行数间隔随机

156

T4

学 OI 有助于改善精神状态。

不管了,来打 florr.io 吧!

C++
呃啊啊啊啊啊啊啊啊啊
我要死了……;
我要打florr.io
t1似乎能过??
t2有分???
今年初二了,我太废物了
我好像要
         A           FFFFFFFFFFFF      OOOOOOO
        A A          F                O       O
       A   A         F               O         O
      A     A        F               O         O
     AAAAAAAAA       FFFFFFFFFFFF    O         O
    A         A      F               O         O
   A           A     F               O         O
  A             A    F                O       O
 A               A   F                 OOOOOOO
了
(逻辑混乱)
(缺乏语言能力??)

148

T4

该数组共需 4TB。

如果以绝对最低的总价为目标,目前最经济的方案是采用大容量的DDR4 ECC服务器内存来凑齐4TB,总价大约在13.6万元人民币左右。

By DeepSeek

C++
bool a[2000005][2000005],b[2000005];

250

T1

真是一对笑面虎,两头乌角鲨啊!

甚至准考证号。

C++
const ll N=1e18;
int n,m,ans=1;
struct A{
	long long a,c;
}b[N];

344

T3

mighub

C++
hub#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("migrate.in","r",stdin);
freopen("migrate.out","w",stdout);
long long c,t,n,d;
cin>>c>>t;
for(int i=0;i<t;i++)
{
x[200003]={ };
	cin>>n>>d;
	for(int j=0;j<n;j++)
	{
		cin>>x[i];
	}
}
cout<<1<<endl;
cout<<2<<endl;
return 0;
}
原文