跳到正文

休闲·娱乐

HB CSP-J2026迷惑行为大赏

I_am_Trisolaris约 14 分钟
原文
文章信息与版本

文章信息

发布
2026年11月6日
收录
2026年11月14日
更新
2026年11月20日
篇幅
约 14 分钟

版本

  1. v1当前

本文是作者手动枚举的,所以耗费的时间很长,所以点个赞吧,谢谢了(如果不想上的可以联系作者删除)。

本场比赛共出现了inf个诈骗犯,下面中没有列出所有诈骗犯

HB-J00001

travel

C++
#include <iostream>
using namespace std;
int main(){
    freopen("travel.in","r",stdin);
    freopen("travel.out","w",stdout);
    long long a;
    cin>>a;
    return 0;
}

不是我输出呢?

string

C++
#include <iostream>
using namespace std;
int main(){
    freopen("string.in","r",stdin);
    freopen("string.out","w",stdout);
    string s=" ";
    int n;
    cin>>n;
    for (int i=1;i<=n;i++){
        int a;
        char d;
        cin>>a>>d;
        i<=1;
        for (int j=1;j<=n;j++){
            s=1;
        }

    }
    return 0;

}

666又没有输出

and

C++
#include <iostream>
using namespace std;
void
int main(){
    freopen("and.in","r",stdin);
    freopen("and.out","w",stdout);
    cin>>s>>n;
    for (int i=1;i<=n;i++){
        cin>>a[i];
    }

    return 0;

}

不是怎么还报错了

card ta的代码一个字没有,感觉得分是0,默哀。

HB-J00002

ta所有题都没有写文件读写,而如果写上将获得100+4+20+0的成绩,默哀

HB-J00003

ta的第三题把and.in和and.out写成了ans.in和ans.out,如果不写错,那么ta是90+24+45+68=227的好成绩。默哀

HB-J00006

这是ta的card全代码

C++
#include<bits/stdc++.h>
using namespace std;
int main ()
{
    cout<<13;
    return 0;
}

显然这个人是想骗分,但没有写文件读入。

HB-J00008

为什么这个人每个代码后面都要加上一个

C++
fclose(stdin);
fclose(stdout);

蒟蒻不明白,大佬们能解答一下吗?

HB-J00010

这个人的and显然在骗分

C++
#include <bits/stdc++.h>
using namespace std;
char a[200010];
int main(){
    freopen("and.in","r",stdin);
    freopen("and.out","w",stdout);
    int n,m;
    cin>> n,m;
    for(int i = 0; i <= n ; i++){
        cin >> a[i];
        if(i == n){
            cout << a[i];
        }
    }
    return 0;
}

这个人竟然还骗到了5pts,警防骗分er

还有这个人的string为什么报错了,ta不自测吗

C++
#include <bits/stdc++.h>
using namespace std;
char a[200010], char c[200010];
int main(){
    freopen("string.in","r",stdin);
    freopen("string.out","w",stdout);
    int n; cin >> n;
    int ans = 0;
    for(int i = 0;i <= n; i++){
        cin >> a[n] >> c[n];
        string s = a[n] * c[n];
        if(s[1]) == s[i+1]{
            cout << 0;
        }
    }
    cout << a[1];
    return 0;
}

HB-J00011

这个人除了travel没骗分,其他的都是输出一个数来骗分,警防。

HB -J00013

来自这个人的card的注释:

C++
/*
Trick||Treat!
Trick or Treat!
~~I remembered one thing...~~
# Today is Hallowing!!!
So why nobody make a "Strange Actions"(“迷惑行为大赏”) for HuBei Province?
My luogu id:1876559, name:yghdby
now:100 + 0 + 25 + 48 = 173 pts(at 09:45)
now:100 + 50 + 25 + 48 = 223 pts(at 10:04)
By the way:who used vi or vim as me, as well?
I love read()ing!!!
什么?你问我哪里来的中文输入法?
设置里调的。。。
\bx\bx\bx
*/

不过我的vscode中ta写的getchar_unlocked()报错了,大佬能指教一下吗。

HB-J00014

来自and的注释

C++
//<jing feng>
//1 bai liu jia yi -- kao de quan hui
//2 bai du san ying -- meng de quan dui
//3 bai mu si cheng -- kao de bu hao jiu ba bie ren de fen tou guo lai

来自card的注释

C++
//rp++
//rp++
//rp++
//rp++
//rp++
//rp++
//rp++
//rp++
//rp++

还有rp仙人

HB-J00017

这个人的travel的freopen被注释了,默哀。

代码
freopen("travel.in","r",stdin);
//freopen("travel.out","w",stdout);

HB-J00018

这个人和HB-J00011一样,都是后三题在骗分。

HB-J00019

fot是什么新循环吗,我咋不知道。

来自ta的card代码:

C++
fot(int i = 1;i <= n;i++){
    cin >> a[i];
}

HB-J00021

还有题解人(来自ta的and)

