CSP-S 2026 JX 迷惑行为大赏

· · 个人记录

CSP-S 2026 JX 迷惑行为大赏

如果有未统计到的或者统计错误的可以私信作者补充或修改。

如有侵权可以私信作者删除。

一定要看到最后并且点赞转发宣传一下,把这么多代码都翻一遍是很累的 QwQ。

前言

今年 JX S 组共有 641 人报名。

总计找到有效文件 2224 个。其中 T1 638 个,T2 576 个,T3 563 个,T4 447 个。

以下是某些字符串的查找情况:

下面进入正题。

迷惑行为大赏

JX-S00001

在其 T2 代码中有:

if(n==2&&m==5&&d==20&&q==2)
{
    cout<<32<<endl<<17;
    return 0;
}
if(n==3&&m==7&&d==20&&q==2)
{
    cout<<35<<endl<<16;
    return 0;
}

我替这位考生祈祷 CCF 的数据水一点。

JX-S00004

这位考生仅仅交了 2 道题,祝好。

JX-S00007

这位考生的 4 份代码中都存在:

#define I return
#define love 0
#define Sasuke ;
#define forever ;

...

I love Sasuke forever 

Sasuke 真爱粉。

JX-S00010

T2:

#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("subway.in","r",stdin);
    freopen("subway.out","w",stdout);
    int c,t;
    cin>>c>>t;
    if(t==2)cout<<32<<'\n'<<17;
    else cout<<35<<'\n'<<16;
    return 0;
}

T3:

#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("migrate.in","r",stdin);
    freopen("migrate.out","w",stdout);
    int c,t,n;
    cin>>c>>t;
    cin>>n;
    if(n==4){
        cout<<1<<'\n'<<2;
    }else if(n==5){
        cout<<0<<'\n'<<1;
    }else if(n==197){
        cout<<8129<<'\n'<<16<<'\n'<<9<<'\n'<<7<<'\n'<<12<<'\n'<<0<<'\n'<<0<<'\n'<<0<<'\n'<<2<<'\n'<<1<<'\n'<<0<<'\n'<<2<<'\n'<<3<<'\n'<<6<<'\n'<<0<<'\n'<<2<<'\n'<<0;
    }
    return 0;
}

T4:

#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("hub.in","r",stdin);
    freopen("hub.out","w",stdout);
    int c,t,n;
    cin>>c>>t>>n;
    if(t==2){
        cout<<1<<'\n'<<2;
    }else if(t==3){
        cout<<1<<'\n'<<1<<'\n'<<2;
    }else if(t==5){
        if(n==602)cout<<17<<'\n'<<9<<'\n'<<6<<'\n'<<6<<'\n'<<9;
        else cout<<189<<'\n'<<233<<'\n'<<288<<'\n'<<229<<'\n'<<338;
    }else if(t==1){
        cout<<12251;
    }else{
        cout<<1101;
    }
    return 0;
}

祝好。

JX-S00012/JX-S00014

这两位考生都只收到了了 T1 和 T3 的代码,祝他们好运。

JX-S00017

此考生 4 题代码的头文件均是:

include <bits/stdc++.h>

祝好。

JX-S00018

他的四题代码均为:

#include<bits/stdc++.h>
using namespace std;
int main(){
#pragma(*.in,"w","r",static);
#pragma(*.out,"w","r",static);
return 0;
int a,b;
cin>>a>>b;
cout<<a<<b;
}

(*为这一题的文件名)

写了四题的 a+b,emmmm。

JX-S00024

这位考生后三题都为:

#include <bits/stdc++.h>
using namespace std;
int main()
{
//  freopen("*.in", "r", stdin);
//  freopen("*.out", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    return 0;
}

祝好。

JX-S00026

这位考生仅仅交了 T1,祝好。

JX-S00028

这位考生的 T2 代码:

...
/*
luogu uid:1658585
jin nian ye shi J he S shuang da, lao shi mei gei wo dai zhun kao zheng, wo ye shi mei zhao le
wo yao shang JX xing wei mi huo da shang
la wan le yi ge xiao shi T1 dou mei tiao hao, QwQ
oh bu bu bu, wo wu yi shi fen nu de, wo yi jing fang qi le
4:30 kai shi xie T2, T1 tiao hao jiu dou mei guo da yang li, wo jue de zhe ci wo lian 2= dou na bu dao, xian zai gu zhi you 20 fen, QwQ
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ
oh yeah, zhe ge ke wu de CCF chu le 3 dao tu lun, ha ha ha, wo men mei jiu le
tian lin lin, di lin lin, gei ge 2= xing bu xing
wo fang qi le, kao sha bu hao kao tu lun, wo zhen fu le (*-_-)
5:45 ben xiang yong DFS chang shi zuo yi xia T3, jie guo xie le ban tian xie gua le, wo yun. CCF ni wei shen me yao kao tu lun a !!!!
ning yi ji ku.
*/

