BJ-J迷惑行为大赏
今年 BJ 一共有 2071 位选手。
数据统计/省流
有 79 份代码包含一共 258 个 //freopen,有 7 分代码包含一共 8 个 // freopen。
有 8 份代码一共包含 11 个 迷惑行为。
有 8 份代码包含一共 34 个 love,其中有 1 个是我写的。
有 4 份代码包含一共 4 个 CCF。有 7 份代码包含一共 8 个 AK(全匹配),其中有 1 个是我写的。
有 24 份代码包含一共 26 个 Luogu,其中有 4 个是我写的。
有 3 份代码包含一共 3 个 you have no egg。
有 1 份代码包含一共 1 个 cout<<r<<c,有一份代码包含一共 1 个 cout << n << m,好在他们的代码都没过编译。
有 1351 份代码包含一共 9254 个 //,即注释。其中有将近一半的 // 由 BJ-J00091\polygon.cpp 贡献。
代码文件大小前 30:
FullName Size(KB)
-------- --------
BJ-J00837\xor\xor.cpp 100
BJ-J01828\polygon\polygon.cpp 96.19
BJ-J00091\polygon\polygon.cpp 94.35
BJ-J00592\number\number.cpp 59.9
BJ-J00793\polygon\polygon.cpp 49.41
BJ-J01663\polygon\polygon.cpp 48.72
BJ-J00036\polygon\polygon.cpp 48.29
BJ-J01311\polygon\polygon.cpp 35.17
BJ-J01024\polygon\polygon.cpp 28.69
BJ-J00080\polygon\polygon.cpp 25.74
BJ-J00818\polygon\polygon.cpp 22.76
BJ-J00016\polygon\polygon.cpp 21.35
BJ-J01244\polygon\polygon.cpp 20.5
BJ-J01608\polygon\polygon.cpp 18.88
BJ-J00950\polygon\polygon.cpp 16.59
BJ-J01145\polygon\polygon.cpp 16.43
BJ-J00600\polygon\polygon.cpp 16.25
BJ-J00922\xor\xor.cpp 11.55
BJ-J00089\polygon\polygon.cpp 11.05
BJ-J01317\xor\xor.cpp 10.09
BJ-J01131\number\number.cpp 9.39
BJ-J01317\polygon\polygon.cpp 9.16
BJ-J00876\polygon\polygon.cpp 9.02
BJ-J01469\polygon\polygon.cpp 8.93
BJ-J01868\xor\xor.cpp 8.5
BJ-J01789\polygon\polygon.cpp 8.19
BJ-J01537\polygon\polygon.cpp 7.89
BJ-J01317\seat\seat.cpp 7.44
BJ-J01003\xor\xor.cpp 7.12
BJ-J01948\polygon\polygon.cpp 7.07
你可以在 windows-powershell 中使用如下指令生成上表:
Get-ChildItem -Recurse -Filter *.cpp | Sort-Object Length -Descending | Select-Object -First 20 FullName, @{Name="Size(KB)";Expression={[math]::Round($_.Length/1MB, 2)}}
代码行数前 30:
FullPath Lines
-------- -----
BJ-J01828\polygon\polygon.cpp 2310
BJ-J01024\polygon\polygon.cpp 1606
BJ-J01311\polygon\polygon.cpp 703
BJ-J01131\number\number.cpp 627
BJ-J00818\polygon\polygon.cpp 611
BJ-J00036\polygon\polygon.cpp 597
BJ-J00080\polygon\polygon.cpp 570
BJ-J01522\polygon\polygon.cpp 540
BJ-J01244\polygon\polygon.cpp 508
BJ-J00016\polygon\polygon.cpp 465
BJ-J00600\polygon\polygon.cpp 450
BJ-J00876\polygon\polygon.cpp 316
BJ-J01469\polygon\polygon.cpp 301
BJ-J01868\xor\xor.cpp 251
BJ-J02018\polygon\polygon.cpp 239
BJ-J00950\polygon\polygon.cpp 237
BJ-J01792\polygon\polygon.cpp 225
BJ-J01948\polygon\polygon.cpp 224
BJ-J01789\polygon\polygon.cpp 218
BJ-J01317\xor\xor.cpp 218
BJ-J01018\seat\seat.cpp 216
BJ-J01608\polygon\polygon.cpp 211
BJ-J01859\polygon\polygon.cpp 211
BJ-J01376\xor\xor.cpp 208
BJ-J01537\polygon\polygon.cpp 199
BJ-J00167\xor\xor.cpp 197
BJ-J01733\polygon\polygon.cpp 193
BJ-J01317\polygon\polygon.cpp 190
BJ-J00463\polygon\polygon.cpp 190
BJ-J01145\polygon\polygon.cpp 189
你可以在 windows-powershell 中使用如下指令生成上表:
Get-ChildItem -Recurse -Filter *.cpp | ForEach-Object {
$lineCount = (Get-Content $_.FullName | Measure-Object -Line).Lines
[PSCustomObject]@{
FullPath = $_.FullName
Lines = $lineCount
}
} | Sort-Object Lines -Descending | Select-Object -First 30
对于非注释的代码,我随机看了 200+ 人的代码后发现:
T1 有很多人看起来没学过 char,会写 10 个 if 来判断一个 char 类型的变量分别等于 0~9。
T4 有一些神人写四五百行的代码,原因是只会写 for 循环嵌套而不会写递归。
关键词
//freopen
有 79 份代码包含一共 258 个 //freopen,其中非整活的有 31 人:
BJ-J00024\polygon
BJ-J00228\xor
BJ-J00239\polygon
BJ-J00337\polygon
BJ-J00442\xor
BJ-J00543\xor
BJ-J00622\xor
BJ-J00625\polygon
BJ-J00667\number
BJ-J00689\number
BJ-J00689\seat
BJ-J00689\xor
BJ-J00737\polygon
BJ-J00787\number
BJ-J00790\seat
BJ-J00871\seat
BJ-J00946\xor
BJ-J00973\polygon
BJ-J01024\ploygon
BJ-J01024\xor
BJ-J01047\polygon 没开freopen并写了如下注释:
//luogu uid:o wang le
//hhh
//T3 xin shang da zuo
//11:59:59
//RP+=114514;
BJ-J01094\number
BJ-J01125\seat:
freopen("seat.in","r+",stdin);
freopen("seat.out","w+",stdout);
//freopen("seat3.in","r+",stdin);
//freopen("seat3.out","w+",stdout);
BJ-J01300\seat
BJ-J01362\polygon
BJ-J01480\seat
BJ-J01511\polygon
BJ-J01722\number
BJ-J01722\seat
BJ-J01759\polygon
BJ-J01844\polygon 代码甚至编译错误
BJ-J01844\xor
BJ-J01881\polygon
BJ-J01934\xor 并输出以下内容:
cout<<"nieshiyao"<<endl;
BJ-J01946\xor
BJ-J01966\polygon
迷惑行为
有 8 份代码一共包含 11 个 迷惑行为,分别如下:
BJ-J00080\polygon 递归展开
代码太长了只放张图片吧:
BJ-J00212\polygon please give me more score!
#include<bits/stdc++.h>
#include<time.h>
using namespace std;
//please give me more score!
bool cmp(int a,int b){
return a<b;
}
const int mod=998244353;
int n;
int rp=114514;
int lst[5005];
long long int dp[5005];
long long int sum[5005];
//dp[i]:以lst[i]为最大值,能够构建的最多的多边形
//然后不会了 QwQ
/*
//freopen("polygon.in","r",stdin);
//freopen("polygon.out","w",stdout);
feropen
int a[100000000000]
预测总分100+100+55=255tps,不知道能不能一等
右边的大神120min就做完了所有题,豪强
————一名初一蒟蒻(关注洛谷 Lantern_LZY谢谢喵)
我要上迷惑行为榜
*/
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin>>n;
for(int i=1;i<=n;i++){
cin>>lst[i];
}
sort(lst+1,lst+1+n,cmp);
return 0;
}
BJ-J00621\polygon 游记+报名费涨价了
前面写了正常的代码,然后有如下注释:
// fropen("ploygon.in", "r", stdin);
// freopen("polygon4.out", "w", stdout);
// 我要上洛谷迷惑行为大赏!!!
// you have no egg!!!
// 西西佛你什么时候换新评测机了?!
// 这下知道为啥涨价了
/*
11:07 大样例测完了,感觉T3T4正解做不出来了。
预估 100 + 100 + 60 + 40 = 300
希望别挂分。
西西佛神机保佑我一分不挂!!!
西西佛神机保佑我300pts上一等!!!
下午还要考S,无了。
11:42 freopen写错了才发现!!!
11:55 天那我的cnt没初始化!!
*/
BJ-J01172\polygon welcome to T4
/*
welcome to T4
my luogu uid: 1318015 & 1641551(xiaohao)
Is it ok to add chinese in my code.?
I hope my code can 上迷惑行为大赏
We can 定义 1000000000 这么大的int数组。
真这样电脑就 Booooooooooooom 炸了。
塞尔达是天!
*/
/*
一、总则
1.应严格遵守考场纪律,服从考场管理,不得妨碍工作人员履职,不得扰乱考场秩序或干扰其他考生,不得实施危害他人的行为。
二、进场
2.须凭准考证和有效身份证件,在指定时间、地点参加考试,开考30分钟后不得入场。
3.仅可携带笔、饮用水、食品和未拆封的纸巾入场,严禁携带电子设备及书包、书籍、稿纸等,违规带入视同作弊。
4.入场须接受身份核验,拒不配合者将被禁止入场,后果自负。
三、场内
5.入场后须按号就座,将准考证和身份证置于醒目位置,便于核验。
6.场内计时设备仅供参考,开考、终考时间以统一指令为准。
7.开考信号发出后方可答题,且须按规定作答和提交;开考前不得阅读题面或操作比赛用机。
8.考试期间保持安静,禁止交流、旁窥、抄袭、提供他人抄袭或自行传递物品,违者按作弊处理。
四、离场
9.考试统一结束前,无特殊情况不得离场。特殊情况由 科学委员会裁定。
10.考试统一结束信号发出后,须立即停止答题。如考试为机试,则锁定计算机屏幕且不得关机。
11.按指令有序离场。离场时禁止将试卷、答题纸、草稿纸等带出考场。
五、其他
12.考试中遇特殊或突发情况,应立即报告并服从现场指令。
13.进场后因病需离场的考生,须经工作人员同意并陪同前往医务室,能坚持考试的可返回,但补时不超过60分钟;不能坚持者不得返回,须由工作人员全程陪同至考试结束,其间不得泄露考试信息。
14.考试结束前15分钟不得离座。
六、裁定
15.对于作弊、违纪行为以及其他未尽事项,均由 科学委员会裁定处理。
*/
/*
接下来是诈骗环节
seiseiaifu是敏感词不敢交
AFOAFOAFOAFOAFOAFOAFOAFOAFOAFOAFOAFO
LovelOveloVelovELOveLoVeLovElOVelOvEloVELOVeLOvELoVElOVELOVE
freopen("number.in", "w", stdin);
freopen("number.out", "r", stdout);
freopen("seet.in", "w", stdiiiiiiii);
freopen("sea.out", "w", stdiostream);
freopen("xor", "r", stdcin);
freopen("out.xor", "r", stdcout);
freopen("polygon.in", "r", stdin);
freopen("polygon.out", "w", stdout);
fclose();
*/
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
//freopen(
/*
5 10 10 5 1
OHHHHH that's 杨辉三角 amazing!
所以只需要输出杨辉三角的某一行的和-1就可以拿到
24分!!!amazing!
关于正解,可能需要某种高级的技巧。
十年OI一场空,不开 long long 见祖宗。
*/
#include<iostream>
using namespace std;
typedef long long ll;
const ll mod = 998244353;
ll n;
ll c(ll x, ll y) {
ll lg = 1, cf = 1;
for(ll i = 1; i <= y; i++) {
lg = lg % mod * (n - i + 1) % mod;
cf = cf % mod * i % mod;
}
return lg / cf % mod;
}
int main() {
freopen("polygon.in", "r", stdin);
freopen("polygon.out", "w", stdout);
cin >> n ;
ll ans = 0;
for(ll i = 1; i <= n; i++) ans += c(n, i) % mod;
cout << ans % mod ;
return 0;
}
BJ-J01403\xor 随笔
#include<bits/stdc++.h>
using namespace std;
int main(){
/*
(我是Luogu的Oier,一名初二学生,迷惑行为请放一下我。)
8:30
考场断想
迷迷糊糊地上了生活的贼船,却做不成快乐的海盗 ——引言
(昨天晚上背了线段树的板子,也不知道能不能用上……
忘了Luogu UID了…………)
上周打了梦熊的模拟赛,咕值终于升到了123,成为绿名。才过一周就又掉了回来。
社团老师说有一道紫题特别水,准备带我们过掉(我一看,原来是黒题降下来的?!),讲的我完全听不懂
9:10
(我们考场怎么这么多才开考就要上厕所的?)
(旁边的人怎么一直自言自语啊,)
下周就期中考试了,以后走不了竞赛路,文化课还得认真复习。结果我们学校的篮球比赛还要求我们班全体去,就在下午。
9:45
(我调了三十分钟,终于找到的可以运行程序的软件,我是小丑... /(T^T)\
(我都在调第二题了,旁边自言自语的那位怎么还再念叨着第一题啊?)
10:27
(怎么还看我一眼???)
(我可以说他影响我吗??)
10:30
(我用了两个小时才做完T1,T2,我是蒟蒻 T^T )
11:05
(看着左前的人好像很强的样子,T3不会,T4题目看懵了,已摆栏)
11:18
期中还要考八科,前几天刚体育中考
我的文化课其实学的很不错,rk20左右,但发挥不好会掉到rk80,在尖子班学习压力山大,啊啊啊……
11:23
(好累好饿啊啊啊.......)
11:31
T4暴力骗分,结果推错了,暴力失败......
我心里感觉好慌:我一个高级数据结构都没用上……
T1:O(2*srelen(S)) ,T2:O(2nm), T3:O(0)(已放弃,写随笔)
Rp++ Rp++ Rp++ Rp++ Rp++ Rp++ Rp++ Rp++ Rp++ Rp++ Rp++ Rp++ Rp++ Rp++ Rp++ Rp++
估分150分,能拿奖我吃。
*****************************
********本随笔于11:42结*******
*****************************
*/
return 0;
}
BJ-J01811\polygon 道德经
只放注释:
/*
我要上迷惑行为大赏。
道德经 老子
道可道,非常道。
名可名,非常名。
无,名天地之始;
有,名万物之有。
故常无,欲以观其道;
常有,欲以观其较。
此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。
上善若水,水善利万物而不争,处众人之所恶,故基于道。
居善地,心善渊,与善人,政善志,事善成,动善时。
夫唯不争,故无由。
(我是不是写错了)
*/
/*
____
/ \ This is a sugar bean.
\____/ Sugar bean don't judge your flaws.
May the God of Sugar Bean bless all OIers!
*/
BJ-J02047\polygon Never_Gonna_Give_You_Up
不是 Never_gOnna_gIve_you_uP 差评
#include <algorithm>
#include <iostream>
#include <cstdio>
using namespace std;
void Never_Gonna_Give_You_Up(){
//freopen("polygon.in","r",stdin);
//freopen("polygon.out","w",stdout);
freopen("polygon,in","r",stdin);
freopen("polygon,out","w",stdout);
// freopen("polygon.in","r","stdin");
// freopen("polygon.out","w","stdout");
freopen("polygon.in","r",stdin);
freopen("polygon.ans","w",stdout);
freopen("polygon4.in","r",stdin);
freopen("polygon.out","w",stdout);
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdin);
freopen("polygon.in","w",stdin);
freopen("polygon.out","r",stdout);
freopen("polygon.in","r",stdout);
freopen("polygon.out","w",stdin);
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stderr);
// freopen("polygon.in"."r".stdin);
// freopen("polygon.out"."w".stdout);
freopen("polygun.in","r",stdin);
freopen("polygun.out","w",stdout);
// frepoen("polygon.in","r",stdin);
// freeopen("polygon.out","w",stdout);
// frepen("polygon.in","r",stdin);
// froepen("polygon.out","w",stdout);
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
//freopen("//freopen("//freopen("//freopen("//freopen("
}
//这题……感觉像DP但却找不出最优子结构……先写个pts64逝逝
//我旁边那位还在想T2
//09:55开编
int a[5005];
int n;
int qpow(int a,int b){
int ans = 1;
for (;b;a = 1ll * a * a % 998244353,b >>= 1)if (b & 1) ans = 1ll * ans * a % 998244353;
return ans;
}
int ans = 0;
void dfs(int step,int mpos,int sum){
if (step > n){
if (sum > 2 * a[mpos]) ans++;
return ;
}
dfs(step + 1,mpos,sum);
dfs(step + 1,step,sum + a[step]);
}
void pts64(){
if (a[n] == 1){
cout << (qpow(2,n) - n * (n - 1) / 2 - n - 1 + 998244353) % 998244353 << endl;
return ;
}
dfs(1,0,0);
cout << ans << endl;
}
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
cin >> n;
for (int i = 1;i <= n;i++) cin >> a[i];
sort(a + 1,a + n + 1);
pts64();
return 0;
}
//10:52想到一种反01背包方法,但是不会做了,期望总得分100+100+60+64=324。我旁边那位还在想T2
//都11:30了我旁边那位还在想T2,不是,有那么难吗
//11:35极限查出一个错
//11:47怕炸了把T3的快读删了
//11:50我旁边那个在写T3的不知多少暴力分,观察到比T2的代码还短
//11:57我旁边那个在对他T3的代码修修剪剪,还加上了T4的代码(比T3的代码还短)
//最后说一声,请求四篇代码都上迷惑行为大赏!请求四篇代码都上迷惑行为大赏!请求四篇代码都上迷惑行为大赏!
//还请编辑公示一下我旁边那个(应该是BJ-J02046)的代码,谢谢!
//记得附解说!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
他的 number.cpp 有如下注释:
/*
我所在的这个考场两台电脑之间没有隔板,工作人员也没有让我们分开坐,真不知道CCF咋想的
*/
seat.cpp 如下:
//algorhythm
//不好前两题都巨简单剩下两题不会成了分水岭了吧
//11:57意识到并不
//还有这一题CCF把它家底掏出来了
//08:55开始写,一秒理解是细节题
//请求四篇代码都上迷惑行为大赏
//还有我S也报了
//luogu uid:857437
//才知道程序回收系统会判定敏感词
xor.cpp 有如下注释:
//我*了周围一群"xxs"问为什么任何编译器都无法编译他们的程序,
//工作人员提醒他们好几遍了不要有中文目录,估计全存桌面上了
//有一个"xxs"还问了好几遍,工作人员都急的不想回答了
//09:15开始编写
//不对不是一道简单的区间覆盖(从一个序列里找出最多的不相交区间,使得每一个区间的异或和都等于k,序列最长500000)
//算了先写个部分分吧,期望60
解说:竟然还要我写解说 真好我考 J 组时旁边也有个不会编译代码的 XXS。
然后他说他旁边坐的 BJ-J2046 的代码并没有什么特别的,应该是他说错了,就不管了。
love
有 8 份代码包含一共 34 个 love,其中有一个是我写的:
BJ-J00532\xor
定义了一个名为 I_love 的函数:
int I_love(string s) {
...
}
BJ-J01047\seat
有如下注释:
//I LOVE YZX 1314
//T3 xin shang da zuo
BJ-J01172\polygon
同时包含关键词 迷惑行为,这里就不放代码了。
BJ-J01269\number
是谁写的自己出来认领一下。只放注释:
/*
huiqureqigyuogheuiwyqgywugyur
fewwwwiffewyewuyefywuyge
AFO AFO AFO AFO AFO?
--------- --------- ---------
| | |
| | |
| | |--------
| | |
| | |
--------- --------- |
phigros genshin_impact Minecraft
Luogu Codeforces AtCoder VJudge Topcoder SPOJ USACO MX
一、总则
1.应严格遵守考场纪律,服从考场管理,不得妨碍工作人员履职,不得扰乱考场秩序或干扰其他考生,不得实施危害他人的行为。
二、进场
2.须凭准考证和有效身份证件,在指定时间、地点参加考试,开考30分钟后不得入场。
3.仅可携带笔、饮用水、食品和未拆封的纸巾入场,严禁携带电子设备及书包、书籍、稿纸等,违规带入视同作弊。
4.入场须接受身份核验,拒不配合者将被禁止入场,后果自负。
三、场内
5.入场后须按号就座,将准考证和身份证置于醒目位置,便于核验。
6.场内计时设备仅供参考,开考、终考时间以统一指令为准。
7.开考信号发出后方可答题,且须按规定作答和提交;开考前不得阅读题面或操作比赛用机。
8.考试期间保持安静,禁止交流、旁窥、抄袭、提供他人抄袭或自行传递物品,违者按作弊处理。
四、离场
9.考试统一结束前,无特殊情况不得离场。特殊情况由【】 NOI科学委员会裁定。
10.考试统一结束信号发出后,须立即停止答题。如考试为机试,则锁定计算机屏幕且不得关机。
11.按指令有序离场。离场时禁止将试卷、答题纸、草稿纸等带出考场。
五、其他
12.考试中遇特殊或突发情况,应立即报告并服从现场指令。
13.进场后因病需离场的考生,须经工作人员同意并陪同前往医务室,能坚持考试的可返回,但补时不超过60分钟;不能坚持者不得返回,须由工作人员全程陪同至考试结束,其间不得泄露考试信息。
14.考试结束前15分钟不得离座。
六、裁定
15.对于作弊、违纪行为以及其他未尽事项,均由【】 NOI科学委员会裁定处理。
Q: 为什么文件(.in, .out)一打开就死机?
A: 一般的编辑器(包括文本编辑器、CodeBlocks、VSCode等)能打开的文件不能太大,如果你打开一个过大的文件,编辑器一直在读文件,又占用很大内存,可能会导致整个操作系统卡死。所以最好不要打开过大的文件(比如大于1MB的文件)。
Q: 有程序没响应,自己能关掉吗?
A: 可以自己关闭程序。
Q: 机器卡死了怎么办?
A: 如果自己的程序已经存好了,自己可以关掉卡死的程序。关不了就举手找老师。
Q: 运行的时候显示“段错误,核心已转储”该怎么办?
A: 这个意思就是你的程序“运行错误”了,主要是访问了不该访问的地址,包括数组下标越界、指针错误、栈空间错误等等都可能显示这个错误。遇到这种情况,请好好检查自己的程序哪里写错了吧。
Q: 我的程序写得很好,为什么编译不了?是不是环境坏了?
A: 如果编译不了,请检查以下问题:
l 如果你保存的路径中包含中文(例如存在桌面),可能导致部分编辑环境(包括CodeBlocks)无法编译,你可以存在主文件夹下面,或者在主文件夹下面建一个自己考号名字的文件夹,存在这个文件夹下。
l 如果你的程序使用的数组过大,可能导致无法编译。典型的错误情况包括定义 1000000000 这么大的int数组。你可以试试调整数组的大小是否能解决问题。
l 如果你编译一个 hello.cpp ,但是与 hello.cpp 在同一个目录有一个名为 hello 的文件夹,可能导致编译不了,建议给程序或者文件夹改个名字,或者把程序放到其它目录编译。
l 如果你正在运行一个程序没有结束,又编译程序,可能会编译不了。
Q: 可以修改显示器分辨率吗?
A: 千万不要,风险很大,改了可能就显示不了了。
Q: 换座位后程序回收系统登录不了怎么办?
A: 程序回收系统绑定了IP地址,换座位需要监考老师操作解绑IP后才能登录。
Q: 输入的时候总是把右边的字符覆盖掉了,怎么办?
A: 试着按一下 “insert” 键(在方向键左ß的上面的上面),输入试试。如果还不行,尝试两到三次。如果还不行举手找老师。
Q: 键盘的数字键按了没反应怎么办?
A: 试着按一下小键盘上的 “Num Lock” 键,再按数字。如果还不行,尝试两到三次。如果还不行举手找老师。
Q: 怎么打开 .in , .out , .ans 文件?
A: 先打开 文本编辑器,然后在文本编辑器里面打开想看的文件,也可以将文件拖动到文本编辑器里面打开。
Q: 怎么切换中英文输入法?
A: 屏幕右上角有当前系统的状态,在显示“zh”、“中”或“英”的地方点击鼠标,就可以选择输入法。
Q: 我建立了输入文件 <试题名>.in ,但是我的程序读不到输入是为什么?
A: 程序只能读到执行时的当前目录(默认是.cpp文件所在的目录)的文件,所以务必把 .in 文件和 .cpp 文件放在同一个目录下。
Q: 我刚下载的题目和样例在哪里?
A: 请在下载题目时选择保存文件,而不是打开文件。保存的文件一般在 主文件夹/下载 里面,或者在 <Home>/Downloads 下面。
J 组解压密码(两层压缩包为同一密码):
#Shang4Shan3Ruo6Shui4
asdf
嘟嘟哒嘟嘟哒
dthkxy
zbc love wzx
zpy love bl
cin love cout
CSP-J love CSP-S
noip love 省选
NOI love CTS
THU love PKU
beijing 101 middle school
*/
BJ-J01279\xor
只放注释:
//"i'm sorry don't leave me, i can't stay with me, i know that, your love is gone"
//"i'm sorry, i'm so weak, i know this isn't esay, don't tell me that's your love is gone,"
//"that's your love is gone~~"
//"stay away for Zhuliyet"
//"and I'm crying on the stayckai beging you please don't go~"
//"and i said,'Ruomio take me somewhere we can be along.I will be waiting all that is love to do is run.'"
//"'You will be the prence and I will be a prences. it is a love story,baby just say Yes~'"
BJ-J01539\polygon C*C*F
有如下注释:
// hello C*C*F, I so love you sou I want to f u ck your _____________! I'm too excited!!!!
BJ-J01681\number WBX love LJY
没错是我:
#include<bits/stdc++.h>
using namespace std;
#define WBX cin
#define love >>
int main(){
freopen("number.in","r",stdin);
freopen("number.out","w",stdout);
cin.tie(0)->sync_with_stdio(0);
string LJY="6+1";
vector<int> wbx;
WBX love LJY;
for(auto heart:LJY){
if('0'<=heart&&heart<='9')wbx.emplace_back(heart-'0');
}
sort(wbx.begin(),wbx.end(),greater<int>());
for(auto heart:wbx)cout<<heart;
cout<<'\n';
cerr<<"shi jie de zhen li shi 6+1=2+3+2\n";
return 0;
}
//nsdd,ds shi jie de zhen li shi 6+1=2+3+2
//suo yi guan zhu GWBailang(Luogu-uid:559442) xie xie ao~
/*
freopen("bernum.in","r",stdin);
freopen("string.out","w",stdout);
freopen("num.in","r",stdint);
*/
BJ-J01868\number CCF I love you
有如下注释:
//CCF I love you
CCF
有 4 份代码包含一共 4 个 CCF(不区分大小写):
BJ-J01868\number
同时包含关键词 love 所以这里不放了。
BJ-J01868\xor
写了一堆换行:
/*
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
//freopen
哇
不简单啊
为什么Linux的浏览器不是Edge或者Chrome!!!
我要冲浪!
我要玩跳跳龙!
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
(中国国际货运航空的三字码)
(中国国际航空内蒙古公司的三字码)
善良的CCF不会把这算成暴力语言的^——^
好了
我再想想(9:28)
……
罢了
去看polygon吧(9:49)
看完了
但更不会了(10:34)
旁边的人想睡觉
可能嫌太热又爬起来了
Linux的输入法好难用
MD(美国麦克唐纳-道格拉斯公司,现已被波音收购)
先梳理一下思路
抑或两个1放在一起就是0
咱们或许可以按着二进制位一位一位看
才20个二进制位毕竟
两个凑对就可以变成0
根据k找到我们想要的是0还是1
调侃:“你是当0还是当1”(10:39)
可是还是不会啊
啊啊啊啊啊啊
出题人nm(海里和纳米的简写)
只过两道题能不能二等呢?
如果后两道题纯暴力能不能拿二等呢?
某学会为什么要把日期选在期中考试这种大考前夕呢
Whoop whoop, pull up!
能不能把我扔到迷惑大赏啊
我好像没见过在迷惑大赏的飞友
我有X-Plane 12的破解版
哈哈哈哈哈哈哈哈哈哈哈
我还有Microsoft Flight Simulator 2020的破解版
哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
我还有Aerofly FS Global的试用版
哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
……
我去写个暴力再来(10:46)
等等(10:50)
我发现异或好像可以跟差分一样用
写完了
但是又双叒叕错了(10:58)
哦
才发现
^打成-了
赶紧去试试(逝逝)
诶?我手算都是对的!(11:12)
哦,没加括号
位运算优先级祸害人啊(11:14)
漂亮
倒在了第二个样例上(11:16)
啊?
样例4 3 \n 2 1 0 3
为什么[1,3]不算???
啊!知道了
不能相交!(11:22)
*/
BJ-J02047\number
那个要求把四个代码都放出来的人,前面看过了。
BJ-J02047\seat
还是他。
AK
有 7 份代码包含一共 8 个 AK(全匹配,即 break 之类的东西不会被算上):
BJ-J00133\polygon AK了
有如下注释:
/*
静止了 所有的花开
AK...?
*/
BJ-J00725\polygon AK了
有如下注释:
//AK!
BJ-J01047\number AK了
有如下注释:
//AK RP++
//T3 xin shang da zuo
BJ-J01563\polygon 70min AK了
有如下注释:
//9:43 70minutes may AK CSP-J
BJ-J01681\seat XHX_WILLAK_CSP
没错还是我。有如下注释:
//nsdd,ds shi XHX WILL AK CSP-J&S, sto XHX orz
//suo yi guan zhu GWBailang(Luogu-uid:559442) xie xie ao~
/*
__ __ __ __ __ __ _ _ _ _____ __ __ ___ __ _____ _____ _____
\\ // || || \\ // | | | | | || || / \ || / || || || ||
\_/ ||_|| \_/ | | | | | || || | _ | ||/ || ||___ ||_||
/ \ ||-|| / \ | | | | | || || ||_|| ||\ || || ||
// \\ || || // \\ | | | | || || || || || \ || || ||
-- -- -- -- -- -- | | _|_|_ ||__| ||__| || || || \ ||___ ___|| ||
(jing li le dan hai shi hao chou a)
*/
/*
freopen("sit.in","r",stdint);
freopen("sout.out,"w",student);
*/
%%%sto XHX orz%%%
BJ-J01773\xor SGT AK IOI
有如下注释:
//SegTree AK IOI
//lyl AK IOI;
BJ-J01909\polygon AK了
有如下注释:
//rp++;ak++;
Luogu
有 24 份代码包含一共 26 个 Luogu,考虑到基本上都是 uid,所以我们就把所有写了 uid 的用户/团队的链接放一下吧:
- kn_wlq
- Bright12077
- Texas_the_Omertosa
- lml0928
- Linda0417
- linda0471
- sbno333
- GWBailang
- xiaoBtx
- [team]信奥铁三角
- mcturtle
- Heart_of_Iron
BJ-J00021\polygon
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
cout<<"0";
return 0;
}
//luogu uid 753554 ka qi pa da shang de feropen cin<< cout>> using namepsace sdt
BJ-J00257\polygon 时代【】
有如下注释:
/*
时代
CCCCCCCCCC CCCCCCCCCC FFFFFFFFFFFFF
CCCCCCCCCC CCCCCCCCCC FFFFFFFFFFFFF
CCC CCC FFF
CCC CCC FFF
CCC CCC FFFFFFFFFFFFF
CCC CCC FFFFFFFFFFFFF
CCC CCC FFF
CCCCCCCCCC CCCCCCCCCC FFF
CCCCCCCCCC CCCCCCCCCC FFF
我们喜欢你
求你数据水一点
样例再强一点
author:uid=533708(luogu,Bright12077)
转载请在洛谷私信我后著名你的文章链接,并在文章中著名原作者
A long long time ago,there was a man called Kay Silva, which
his Chinese name is Kai Xi'erwa. He was good at sport, and his
talent was discovered by his parent since he was 3. His parent
let him run 50 meters in order to test his running skills.
Unquestionably, he finished running with a very short time which
is approximately 5 seconds. His parents was shocked with his
score. They thought that Kay could do exercise very well, so
they decided to sent him to a sports school rather than a normal
school.
After he entered the sports school called 'Beijing No.114
School', his incredible talent on sport made him very confident.
The school taught him a lot, and his 50 meters running can
reach 3 seconds and 2147483678 meters running can reach
42.94967296 seconds. But he had to leave school after he was 18.
During that time, there is no university can teach physical
education, especially none of them can teach a such good
student. So he had to join the army.
G.T.I.(Global Threaten Invaluable,全球反恐无价之宝(其实是特勤组))
was a popular army in America, but the requirement was really
high. As we known, these can't beat Kay down, and he entered
the group easily. In G.T.I., he met many friendly people such as
Yuhao Wang, Roy Smee, Zoya, Luna Kim and Xiaowen Mai. They used
to do tasks together, and soon became friends.
But after several months, in a task which they had to fight
with Anais Desmoulin who can use her M700 very well and have two
Xiaomi Su7 to help her defend outsiders, his leg was broken by
a bullet from Desmoulin. Although Roy saved him, but he can not
move at all. 'You can try to make a pair of steel legs which is
just like mine!',Wang said. Of course, the only way to make him
moving again is to build a steel exoskeleton. But he had never
been to a school which can teach him those basic subjects. So he
had to read a lot of books, and try many ways by himself. These
processes took him about 1 year, but finally he made a
exoskeleton successfully. Now, he could run as usual.
The exoskeleton is made from alloy, so it is harder to be
destroyed. He won many wars with his exoskeleton.
But in during a war called 'Valley', his best friend Yuhao
Wang was gone because he wanted to destroy several tanks from
enemy. The result is that he destroyed them successfully, but
he can't move anymore because enemies shot his leg and then he
died because of the exploding of C4. Silva was very angry
because of the behavior of enemies, he shouted and lead other
soldiers fighting with enemies. They won the war, but his friend
was gone, forever.
He tried to collect Wang's story, and wrote a book.The book
became very popular.
He felt very bad after Wang died, and he did not go out for
any tasks during that time. When he became better, he tried to
do a task about doing researches in 'River Valley'. Before the
task, he made 2 C4 in order to help him finish the task.
Although he looked better, he still wanted to suicide, and
this task was the best excuse for him. He put C4 on his body.
3 seconds later, after C4 exploded, he died, with the same way
of Yuhao Wang. Roy and Zoya tried to save him, and worked as
hard as possible, but he still couldn't wake up. He might meet
his friend Yuhao Wang in the heaven, and I, wish they can by
glad to meet each other.
---
I'm sorry that there may be several grammar mistakes in the
article. If you find some of them, please tell me, and I will
improve my English skills as well.
*/
BJ-J00319\polygon
// T4 我猜是前缀和
// 我不会aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
// Luogu uid:1145476
/*
游记:
现在是 11:40:02 我已经对剩余两题不报任何希望了。
考试的机子很慢,虚拟机卡的要命。(东坝考场)
预估 100+100+50+8 = 258
会有2=吗
以后大概率不会再弄OI了,尽管我才初二。
whk的压力一直很大,数学炸的十分严重。考完CSP-J周一就是期中,根本没有任何复习。
总归是要中考的,没办法。只能祝自己期中加油了。
我的屋子里没有蟑螂,当然也没有舟批。
不知道以后的自己会如何看待现在的这个游记呢
我觉得不遗憾
*/
BJ-J00440\number
不行你得上:
/*
luogu & CF & AT: chaotudp_Lance
luogu & CF & AT: lml0928
writer: phigrOS-alpa
我补药上奇葩代码大赏
*/
BJ-J01047\polygon
同时包含关键词 \\freopen(是真的没开)。
BJ-J01172\polygon
同时包含关键词 迷惑行为。
BJ-J01269\number
同时包含关键词 love,请再出来认领一下。
BJ-J01376\number you ji
有如下注释:
/*
you ji:
jin tian wo lai zha yu le!!!
kao qian yi zhou guo duan fang qi wen hua ke zuo ye,kai shi quan li lian ti.
kao qian fei chang jin zhang,dan shi yi xiang dao shi J zu jiu mei na me jin zhang le.
zao can chi de zhou,bao zi,ji dan geng.
kao qian song chi de shua shi pin.
dao le kao chang sui ji zhao dao chu yi xiao hai kai shi shuo pi hua.
kai kao le.
xian ba zui jin xin yan jiu de fa zuo le,xie que sheng yuan.
kai T1,ti mu zhi liang yi jing zhe me cha le,wei le bu chu yuan ti er bu chu yuan ti,you dian shi li,jiu shi ba chuan tong pai xu gai cheng le dai dian gan rao zi fu,5 min qie le.
kai T2,xiao she,cha zhao pai ming,kan dao shu ju fan wei wo beng bu zhu le,shen zhi mei kai man,xie le ge pai xu,bu guo yin,gan cui you hua le yi xia,bian cheng xian xing,10 min qie le.
kai T3,di yi yan:you dian yi si,di er yan:shen me yong jiao DP,zhi jie xie,ce wu hao yang li de shi hou you bu hao de yu gan,guo ran si le,yu shi fa xian zhuan yi fang cheng you dian xiao wen ti,yu shi gai le gai jiu guo le,11 min qie le.
kai T4,fa xian shu ju fan wei xiao,kao lv mei ju zui da zhi,fa xian jiu shi luo de bei bao,dan shi zhi jie xie shi $O(n^3)$ de fa xian di er wei sui bian you hua jiu guo le,hao shi 10 min.
zong shang hong cheng huang huang,yi deng jiang fen shun xian 402,er deng jiang fen shu xian 401,san deng jiang fen shu xian 400,na dao ren sheng di yi ge san deng jiang.
zong shang ti jiao shi jian(zhu yi kai kao hou xie le hui que sheng yuan,suo yi shi jian lue you pian cha).
T1 at 08:41:46
T2 at 08:51:32
T3 at 09:02:54
T4 at 09:12:57
zhi jieb fa zuo,deng xiao you xi leng que jie shu,wan le hui,fa xian bu neng ti qian li chang,dang chang jue wang le.
ran hou zhi neng xie you ji zhi lei de le.
luogu id:416975,sbno333
codeforces id:tianbincheng
atcoder id:sbno333
*/
我拿 AI 给“翻译”了一下:
/*
游记:
今天我来炸鱼了!!!
考前一周过段放弃文化课作业,开始全力练题。
考前非常紧张,但是一想到是J组就没那么紧张了。
早餐吃的粥,包子,鸡蛋羹。
考前送吃的刷视频。
到了考场随机找到处一小孩开始说屁话。
开考了。
先把最近新研究的法做了,写缺省原。
开T1,题目质量已经这么差了,为了不出原题而不出原题,有点实力,就是把传统排序改成了带点干扰字符,5分钟切了。
开T2,小设,查找排名,看到数据范围我崩不住了,甚至没开慢,写了个排序,不过因,赶催优化了一下,变成线性,10分钟切了。
开T3,第一眼:有点意思,第二眼:什么用叫DP,直接写,测误号样例的时候有不好的预感,果然死了,于是发现转移方程有点小问题,于是改了改就过了,11分钟切了。
开T4,发现数据范围小,考虑每局最大值,发现就是裸的背包,但是直接写是$O(n^3)$的发现第二维随便优化就过了,好事10分钟。
总上红城煌煌,一等奖分顺线402,二等奖分数线401,三等奖分数线400,拿到人生第一个三等奖。
总上提交时间(注意开考后写了会缺省原,所以时间略有偏差)。
T1 at 08:41:46
T2 at 08:51:32
T3 at 09:02:54
T4 at 09:12:57
直接发做,等小游戏冷却结束,玩了会,发现不能提前离场,当场绝望了。
然后只能写游记之类的了。
洛谷id:416975,sbno333
codeforces id:tianbincheng
atcoder id:sbno333
*/
BJ-J01403\xor
同时包含关键词 迷惑行为。
BJ-J01430\number
有如下注释:
// total: 250 pts
// luogu: 729048
// freopen("numbers.in", "w", stdin)
BJ-J01681\number
同时包含关键词 love。
BJ-J01681\polygon 我常常追忆过去
有如下注释:
//nsdd,ds wo chang chang zhui yi guo qu, fa xian zhe dao ti yong bu dao bitset
//suo yi guan zhu GWBailang(Luogu-uid:559442) xie xie ao~
/*
freopen("ploygon.in","r",stdin);
freopen("poylgon.out","w",stdout);
freopen("gonploy.in","r",stdin);
freopen("poly.out","w",stdout);
freopen("stick.in","r",stdin);
freopen("stick.out","w",stdout);
openfre("polygon.in","r",stdin);
freopen("polygon.out","w",student);
const int P=1e9+7;
const int MOD=114514;
vector<deque<int>>dq(1000006);
abs(-(__int128)1e18*1e18);
*/
没错是我,翻译一下第一行的拼音:
//你说的对,但是我常常追忆过去,发现这道题用不到 bitset
BJ-J01681\seat
同时包含关键词 AK,所以 XHX AK CSP。
BJ-J01681\xor
有如下注释:
//nsdd,ds kao shi gang kai shi 30 fen zhong, wo yi jing bei ji fang li 21 du de kong tiao chui si le
//nsdd,ds wo pang bian you ge bu hui bian yi dai ma de ru
//suo yi guan zhu GWBailang(Luogu-uid:559442) xie xie ao~
/*
freopen("and.in","r",stdin);
freopen("and.out","w",stdout);
freopen("or.in","r",stdint);
freopen("or.out","w",student);
*/
没错我四个代码都放 uid 了,让我把我写的拼音翻译一下:
//你说的对,但是考试刚开始 30 分钟,我就已经被机房里 21 度的空调吹死了
//你说的对,但是旁边有个不会编译代码的入
//所以关注 GWBailang(Luogu-uid:559442) 谢谢嗷~
BJ-J01691\xor 压缩包密码
有如下注释:
//#Shang4Shan3Ruo6Shui4 <-wo3 men kao3 dia3n de ni4 tian1 mi4 ma3
//tui4 yi4 qian2 de zui4 hou4 yi2 ci4 csp, zai4 jian4 le qi2 ta1 OIer
//zai4 jian4 OI!!!!!!
//luogu name xiaoBtx
BJ-J01755\number team
有如下注释:
//luogu team 80057!
BJ-J01744\seat team
有如下注释:
//luogu team 80057!
//RP+=INF;
//RP+=0x3f3f;
BJ-J01766\polygon
有如下注释:
//baosouguoyangli,dabiaochuqiji AwA.......luogu_uid_823830.
BJ-J01766\xor
有如下注释:
//awa,I don't know this problem has this special answer.
//all right, I think I've got 260 pts, that's enough to get to 1=.
//I haven't seen that I can kill A and B in thirty minutes--much easier than 2024 csp-j!
//Wish I can get good points!rp++!
//QwQ.......luogu_uid_823830.
BJ-J01908\number,seat,xor
有如下注释:
//RP++
//I'm luogu Heart_of_Irons
疑似写注释时多打了个 s,把末尾的 s 去掉以后就能搜到名字了。
BJ-J02014\xor
有如下注释:
//Luogu txp2023
但是搜不到,只能搜到一个叫 txp2024 的人。
BJ-J02047\seat
同时包含关键词 迷惑行为。
单独的
手动看了前 100 人的代码,又随机看了一些人的代码,发现有以下迷惑行为。
BJ-J00016\seat 手写递归
代码一共写了 467 行:
BJ-J00028
四道题都写了如下注释:
/**
* Made By RealDream
* with __CrossBow_EXE__
*/
BJ-J00036\number 不会减法
#include <bits/stdc++.h>
using namespace std;
string s;
int a[11];
int main() {
freopen("number.in", "r", stdin);
freopen("number.out", "w", stdout);
cin >> s;
for (int i = 0; i < s.length(); i++) {
if (s[i] == '0') a[0]++;
if (s[i] == '1') a[1]++;
if (s[i] == '2') a[2]++;
if (s[i] == '3') a[3]++;
if (s[i] == '4') a[4]++;
if (s[i] == '5') a[5]++;
if (s[i] == '6') a[6]++;
if (s[i] == '7') a[7]++;
if (s[i] == '8') a[8]++;
if (s[i] == '9') a[9]++;
}
for (int i = 9; i >= 0; i--) {
while (a[i] > 0) {
cout << i;
a[i]--;
}
}
return 0;
}
BJ-J00036\polygon 他不会什么都不会吧
一共写了 597 行代码:
BJ-J00040\polygon 依旧手写递归
//state:40(bs)
#include<bits/stdc++.h>
using namespace std;
const int md=998244353;
const int maxn=5010;
int a[maxn],x[25];
#define fr(i) for(x[i]=1;x[i]<=2;x[i]++)
vector<int>vc;
int n;
int maxa,sum,res;
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
cin >> n ;
for(int i=1;i<=n;i++){
cin >> a[i] ;
}
fr(1){ fr(2){ fr(3){ fr(4){ fr(5){ fr(6){ fr(7){ fr(8){ fr(9){ fr(10){ fr(11){ fr(12){ fr(13){ fr(14){ fr(15){ fr(16){ fr(17){ fr(18){ fr(19){ fr(20){
for(int i=1;i<=n;i++){
if(x[i]==2)vc.push_back(a[i]);
}
maxa=sum=0;
for(int i=0;i<vc.size();i++){
maxa=max(maxa,vc[i]);
sum+=vc[i];
}
if(sum>2*maxa)res=(res+1)%md;
vc.clear();
}}}}}}}}}}}}}}}}}}}}
cout << (res>>(20-n)) << '\n' ;
return 0;
}
BJ-J00049\polygon 手写递归
for(;a[0]<n;a[0]++){
for(a[1]=a[0]+1;a[1]<n;a[1]++){
for(a[2]=a[1]+1;a[2]<n;a[2]++){
if(sum(2)>2*mx(2))res++;
res%=mod;
for(a[3]=a[2]+1;a[3]<n;a[3]++){
if(sum(3)>2*mx(3))res++;
res%=mod;
for(a[4]=a[3]+1;a[4]<n;a[4]++){
if(sum(4)>2*mx(4))res++;
res%=mod;
for(a[5]=a[4]+1;a[5]<n;a[5]++){
if(sum(5)>2*mx(5))res++;
res%=mod;
for(a[6]=a[5]+1;a[6]<n;a[6]++){
if(sum(6)>2*mx(6))res++;
res%=mod;
for(a[7]=a[6]+1;a[7]<n;a[7]++){
if(sum(7)>2*mx(7))res++;
res%=mod;
for(a[8]=a[8]+1;a[8]<n;a[8]++){
if(sum(8)>2*mx(8))res++;
res%=mod;
for(a[9]=a[1]+1;a[9]<n;a[2]++){
if(sum(9)>2*mx(9))res++;
res%=mod;
}
}
}
}
}
}
}
}
}
}
cout << res%mod;
BJ-J00055\xor 神秘缩进
#include<bits/stdc++.h>
using namespace std;
int n,k;
int a[1000000];
int main()
{
freopen ("xor.in" , "r",stdin);
freopen ("xor.out","w",stdout);
cin>>n>>k;
for(int i=0;i<n;i++)
{
cin>>a[i];
}
if( ( n== 4 &&k== 2 ) &&(a[ 0 ]== 2) ) {cout<<"2";return 0;
}
if( ( n== 4 &&k== 3 ) &&(a[ 0 ]== 2) ) {cout<<"2";return 0;
}
if( ( n== 4 ) &&(k== 0 )&&a[ 0 ]== 2 ) {cout<<"1";return 0;
}
if( ( n== 100 &&k== 1) &&(a[ 0 ]== 1 ) ){
cout<<"63";return 0;
}
if( ( n== 985 &&k== 55 ) &&(a[ 0 ]== 190) ) {
cout<<"69";return 0;
}
else cout <<12701;
return 0;
}
BJ-J00066\number 没学过char
#include <iostream>
#include <algorithm>
using namespace std;
int N=1000010;
int main(){
freopen("number.in","r",stdin);
freopen("number.out","w",stdout);
string s,ans;
int n0=0,n1=0,n2=0,n3=0,n4=0,n5=0,n6=0,n7=0,n8=0,n9=0;
cin>>s;
for(int i=0;i<s.size();i++){
if('0'==s[i])n0++;
if('1'==s[i])n1++;
if('2'==s[i])n2++;
if('3'==s[i])n3++;
if('4'==s[i])n4++;
if('5'==s[i])n5++;
if('6'==s[i])n6++;
if('7'==s[i])n7++;
if('8'==s[i])n8++;
if('9'==s[i])n9++;
}
for(int i=0;i<n9;i++)ans=ans+'9';
for(int i=0;i<n8;i++)ans=ans+'8';
for(int i=0;i<n7;i++)ans=ans+'7';
for(int i=0;i<n6;i++)ans=ans+'6';
for(int i=0;i<n5;i++)ans=ans+'5';
for(int i=0;i<n4;i++)ans=ans+'4';
for(int i=0;i<n3;i++)ans=ans+'3';
for(int i=0;i<n2;i++)ans=ans+'2';
for(int i=0;i<n1;i++)ans=ans+'1';
for(int i=0;i<n0;i++)ans=ans+'0';
cout<<ans;
return 0;
}
BJ-J00074\number 没学过char
#include<bits/stdc++.h>
using namespace std;
string s;
int a,num0,num1,num2,num3,num4,num5,num6,num7,num8,num9;
int main(){
freopen("number.in","r",stdin);
freopen("number.out","w",stdout);
cin>>s;
int len=s.size();
for(int i=0;i<=len;i++){
if(s[i]<='9'&&s[i]>='0'){
a=s[i]-'0';
if(a==0) num0++;
if(a==1) num1++;
if(a==2) num2++;
if(a==3) num3++;
if(a==4) num4++;
if(a==5) num5++;
if(a==6) num6++;
if(a==7) num7++;
if(a==8) num8++;
if(a==9) num9++;
}
}
for(int i=0;i<num9;i++) printf("9");
for(int i=0;i<num8;i++) printf("8");
for(int i=0;i<num7;i++) printf("7");
for(int i=0;i<num6;i++) printf("6");
for(int i=0;i<num5;i++) printf("5");
for(int i=0;i<num4;i++) printf("4");
for(int i=0;i<num3;i++) printf("3");
for(int i=0;i<num2;i++) printf("2");
for(int i=0;i<num1;i++) printf("1");
for(int i=0;i<num0;i++) printf("0");
return 0;
}
BJ-J00075\xor 输出样例
#include <bits/stdc++.h>
using namespace std;
int main()
{
freopen("xor.in","r",stdin);
freopen("xor.out","w",stdout);
int n,k,sum=0;
cin>>n>>k;
int a[5e5];
for(int i=0;i<n;i++)
{
cin>>a[i];
sum=sum*10+a[i];
}
if(n==4&&k==3&&sum==2103)
cout<<2<<endl;
else if(n==4&&k==3&&sum==2103)
cout<<1<<endl;
else if(n==4&&k==2&&sum==2103)
cout<<2<<endl;
return 0;
}
int a[5e5] 喜提编译错误。
BJ-J00087\polygon 尝试输出样例
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
string s1,s2;
getline(cin,s1);
getline(cin,s2);
if(s1=="500"&&s2=="37 67 7 65 3 79 74 20 17 91 68 22 96 67 11 43 80 6 46 70 34 68 91 80 4 9 76 81 34 17 33 16 71 73 37 85 27 33 47 8 99 78 38 75 23 45 57 42 13 81 93 73 12 73 57 21 81 90 4 35 35 20 99 13 3 3 6 98 47 98 84 10 38 67 1 96 43 4 100 13 100 63 64 79 16 53 71 11 75 46 86 86 99 64 86 82 2 72 11 81 36 1 17 48 4 87 40 26 18 30 77 97 11 91 34 33 50 68 97 50 41 27 58 6 11 4 69 71 8 46 64 37 5 34 86 37 16 12 86 73 58 18 86 15 63 6 1 21 86 43 88 70 21 83 31 84 93 3 98 94 53 90 96 19 96 77 85 94 94 37 5 65 71 41 37 76 97 26 38 42 97 29 84 43 19 78 21 38 23 31 10 80 50 91 98 26 60 80 15 17 13 12 35 9 66 26 88 82 73 38 13 48 42 59 9 8 64 96 100 54 64 69 62 5 78 6 74 57 2 27 7 60 51 11 87 43 25 21 76 74 39 68 42 32 54 37 47 65 84 10 1 30 60 54 8 13 21 61 27 1 87 16 61 74 13 88 31 37 72 76 44 74 54 5 16 48 22 9 83 88 21 61 73 21 83 64 91 39 40 56 88 34 64 64 18 81 58 28 57 8 3 31 95 34 93 95 88 37 88 18 29 29 28 67 51 97 78 62 40 46 72 64 28 42 65 44 63 23 35 84 66 53 23 29 28 70 97 33 10 61 99 87 11 51 6 21 75 14 89 53 39 6 63 97 57 84 46 6 80 35 42 60 61 20 99 14 68 53 74 42 25 61 36 65 72 71 23 78 44 69 65 42 62 79 59 1 35 45 7 85 92 43 4 85 51 59 32 35 44 21 27 41 13 50 41 83 41 34 25 31 74 12 91 95 87 53 24 12 32 83 12 70 97 31 81 7 59 73 26 48 96 18 48 86 51 84 45 49 53 92 69 16 35 74 75 10 88 27 8 82 70 8 96 46 36 39 26 61 43 90 47 29 82 63 43 76 82 24 19 71 46 17 33 71 59 1 92 31 11 38 29 27 9 67 50 45 54 90 90 25 42 27 95 81 95 69 57 76 23 18") cout<<366911923<<endl;
if(s1=="20"&&s2=="75 28 15 26 12 8 90 42 90 43 14 26 84 83 14 35 98 38 37 1") cout<<1042392<<endl;
return 0;
}
他的 xor.cpp 也是这么干的。
BJ-J00089\polygon 不知所云
BJ-J00091\polygon 答案就得是100KB
他写了如下代码:
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,a,b,c;
cin>>n>>a>>b>>c;
if(a+b>c){
if(c+a>b){
if(b+c>a){
cout<<1;
exit(0);
}
}
}
cout<<0;
return 0;
}
//答案就得是100KB
//答案就得是100KB
并在后面写了 4372 遍 //答案就得是100KB。
BJ-J00091\xor 自言自语
有如下注释:
/*
第一个测试点n<=2?那是不是可以骗分?等一下,特殊性质B不就是特殊性质A的加强版么?
也就是满足特殊性质A肯定也满足特殊性质B!
异或和结论:
1 0 1
1 1 0
0 0 0
0 1 1
哦,那是不是可以直接计算啊,两个相同就是0,否则就是1
不对,^0不变化,^1会变化,这才是对的
*/
BJ-J01244\polygon 好不容易写了508行结果编译错误
BJ-J01620\number 依旧不会char
#include <bits/stdc++.h>
using namespace std;
bool cmp(int x,int y)
{
return x>y;
}
int main()
{
freopen("number.in","r",stdin);
freopen("number.out","w",stdout);
string s,t;
cin>>s;
int n=s.size(),a[200005],ans=0;
memset(a,-1,sizeof(a));
for(int i=0,j=0;i<n;i++)
{
if(s[i]<='z'&&s[i]>='a') continue;
t[j]=s[i];
j++;
}
for(int k=0;k<n;k++)
{
if(t[k]=='0') {a[k]=0;ans++;}
if(t[k]=='1') {a[k]=1;ans++;}
if(t[k]=='2') {a[k]=2;ans++;}
if(t[k]=='3') {a[k]=3;ans++;}
if(t[k]=='4') {a[k]=4;ans++;}
if(t[k]=='5') {a[k]=5;ans++;}
if(t[k]=='6') {a[k]=6;ans++;}
if(t[k]=='7') {a[k]=7;ans++;}
if(t[k]=='8') {a[k]=8;ans++;}
if(t[k]=='9') {a[k]=9;ans++;}
}
sort(a,a+n,cmp);
for(int i=0;i<ans;i++) cout<<a[i];
return 0;
}
BJ-J01739\xor 还是背诵巨佬
有如下注释:
//正在下载程序包“C/C++ language components (Linux / x86_64)” 失败。正在重试... 失败。正在重试... 失败。正在重试...正在等待 8 秒... 失败。正在重试...正在等待 16 秒... 未能下u载
//夜上受降城闻笛
//回乐烽前沙似雪,
//受降城外月如霜。
//不知何处吹芦管,
//一夜征人尽望乡。
//行军九日思长安故园
//强欲登高去,
//无人送酒来。
//遥怜故园菊,
//应傍战场开。
//歧王宅里寻常见,
//崔九堂前几度闻。
//正是江南好风景,
//落花时节又逢君。
//从百草园到三味书屋 第二段
//不必说碧绿的菜畦,光滑的石井栏,高大的皂荚树,紫红的桑椹。也不必说鸣蝉在树叶里长吟,肥胖的黄蜂伏在菜花上,轻捷的叫天子(云雀)忽然从草间直窜进云霄里去了。但是周围的短短的泥墙跟一带,就有无限趣味。油蛉在这里低唱,蟋蟀在这里弹琴,翻开断砖来,有时会碰上蜈蚣,还有斑蟊。倘若你用手指按住它的脊梁,就会啪的一声,从后窍喷出一阵烟雾来。木莲藤和何首乌藤连络着,木莲有莲房一般的果实,何首乌有臃肿的根。有人说,这何首乌根是有向像人形的。吃了便可以成仙,我于是常常拔它起来,牵连不断地拔起来,也曾因此弄坏了泥墙,却没有见到有一块根像人样。如果不怕刺,还可以摘到覆盆子,味道比桑椹要好的远。
//《咏雪》--《世说新语-言语》
//谢太傅寒雪日内集,与儿女讲论文义。俄而雪骤,公欣然曰:“白雪纷纷何所似?”兄子胡儿曰:“撒盐空中差可拟”。兄女曰:“未若柳絮因风起。”公大笑乐,即公大兄无奕女,左将军王凝之妻也。
//Ubuntu自带中文输入法太难用了!!!!!!!!!!!!!!!!
BJ-J01740\xor T3<T1
有如下注释:
/*
ber
wo di san ti za zuo de bi di yi ti hai kuai
*/
/*
O(n^2) guo 2e5??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
bang ge wei shu wan le yi gong you 666 ge wen hao
*/
BJ-J01907\polygon 998,244,353
#include<bits/stdc++.h>
using namespace std;
int n;
int js(int x)
{
long long sum=1,sum2=1;
for(int i=n;i>=n-x+1;i--)
{
sum*=i;
sum%=998;
sum%=244;
sum%=353;
}
for(int i=1;i<=x;i++)
{
sum2*=i;
sum2%=998;
sum2%=244;
sum2%=353;
}
return sum/sum2;
}
int main()
{
freopen("polygon.in","r",stdin);
freopen("polygon.out","w",stdout);
cin>>n;
int a[n+1];
long long ans=0;
for(int i=1;i<=n;i++)
{
cin>>a[i];
}
if(n%2==0)
{
ans+=n;
ans+=n*(n-1)/2;
ans%=998;
ans%=244;
ans%=353;
for(int i=3;i<=n/2;i++)
{
ans+=js(i);
ans%=998;
ans%=244;
ans%=353;
}
cout<<ans;
}
else
{
ans+=n;
ans+=n*(n-1)/2;
ans%=998;
ans%=244;
ans%=353;
for(int i=3;i<=int(n/2);i++)
{
ans+=js(i);
ans%=998;
ans%=244;
ans%=353;
}
ans+=js(int(n/2)+1);
ans%=998;
ans%=244;
ans%=353;
cout<<ans;
}
return 0;
}
BJ-J01610\xor 还是线段树大佬
#include <iostream>
#include <set>
using namespace std;
/*
#define lc p<<1
#define rc p<<1|1
typedef long long ll;
const int N=100010;
int n,k,op,x,y;
int a[N];
struct node{
int l,r;
int sum,tag;
}t[N<<2];
void pushup(int p){
t[p].sum=t[lc].sum^t[rc].sum;
}
void pushdown(int p){
if(t[p].tag){
t[lc].tag+=t[p].tag;
t[rc].tag+=t[p].tag;
t[lc].sum+=t[p].tag*(t[lc].r-t[lc].l+1);
t[rc].sum+=t[p].tag*(t[rc].r-t[rc].l+1);
t[p].tag=0;
}
}
void build(int p,int l,int r){
if(l>r)return ;
t[p].l=l;
t[p].r=r;
if(l==r){
t[p].sum=a[l];
return ;
}
int mid=(l+r)>>1;
build(lc,l,mid);
build(rc,mid+1,r);
pushup(p);
return ;
}
void add(int p,int l,int r,int k){
if(l<=t[p].l&&t[p].r<=r){
t[p].tag+=k;
t[p].sum+=k*(t[p].r-t[p].l+1);
return ;
}
int mid=(t[p].l+t[p].r)>>1;
pushdown(p);
if(l<=mid)add(lc,l,r,k);
if(mid<r)add(rc,l,r,k);
pushup(p);
return ;
}
int cnt;
int query(int p,int l,int r){
cnt++;
if(l<=t[p].l&&t[p].r<=r)return t[p].sum;
int ans=0;
int mid=(t[p].l+t[p].r)>>1;
//pushdown(p);
if(l<=mid)ans^=query(lc,l,r);
if(mid<r)ans^=query(rc,l,r);
return ans;
}*/
const int N=500010;
int n,k,a[N],sum[N];
void xyb(){
freopen("xor.in","r",stdin);
freopen("xor.out","w",stdout);
}
set<int>st;
int main(){
xyb();
cin>>n>>k;
for(int i=1;i<=n;i++)scanf("%d",a+i);
for(int i=1;i<=n;i++)sum[i]=sum[i-1]^a[i];
int cnt=0;
st.insert(sum[0]);
for(int i=1;i<=n;i++){
if(st.count(sum[i]^k)){
cnt++;
st.clear();
st.insert(sum[i]);
continue;
}
st.insert(sum[i]);
}
/*if(st.count(sum[n]^k)){
cnt++;
st.clear();
}*/
cout<<cnt;
return 0;
}
/*
对于每一个sum[i],找从sum[l]到sum[i-1]的集合中是否存在sum[i]^k
如果找到,则cnt++,l=i+1
8 2
1 3 2 6 1 4 5 3
1 3
2
4 5 3
10 2
5 4 5 3 4 3 1 2 1 2
101 100 101 011 100 011 001 010 001 010
5 1 4 7 3 0 1 3 2 0
101 001 100 111 011 000 001 011 010 000
4 2
2 1 0 3
010 001 000 011
010 011 011 000
4 2
2 2 2 2
4 2
2 0 2 2
10 00 10 10
10 10 00 10
4 2
3 0 1 2
*/
BJ-J01552\number 不会string
#include<bits/stdc++.h>
using namespace std;
int s;
int main(){
freopen("number.in","r",stdin);
freopen("number.out","w",stdout);
cin>>s;
if(s=5){
cout<<"5"<<endl;
}
if(s=1){
cout<<"1"<<endl;
}
if(s=2){
cout<<"2"<<endl;
}
if(s=3){
cout<<"3"<<endl;
}
if(s=4){
cout<<"4"<<endl;
}
if(s=6){
cout<<"6"<<endl;
}
if(s=7){
cout<<"7"<<endl;
}
if(s=8){
cout<<"8"<<endl;
}
if(s=9){
cout<<"9"<<endl;
}
if(s=0){
cout<<"0"<<endl;
}else{
cout<<"92100"<<endl;
}
return 0;
}
BJ-J01361 警钟
四道题都写了如下注释:
/*1.不要忘记开lonlong
*2.看看循环i,j有没有错误
*3.数组有没有开太小
*4.stl有没有判断是否为空
*5.多测有没有清空
*6.是不是看错题了
*7.局部变量有没有赋值
*8.输出有没有写错
*9.是不是一开始就像错了?
*10.保持好心态
*/
BJ-J01009\xor sueeeeeeeeeee
这是他的完整代码:
sueeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
BJ-J00728 META
四道题都写了差不多的注释,应该是调试用的。
/*
META:
BJ-J00728 2025/11/1
number.cpp T1
Status=Locked
Score Guess=100
E1 AC
E2 AC
E3 AC
E4 AC
S1 AC
S2 AC
S3 AC
S4 AC
H1 Time OK
H2 AC
*/
/*
STESTS:
<S1>
qfge0asdawqdvrev9fgkjhkjhgkjkjhgkjhgkjhgkjhgkjhgkjhgkjhgkjhgkjhgkjhgk4jghgfjghf
<S1.ans>
940
<S2>
1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y6z7aa8ab9ac0ad
<S2.ans>
999888777666555444333222111000
<S3>
jaljflckjlwnkrjhflciehkszkjrhkcfnalkwjerhflckjnzksyrgkfcshrnwalrkjfhcl8938asjhfbkcajhsbkejfhckajhsebfkjhcb
<S3.ans>
9883
<S4>
0000000000includeiostreamusingnamespacestdintmainintabcinabcoutab9endlreturn0000000
<S4.ans>
900000000000000000
*/
BJ-J00561\xor CCF 不是 CF
有如下注释:
// 这段代码在随机数据下表现十分优秀,大约 O(nlogn)。但是我不保证出题人会 copy Codeforces 的 hacks 来卡掉我的代码。