C++
/*
===10:03===
max? it seems like dp...
i cannot do any dp...

no thoughts
let me take a look at t4

===11:14===
im back
now only 212pts
i need to get at least 40pts on t3?
break a leg!!

let me see whether i can use mo'ni or tan'xin
mo'ni is O(n^m)
it can only take about 20pts

5 3
31 3 1 15 7
if m=2, max=31&15=15
so it can be

4 2
15 3 1 7
is it?
max=15&7=7

likely
do it first
O(n^m) => O(n^2*m)

we can get it faster
if i<max||j<max,i&j will impossible >max
so it can take some continues

===11:55===
give up
i have no time

200+12+12=224pts?
c u afternoon

Goodnight.
*/

翻译:

代码
===10:03===
最大值?看起来像动态规划……
我一点动态规划都不会做……

没思路
让我看看第4题

===11:14===
我回来了
现在只有212分
我需要在第3题上至少拿40分?
祝我好运!!

让我看看能不能用模拟或贪心
模拟是 O(n^m)
大概只能拿20分

5 3
31 3 1 15 7
如果 m=2,最大值=31&15=15
所以可以是

4 2
15 3 1 7
是吗?
最大值=15&7=7

很可能
先这么做
O(n^m) => O(n^2*m)

我们可以做得更快
如果 i<max 或 j<max,那么 i&j 不可能大于 max
所以可以取一些连续段

===11:55===
放弃
我没时间了

200+12+12=224分?
下午见

晚安。

card:(由于我很懒,不想翻译了)

C++
/*
===10:17===
wtf is this
isnt this just mo'ni?

nonono this is another dp

===10:59===
logic is correct but tle seriously
O(n^2*m^2)
what should i do...

===11:06===
give up, 100+100+0+12=212pts?
*/

string:

C++
/*
===09:20===
i do not have any thoughts...

===09:59===
t2 string
6 all accepted, 100+100=200 pts???

will it???
will i???

let me check my freopens
*/

travel:

C++
/*
CSP-J 2026

===08:31===
thank you for the whole days
4 years isnt a short time
but i have got no 1=

this might not my last csp
but im surely a grade-9 student
rp++!!!

===09:10===
t1 travel
5 all accepted, 100pts?

thanks!!!
i wont forget you!!!!
*/

HB-J00028

这个人以为自己的i是定义在外面。

C++
for(int i=1;i<=n;i++)
{
    sum[i]=sum[i-1]&a[i];
}
cout<<sum[i];

这个是ta的card的代码:

C++
#include<bits/stdc++.h>
using namespace std;
int a[500050];
int main()
{
    freopen("card.in","r",stdin);
    freopen("card.out","w",stdout);
    int n,m;
    cin>>n>>m;
    for(int i=1;i<=n;i++)
        cin>>a[i];
    for()
    return 0;
}

这题好歹可以写个暴力吧。

HB-J00029

and原来也可以打表啊(代码过长,不予展示)。

HB-J00030

C++
//bai bai CSP
//yong bie le

祝好。

HB-J00031

为什么and这么多人这样骗分:

C++
#include<bits/stdc++.h>
using namespace std;
int m,n;
long long a[200005];
int main()
{
	freopen("and.in","r",stdin);
	freopen("and.out","w",stdout);
	cin>>n>>m;
	for(int i=1;i<=n;i++)cin>>a[i];
	cout<<a[n];
	return 0;
}

HB-J00036

这是ta的string的定义:

C++
long long a[200002]
char c[200002]

而且ta的travel的freopen被注释了。默哀。

HB-J00037

ta除了第一题,其他的都在骗分,太可恶了!!!

HB-J00038

诈骗犯++!

HB-J00039

ta的and的freopen被注释了,但本来一分都得不了。

HB-J00042

这个来自ta的and和card的注释。

C++
//bu hui miao qiu qiu le gei dian fen rang wo xia wu neng guo CSP-S;

翻译:不会喵,求求了给我点分,让我下午能过CSP-S。(这么强,还去考S)

HB-J00043

诈骗犯++!

HB-J00046

这个人的四题都没有写freopen,但如果写了的话能获得10pts,保龄默哀。

HB-J00047

为什么travel还有报错的啊。

HB-J00056

ta的and没有定义ans变量却再用,现在打CSP都不自测了吗。

HB-J00060

为检测到人脸…(今日任务,找到其中正确的地方)

ta四题的代码差不多都是这样。

C++
#include <bits/stdc++>
using namesacpe std;
int main()
{
freopen ("and.in","r",stdin);
freopen ("and.out","w",stdout);
int a,b;
cin>>a>>b;



cout<<"12";





frclose(stdin);
frclose(stdout);


return 0;

}

HB-J00066

加油!(来自string的注释)

C++
//RP++

HB-J00069

来自and的注释:

C++
//<<speed of light>> - Never gonna give you up,never gonna let you down
//Arknights JT8-3 XX XXXX!(?
//0~10 pass 13 pass?
//rp++

来自card的注释:

C++
//Miku is the best!
//39!

来自string的注释:

C++
//Logos-super big cup!
//XX XXXX!

来自travel的注释:

C++
//Gino Jiu 99
//nothing could better when i with you,when i with you~
//X X XXX
//X X XXX
//XX X XXXX
//XX X XXXX
//hyw 14 14.9>15(

由于作者的英语水平太烂,读不懂是什么意思。

原文