人话版:

luogu uid:1658585
今年也是 J 和 S 双打,老师没给我带准考证,我也是没招了
我要上 JX 行为迷惑大赏
拉完了,一个小时 T1 都没调好,QwQ
哦不不不,我无意愤怒,我已经放弃了
4:30 开始写 T2,T1 调好就都没过大样例,我觉得这次我连 2= 都拿不到,现在估只有 20 分,QwQ
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ QwQ
哦耶,这个可恶的 CCF 出了 3 道图论,哈哈哈,我们没救了
天灵灵,地灵灵,给个 2= 行不行
我放弃了,考啥不好考图论,我真服了 (*-_-)
5:45 本想用 DFS 尝试做一下 T3,结果写了半天写挂了,我晕。CCF 你为什么要考图论啊!!!!
你已急哭.

JX-S00029

这位考生也只交了 T1 的代码,祝好。

JX-S00030

hub.cpp

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

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

    cout<<1<<endl<<2<<endl;

    //ccf ni ma si le
    return 0;
}

migrate.cpp

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

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

    cout<<1<<endl<<0<<endl<<2;

    //ccf ni ma si le
    return 0;
}

subway.cpp

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

int c,n,m,d,q;
int main(){
    freopen("subway.in","r",stdin);
    freopen("subway.out","w",stdout);
    cin>>c>>n>>m>>d>>q;
    for(int i = 1;i<=q;i++){
        cout<<2<<endl;
    }


    //ccf ni ma si le
    return 0;
}

禁三祝好。

JX-S00035

只有 T1,T3 的代码。

migrate.cpp

#include<bits/stdc++.h>
using namespace std;
int a[2000010];
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    freopen("migrate.in","r",stdin);
    freopen("migrate.out","w",stdout);
    int c;
    cin>>c;
    int t;
    cin>>t;
    while(t--){
        int n;
        int d;
        cin>>n>>d;
        for(int i=1;i<=n;i++){
            cin>>a[i];
        }
        int m=a[2]-a[1];
        if(d>=2*m && d<3*m){
            cout<<n-3<<endl;
        }
        else{
            cout<<0<<endl;
        }
    }
    return 0;
}

祝好。

JX-S00039

这位考生每题代码后都有:

// ming yun yi ran zhu ding
// nu li jie zai dang jin

看得出来是真努力。

等一下,看看 T2:

subway.cpp

...

// ming yun yi ran zhu ding
// nu li jie zai dang jin

// qi xiao le, ba n,m de yi si kan fan le
// cheng gong lang fei shi ji fen zhong

人话:

气笑了,把 n,m 的意思看反了
成功浪费十几分钟

跟我一样,只不过我浪费了半个多小时,/(ㄒoㄒ)/~~

JX-S00042

这位考生也仅仅交了一份代码,祝好。

JX-S00049

crystal.cpp

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

int main(){
    freopen("crystal.in", "r", stdin);
    freopen("crystal.out", "w", stdout);
    long long n,m;
    long long a[n+10];
    cin >> n >> m;
    for(long long i=1;i<=n+1;i++){
        cin >> a[i];
    }
    if(n==5&&m==5){
        cout<<3;
    }
    else if(n==5&&m==8){
        cout<<4;
    }
    return 0;
}

subway.cpp

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

int main(){
    freopen("subway.in", "r", stdin);
    freopen("subway.out", "w", stdout);
    long long c,n,m,d,q;
    cin >> c >> n >> m >> d >> q;
    if(c==0&&n==2&&m==5&&d==20&&q==2){
        cout<<32<<endl<<17;
    }
    else if(c==0&&n==3&&m==7&&d==20&&q==2){
        cout<<35<<endl<<16;
    }
    return 0;
}

migrate.cpp

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

int main(){
    freopen("migrate.in", "r", stdin);
    freopen("migrate.out", "w", stdout);
    int c,t;
    int a[100000010];
    cin >> c >> t;
    if(c==0){
        for(int i=1;i<=t;i++){
        int n,d;
        cin >> n >> d;
        for(int j=1;j<=n;j++){
            cin >>a[j];
            if(n==4&d==2){
                cout<<1<<endl;
            }
            else if(n==5&d==2){
                cout<<2<<endl;
            }
            else if(n==5&d==3){
                cout<<0<<endl;
            }
            else if(n==6&d==2){
                cout<<1<<endl;
            }
        }
    }

    }
    return 0;
}

hub.cpp

#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++){
        int n,k;
        cin >> n >> k;
        for(int j=1;j<n;j++){
            int u,v;
            cin >> u >> v;
        }
        if(n==5&&k==2){
            cout<<1<<endl;
        }
        else if(n==10&&k==3){
            cout<<2<<endl;
        }

    }
    return 0;
}

骗分大佬,%%%,祝好。

JX-S00050

subway.cpp

#include<bits/stdc++.h>
using namespace std;
int main()
{
    freopen("subway.in","r",stdin);
    freopen("subway.out","w",stdout);
    cout<<"32 17";
    fclose(stdin);
    fclose(stdout);
    return 0;
}

migrate.cpp

#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;
    if(c == 0) return 0;
    else cout<<"0 4";
    fclose(stdin);
    fclose(stdout);
    return 0;
}

hub.cpp

#include<bits/stdc++.h>
using namespace std;
int main()
{
    freopen("hub.in","r",stdin);
    freopen("hub.out","w",stdout);
    cout<<"0 2";
    fclose(stdin);
    fclose(stdout);
    return 0;
}

祝好。

JX-S00051

这位考生仅有一份代码。

csystal.cpp

#include<bits/stdc++.h>
sting namespace std;
int main(){

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












    return 0;
}

相信你是不小心的。

JX-S00052

这位考生后三题代码均为:

#include <bits/stdc++.h>
using namespace std;
int main(){
    freopen("*.in", "r", stdin);
    freopen("*.out", "w", stdout);
    cout << "1\n2";
    return 0;
}

祝好。

JX-S00053

这位考生仅有 2 份代码,其中:

subway.cpp

#include<bits/stdc++.h>
using namespace std;
const int N=505,M=5e5;
int s[N][M],ne[N][M];
int w[M];
void bfs(){

}
int main(){
    freopen("subway5.in","r",stdin);
    //freopen("subway.out","w",stdout);
    int c,n,m,d,q;
    cin>>c>>n>>m>>d>>q;
    for(int i=1;i<=n;i++){
        int k,idx=0,be;
        cin>>k;
        for(int j=1;j<=n;j++){
            int a,t;
            cin>>a>>t;
            s[i][a]=t;
            be=a;
        }
    }
    return 0;
}

祝好。

JX-S00055

hub.cpp

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

int main(){

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

    return 0;
}

这是摆烂了吗?

JX-S00058

后三题的代码都没有 freopen,祝好。

JX-S00059

hub.cpp

#include <bits/stdc++.h>
using namespace std;
int main() {
    freopen("hub.in", "r", stdin);
    freopen("hub.out", "w", stdout);
    cout << "2" << "\n" << "3";
    return 0;
}

migrate.cpp

#include <bits/stdc++.h>
using namespace std;
int main() {
    freopen("migrate.in", "r", stdin);
    freopen("migrate.out", "w", stdout);
    cout << "0" << "\n" << "1";
    return 0;
}

subway.cpp

#include <bits/stdc++.h>
using namespace std;
int main() {
    freopen("crystal.in", "r", stdin);
    freopen("crystal.out", "w", stdout);
    cout << "30" << "\n" << "14";
    return 0;
}

祝好。

(好像顺序有点错了,没事儿

JX-S00060

migrate.cpp

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
    freopen("migrate.in", "r", stdin);
    freopen("migrate.out", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int c, t;
    cin >> c >> t;
    if(c == 0) {
        int n, d;
        cin >> n >> d;
        if(n == 4 && d == 2) {
            cout << "1\n2";
        } else if(n == 5 && d == 3) {
            cout << "0\n1";
        } else if(n == 197 && d == 29418319589926278) {
            cout << "8129\n16\n9\n7\n12\n0\n0\n0\n2\n1\n0\n2\n3\n6\n0\n2\n0\n";
        } else if(n == 260000 && d == 1) {
            cout << "0\n0\n259997\n259995\n86669\n0\n0\n0\n7\n5\n5\n0";
        } else if(n == 200001 && d == 206291914738518400) {
            cout << "9999900000\n399995\n0\n716427\n0\n0\n2\n1\n0\n2\n3\n6\n0\n2\n";
        } else if(n == 174944 && d == 139950) {
            cout << "6800625333\n6247500\n6242502\n4998\n9994\n0\n0\n0\n2\n1\n0\n2\n3\n6\n0\n2";
        }
    }
    while(t--) {
        cout << "0\n";
    }
    return 0;
}

太狠了。

JX-S00061

后三题代码均为:

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

int main(){
    return 0;
}

JX-S00063

这位考生只交了一题的代码,祝好。

JX-S00066

四题代码均为:

if you make the exam truely,please give * point

(以上为代码全部)

想要几分自己填,这位考生共填了 100+50+30+0=180 分。

JX-S00068

受害者。

这位考生交了 2 道题,crystal 注释了 freopen,subway 为空文件。

罚坐了一下午

JX-S00077

crystal.cpp

...
//wan dan le

subway.cpp

...
//hao ji ge yue mei xie zui duan lu de xia chang
//jin shi hou ren:yi hou csp qian yi ding yao xie zui duan lu
//a lian shi qian xiang xing wo ye hao jiu mei xie le a
//zui jin lian de yi ge mei kao aaa QAQ

migrate.cpp

//AFO li wo bu yuan le.

翻译:

完蛋了

好几个月没写最短路的下场
进食后人:以后 csp 前一定要写最短路
啊链式前向星我也好久没写了啊
最近连的一个没考 aaa QAQ

AFO 离我不远了

进食后人:以后 csp 前一定要写最短路。

祝好喵~。

JX-S00087

subway.cpp

#include <iostream>
using namespace std;
const int N = 5e5+10;
int w[N];
struct ddd{
    int g,t;
}a[N];

int main(){
    freopen("subway.in","r",stdin);
    freopen("subway.out","w",stdout);
    int c,n,m,d,q;
    cin>>c>>n>>m>>d>>q;
    for(int i=1;i<=m;i++){
        cin>>w[i];
    }
    for(int i=1;i<=n;i++){
        int k;
        cin>>k;
        for(int j=1;j<=k;j++){
            cin>>a[i].g>>a[i].t;
        }
    }
    int x,y;
    cin>>x>>y;
    if(x == 1&&y == 3){
        cout<<32<<"\n"<<17;
    }
    else if(x == 1&&y == 6){
        cout<<35<<"\n"<<16;
    }
    else if(x == 123&&y == 131){
        //
        cout<<341<<"\n"<<667<<"\n"<<1255<<"\n"<<775<<"\n"<<558<<"\n"<<863<<"\n"<<540<<"\n"<<250<<"\n"<<1088<<"\n"<<1225<<"\n"<<1257<<"\n"<<360<<"\n"<<758<<"\n"<<703<<"\n"<<474<<"\n"<<357<<"\n"<<791<<"\n"<<780<<"\n"<<1015<<"\n"<<222<<"\n"<<212<<"\n"<<458<<"\n"<<570<<"\n"<<1429<<"\n"<<1052<<"\n";
        cout<<263<<"\n"<<874<<"\n"<<392<<"\n"<<1247<<"\n"<<1036<<"\n"<<426<<"\n"<<291<<"\n"<<292<<"\n"<<1342<<"\n"<<1339<<"\n"<<267<<"\n"<<632<<"\n"<<797<<"\n"<<232<<"\n"<<446<<"\n"<<496<<"\n"<<638<<"\n"<<899<<"\n"<<408<<"\n"<<914<<"\n"<<516<<"\n"<<336<<"\n"<<963<<"\n"<<1181<<"\n"<<589<<"\n";
        cout<<389<<"\n"<<178<<"\n"<<762<<"\n"<<340<<"\n"<<974<<"\n"<<677<<"\n"<<527<<"\n"<<281<<"\n"<<512<<"\n"<<1069<<"\n"<<509<<"\n"<<653<<"\n"<<437<<"\n"<<1074<<"\n"<<569<<"\n"<<1331<<"\n"<<236<<"\n"<<692<<"\n"<<1059<<"\n"<<402<<"\n"<<1058<<"\n"<<241<<"\n"<<285<<"\n"<<121<<"\n"<<422<<"\n";
        cout<<262<<"\n"<<577<<"\n"<<593<<"\n"<<398<<"\n"<<359<<"\n"<<506<<"\n"<<402<<"\n"<<926<<"\n"<<510<<"\n"<<639<<"\n"<<709<<"\n"<<329<<"\n"<<808<<"\n"<<94<<"\n"<<1314<<"\n"<<329<<"\n"<<795<<"\n"<<592<<"\n"<<391<<"\n"<<786<<"\n"<<349<<"\n"<<576<<"\n"<<405<<"\n"<<843<<"\n"<<464<<"\n";
        //
        cout<<395<<"\n"<<634<<"\n"<<601<<"\n"<<814<<"\n"<<998<<"\n"<<1380<<"\n"<<1200<<"\n"<<985<<"\n"<<862<<"\n"<<683<<"\n"<<304<<"\n"<<343<<"\n"<<500<<"\n"<<538<<"\n"<<536<<"\n"<<811<<"\n"<<722<<"\n"<<292<<"\n"<<431<<"\n"<<368<<"\n"<<985<<"\n"<<487<<"\n"<<277<<"\n"<<205<<"\n"<<329<<"\n";
        cout<<1248<<"\n"<<837<<"\n"<<965<<"\n"<<765<<"\n"<<707<<"\n"<<1047<<"\n"<<355<<"\n"<<666<<"\n"<<565<<"\n"<<407<<"\n"<<228<<"\n"<<690<<"\n"<<1175<<"\n"<<126<<"\n"<<1015<<"\n"<<461<<"\n"<<235<<"\n"<<354<<"\n"<<100<<"\n"<<758<<"\n"<<388<<"\n"<<839<<"\n"<<574<<"\n"<<553<<"\n"<<349<<"\n";
        cout<<330<<"\n"<<659<<"\n"<<438<<"\n"<<352<<"\n"<<1347<<"\n"<<879<<"\n"<<897<<"\n"<<266<<"\n"<<313<<"\n"<<1072<<"\n"<<1246<<"\n"<<512<<"\n"<<285<<"\n"<<430<<"\n"<<724<<"\n"<<965<<"\n"<<949<<"\n"<<1072<<"\n"<<295<<"\n"<<475<<"\n"<<348<<"\n"<<1188<<"\n"<<153<<"\n"<<171<<"\n"<<132<<"\n";
        cout<<638<<"\n"<<664<<"\n"<<306<<"\n"<<841<<"\n"<<1154<<"\n"<<831<<"\n"<<1072<<"\n"<<523<<"\n"<<358<<"\n"<<608<<"\n"<<256<<"\n"<<1230<<"\n"<<300<<"\n"<<617<<"\n"<<1342<<"\n"<<1500<<"\n"<<268<<"\n"<<250<<"\n"<<280<<"\n"<<389<<"\n"<<665<<"\n"<<624<<"\n"<<667<<"\n"<<693<<"\n"<<297<<"\n";
    }


    return 0;
}

先生,这得费不少肝。

JX-S00110

subway.cpp

#

(以上为代码全部)

后面两题连 * 都没打,Good Luck。

JX-S00111

crystal.cpp

#include<bits/stdc++.h>
using namespace std;
long long n,m,cnt=0,ll;
long long a[500050],b[500050];
int main(){
    freopen("crystal.in","r,stdin);
    freopen("crystal.out","w",stdout);
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cin>>n>>m;
    for(int i=1;i<=n;i++){
        cin>>a[i];
    }
    sort(a+1,a+n+1);
    long long l=a[0],r=a[n];
    long long mid=a[0],po=1;
    while(l<r){
        mid=(l+r)/2;
        int st,nm=m;
        for(int i=1;i<=n;i++){
            b[i]=mid-a[i];
        }
        for(int i=1;i<=n;i++){
            if(l>=0){
                st=i;
                break;
            }
        }
        for(int i=st;i>=1;i++){
            if(nm>=b[i]){
                nm+=b[i];
            }
        }
        if(nm>0&&nm<po){
            r=mid-1;
        }else{
            l=mid;
        }
    }
    int ww;
    for(int i=1;i<=n;i++){
        if(a[i]<=mid){
            ++cnt;
        }else{
            if(a[i]==ww){
                ++cnt;
            }else{
                ww=a[i];
            }
        }
    }
    cout<<cnt;
    return 0;
}

可以把代码粘到 VScode 看一下,还以为我电脑坏了

JX-S00122

crystal.cpp

/*---------------------
by DRheEheAM (awa)-----
love hanser forever!---
---------------------*/
...

hanser 真爱粉。

JX-S00126

crystal.cpp

#include<bits/stdc++.h>
using namespace std;
int n;
long long m,a[500005],q[500005],need[500005];
int main(){
    freopen("crystal.in","r",stdin);
    freopen("crystal.out","w",stdout);
    ...(此处为省略)
    return 0;
}
//676767676767676767676767

hub.cpp

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

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

    //I need a free huge!!!
    return 0;
}
//487487487487487487487487487487487487

不做评价

JX-S00127

migrate.cpp

#include <bits/stdc++.h>
using namespace std;
int main() {
    freopen("migrate.in", "r", stdin);
    freopen("migrate.out", "w", stdout);
    //kyo de saigo desu
    //sayonara 

    //odd dice suki
    //millsage suki


    return 0;
}

这是首歌喵?