版本比较
CSP-J 2026 SC 迷惑行为大赏!🤓👆
正文
增加 938 行删除 32 行
123456785910111291314151617181920152122232419252621272823242930313217 行未改动5051525350545556575820 行未改动798081827983848586879 行未改动9798991009710110299103104105106107595 行未改动全部展开7037047057067037077087057097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789797 行未改动98798898999072499199272699399472899599699799873099910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214745121512161217121812194 行未改动12241225122612277581228122912301231123228 行未改动1261126212631264795126512661267126812699 行未改动127912801281128281312831284815128512861287128812897 行未改动1297129812991300831130113021303130413059 行未改动13151316131713188491319132013211322132351 行未改动137513761377137890913791380138113821383237 行未改动全部展开162116221623162411551625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168673 行未改动176017611762176312401764176517661767176810 行未改动177917801781178212591783178417851786178751 行未改动183918401841184213191843184413211322184518461847184815 行未改动186418651866186713461868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252:::info[声明]{open}本文由 人类 生成!:::
不会写前言。不过看到我们大 SC 江山辈有神人出,老身就放心了😋
话不多说直接开赤吧😋😋😋
欢迎在 11.14 之前向我私信投稿统计遗漏的迷惑行为,我会在 11.14 再更新一次的!欢迎在 11.21 之前向我私信投稿统计遗漏的迷惑行为,我会在 11.21 再更新一次的!
也可以联系我撤下,不过要证明这是你才行。
可以点个赞吗,谢谢喵!!!可以点个赞吗/kel/kel/kel,谢谢喵!!!
广告:来催 @[WJX114514](https://www.luogu.com.cn/user/1048767) 女装,
## 一些统计
本次 CSP-J SC 共有 $2237$ 名考生,他们提交了 $8478$ 份代码,其中 T1 有 $2218$ 份,T2 有 $2200$ 份,T3 有 $2112$ 份,T4 有 $1948$ 份。🤔
所有代码里出现了 $327$ 次 `//freopen`,似乎大部分都在诈骗我,没有使得代码的文件读写爆炸,看来大家的反保龄意识十分强大。所有代码里出现了 $327$ 次 `//freopen`,似乎大部分都在诈骗我,没有使得代码的文件读写爆炸,看来大家的反保龄意识十分强大!!1
还有 $24$ 个 `freopen("xxx.in","w",stdin)`,【】
此外,`rp` 子串出现了 $212$ 次,`AFO` 子串出现了 $\color{red}1$ 次,`inline` 子串出现了 $153$ 次,`fread` 子串出现了 $31$ 次。此外,`rp` 子串出现了 $228$ 次,`AFO` 子串出现了 $\color{red}1$ 次,`inline` 子串出现了 $153$ 次,`fread` 子串出现了 $34$ 次。
## 群星闪耀时## 最大的文件夹
### 最大的文件夹
SC-J01405,TA 在 T3 末尾派放了数百架喷气式飞机:
:::info[代码]```qwq17 行未改动(省略一堆空行和一堆相同的飞机)```:::
### 最小的文件夹## 最小的文件夹
SC-J01182,这是 TA 的全部代码:
:::info[代码]20 行未改动```:::来年再战!
### 出现的唯一一个 AFO## 出现的唯一一个 AFO 子串
```cppSC-J00087\card\card.cpp
9 行未改动```
祝你 1=。
### 大哥上楼梯## 大哥上楼梯
SC-J02226 掏出的秘制代码:SC-J02226 秘制代码:
:::info[代码]```cppSC-J02226\and\and.cpp595 行未改动全部展开:::
`for` 的恩情还不完 \\😭/
### 我要上电视## ⭐这里是炸鱼的整活大神
SC-J01823 老师,你成功了!**太牛了,所以我要全文放出。**
(注意:顺序对应没有错误。)
:::info[代码]```cppSC-J02089\travel\travel.cpp
#include<bits/stdc++.h>using namespace std;int n,m,a[200010];signed main() { ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); // freopen("and.in","r",stdin);// freopen("and.out","w",stdout); cin>>n>>m; for(int i=1;i<=n;i++) cin>>a[i]; int ans=0; for(int k=30;k>=0;k--){ int cnt=0; for(int i=1;i<=n;i++) if((((a[i]>>k)<<k)&(ans|(1<<k)))==(ans|(1<<k))) cnt++; if(cnt>=m) ans|=(1<<k); } cout<<ans; while(true); return 0;} // T3 一秒钟就会了 // 8:46 写完
// 反正我不会这题,交个 while(true) 吧
// 乱写点东西吧,今年 T4 太简单,太短,太水了哈哈哈哈 // 我要向看到这份代码的表白 // 我喜欢你 // 昨天是我的生日,可以祝我生日快乐吗
// 8:59 AK
// AK 代码纯享版,由豆包 AI 生成
//#include<bits/stdc++.h>//using namespace std;//signed main() {// ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); // freopen("travel.in","r",stdin);// freopen("travel.out","w",stdout);// string a,b,c,d;// cin>>a>>b>>c>>d;// cout<<(a==c);// cout<<(a==c && b[0]==d[0] && b[1]==d[1]);// cout<<(a==c && b[0]==d[0] && b[1]==d[1] && (b[2]<='C')==(d[2]<='C'));// cout<<(a==c && b[0]==d[0] && b[1]==d[1] && (b[2]<='C')==(d[2]<='C') && abs(b[2]-d[2])==1);// return 0;//}
//#include<bits/stdc++.h>//using namespace std;//#define int long long//int n,s[200010];//char ch[200010];//inline int ask(int x){// int y=s[n]-x+1;// int T=lower_bound(s+1,s+n+1,x)-s;// int P=lower_bound(s+1,s+n+1,y)-s;// return ch[T]!=ch[P];//}//signed main() {// ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); // freopen("string.in","r",stdin);// freopen("string.out","w",stdout);// cin>>n;// for(int i=1;i<=n;i++) cin>>s[i]>>ch[i],s[i]+=s[i-1];// vector<int>T;// T.push_back(0);// for(int i=1;i<=n;i++){// if(s[i]<=(s[n]>>1)) T.push_back(s[i]);// if(s[n]-s[i-1]<=(s[n]>>1)) T.push_back(s[n]-s[i-1]);// }// sort(T.begin(),T.end());// int ans=0;// for(int i=1;i<T.size();i++) ans+=(T[i]-T[i-1])*ask(T[i]);// cout<<ans;// return 0;//}
//#include<bits/stdc++.h>//using namespace std;//int n,m,a[200010];//signed main() {// ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); // freopen("and.in","r",stdin);// freopen("and.out","w",stdout);// cin>>n>>m;// for(int i=1;i<=n;i++) cin>>a[i];// int ans=0;// for(int k=30;k>=0;k--){// int cnt=0;// for(int i=1;i<=n;i++) if((((a[i]>>k)<<k)&(ans|(1<<k)))==(ans|(1<<k))) cnt++;// if(cnt>=m) ans|=(1<<k);// }// cout<<ans;// return 0;//}
//#include<bits/stdc++.h>//using namespace std;//#define int long long//int n,m,a[500010],pos[500010],cnt[500010],ans[500010];//signed main() {// ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); // freopen("card.in","r",stdin);// freopen("card.out","w",stdout);// cin>>n>>m;// for(int i=1;i<=n;i++) cin>>a[i],pos[a[i]]=max(pos[a[i]],i),cnt[i]=1;// for(int i=1;i<=n;i++) cnt[pos[a[i]]+1]+=cnt[i];// for(int i=1;i<=n;i++) ans[a[i]]+=cnt[i];// for(int i=1;i<=m;i++) cout<<ans[i]<<" ";// return 0;//} ``````cppSC-J02089\string\string.cpp
#include<bits/stdc++.h>using namespace std;#define int long longint n,s[200010];char ch[200010];inline int ask(int x){ int y=s[n]-x+1; int T=lower_bound(s+1,s+n+1,x)-s; int P=lower_bound(s+1,s+n+1,y)-s; return ch[T]!=ch[P];}//bitset<10>TNT;signed main() { ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); freopen("string.in","r",stdin); freopen("string.out","w",stdout); cin>>n; int mxa=0; for(int i=1;i<=n;i++) cin>>s[i]>>ch[i],mxa=max(mxa,s[i]),s[i]+=s[i-1]; if(!((2000<n && n<=200000 && mxa==1) || (n<=10 && mxa<=50))){ puts("songxr 老师,我还记得你");// TNT[1]=1;// cout<<TNT._M_w[0]; 这玩意会 CE return 0; } vector<int>T; T.push_back(0); for(int i=1;i<=n;i++){ if(s[i]<=(s[n]>>1)) T.push_back(s[i]); if(s[n]-s[i-1]<=(s[n]>>1)) T.push_back(s[n]-s[i-1]); } sort(T.begin(),T.end()); int ans=0; for(int i=1;i<T.size();i++) ans+=(T[i]-T[i-1])*ask(T[i]); cout<<ans; return 0;}//T2 也是简单题,难于 T3 T4 //8:56 写完
// 应该是机器评测,所以没人看的到我的代码 // DeepSeek 需要手机验证了,登不了了 // 昨天晚上豆包告诉我,freopen 需要注释,所以我在 T3 注释着试一试 // 我再特判一下部分分防止正解写错 // 应该没什么问题了
// 现在豆包又说我的代码没有 a 数组,所以绝对是错的,我该怎么办啊,a 这个字符怎么打啊 // 代码没有用小驼峰命名法
// 下午 -S 还是很慌啊,不知道还能不能把豆包带进考场 // 不管了,干了 ``````cppSC-J02089\and\and.cpp
#include<bits/stdc++.h>using namespace std;mt19937 rnd(time(0));signed main() { ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); freopen("travel.in","r",stdin); freopen("travel.out","w",stdout); string a,b,c,d; cin>>a>>b>>c>>d; cout<<rnd()%2<<rnd()%2<<rnd()%2<<rnd()%2; //我常常追忆过去,后面忘了 // cout<<(a==c);// cout<<(a==c && b[0]==d[0] && b[1]==d[1]);// cout<<(a==c && b[0]==d[0] && b[1]==d[1] && (b[2]<='C')==(d[2]<='C'));// cout<<(a==c && b[0]==d[0] && b[1]==d[1] && (b[2]<='C')==(d[2]<='C') && abs(b[2]-d[2])==1); return 0;}// 8:59 AK
//倒序开题 8:40 解决 T4,8:44 解决 T3,8:56 解决 T2,8:59 解决 T1 // T1<T3<T4<T2
//我常常乘坐高铁。//我常常修改字串。//我常常选数运算。//我常常游玩卡牌。
// 代码里总得加一句 CCF 对吧
// 千万不要用 list 容器 // 特别是在 NOIp
// X X XXX
// 反正我不会这题,交个随机数吧
// dino 玩到了 3140 分,surf 玩到了 6411 分,纪念一下 ``````cppSC-J02089\card\card.cpp
#include<bits/stdc++.h>using namespace std;#define int long longint n,m,a[500010],pos[500010],cnt[500010],ans[500010];signed main() { ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); freopen("card.in","r",stdin); freopen("card.out","w",stdout); cin>>n>>m; for(int i=1;i<=n;i++) cin>>a[i],pos[a[i]]=max(pos[a[i]],i),cnt[i]=1; for(int i=1;i<=n;i++) cnt[pos[a[i]]+1]+=cnt[i]; for(int i=1;i<=n;i++) ans[a[i]]+=cnt[i]; for(int i=1;i<=m;i++) cout<<ans[i]<<" "; return 0;} // 8:34 会 T4 // 8:40 写完 //今年 T4 怎么这么简单啊 ```:::
我常常乘坐高铁。 我常常修改字串。 我常常选数运算。 我常常游玩卡牌。
我常常合成水晶。 我常常乘坐地铁。 我常常观察候鸟。 我常常建造基地。
## frein(travel.in,stdin);
SC-J01655 的所有题目均使用了
```frein(xxx.in,stdin);freout(xxx.out,stdout);```当文件读写。
## 我要上电视
SC-J01823 老师,你上电视了!
:::info[代码]```cppSC-J01823\card\card.cpp
.../*7 行未改动*/```:::
虽然很可惜,因为没有那么多的时间和精力,我只统计了 J 组。虽然因为没有那么多的时间和精力,很可惜我只统计了 J 组,不过这说明你能同时进两篇迷惑行为大赏了🤓
### 魔怔人## \_\_attribute\_\_((always_inline))
SC-J01797 在 T4 贴了 671 句 `@double_bird 我喜欢你喵!`😨>: >我是 SC-J01677,我想上电视 >能满足我吗喵
### 区神终于看到有人在正赛写这个(指 `__attribute__((always_inline)) inline`)了,感动。
:::info[代码]```cppSC-J01677\string\string.cpp
/*Author: kkksc98关注 kkksc98 谢谢喵*/#include <bits/stdc++.h>#define int long long#define inl_force __attribute__((always_inline)) inline#define rep(i, a, b) for (int i = (a); i <= (b); ++i)#define per(i, a, b) for (int i = (a); i >= (b); --i)using namespace std;template<typename Tp> inl_force Tp input() { int x = 0; int f = 1; char ch = getchar(); while (!isdigit(ch)) { if (ch == EOF) return 0; if (ch == '-') f = -1; ch = getchar(); } while (isdigit(ch)) { x = (x << 3) + (x << 1) + (ch - '0'); ch = getchar(); } return x * f;}template<typename Tp> inline void output(Tp x) { if (x < 0) x = -x, putchar('-'); if (x > 9) output(x / 10); putchar(x % 10 + '0');}const int N = 2e5 + 5;int n, ans, sum, id_L, id_R, a[N];char c[N];struct Segment { int cnt; char c;} L[N], R[N];inl_force void solve() { int now_sum = 0; int LIM = (sum >> 1); rep(i, 1, n) { if (now_sum + a[i] >= LIM) { L[++id_L].cnt = LIM - now_sum; L[id_L].c = c[i]; a[i] -= (LIM - now_sum); now_sum = LIM; break; } else { L[++id_L].cnt = a[i]; L[id_L].c = c[i]; now_sum += a[i]; a[i] = 0; } } per(i, n, 1) { if (a[i] == 0) break; R[++id_R].cnt = a[i]; R[id_R].c = c[i]; a[i] = 0; } for (int i = 1, j = 1; i <= id_L && j <= id_R; ++i) { while (L[i].cnt > 0) { if (L[i].cnt >= R[j].cnt) { if (L[i].c != R[j].c) ans += R[j].cnt; L[i].cnt -= R[j++].cnt; } else { if (L[i].c != R[j].c) ans += L[i].cnt; R[j].cnt -= L[i].cnt; L[i].cnt = 0; } } } return ;}inl_force void solve_now() { int now_sum = 0; int LIM = (sum >> 1); rep(i, 1, n) { if (now_sum + a[i] > LIM) { L[++id_L].cnt = LIM - now_sum; L[id_L].c = c[i]; a[i] -= ((LIM - now_sum) + 1); now_sum = LIM; break; } else if (now_sum + a[i] == LIM) { L[++id_L].cnt = LIM - now_sum; L[id_L].c = c[i]; a[i] -= (LIM - now_sum); --a[i + 1]; break; } else { L[++id_L].cnt = a[i]; L[id_L].c = c[i]; now_sum += a[i]; a[i] = 0; } } per(i, n, 1) { if (a[i] == 0) break; R[++id_R].cnt = a[i]; R[id_R].c = c[i]; a[i] = 0; } for (int i = 1, j = 1; i <= id_L && j <= id_R; ++i) { while (L[i].cnt > 0 && j <= id_R) { if (L[i].cnt >= R[j].cnt) { if (L[i].c != R[j].c) ans += R[j].cnt; L[i].cnt -= R[j++].cnt; } else { if (L[i].c != R[j].c) ans += L[i].cnt; R[j].cnt -= L[i].cnt; L[i].cnt = 0; } } } return ;}signed main() { freopen("string.in", "r", stdin); freopen("string.out", "w", stdout); n = input<int>(); rep(i, 1, n) { a[i] = input<int>(); c[i] = getchar(); sum += a[i]; } if (sum % 2 == 0) solve(); else solve_now(); output(ans); return 0;}/*09:12 写完准备测样例09:16 样例 WA 了09:24 重新写完09:27 样例 3 WA 了09:28 重测样例09:30 样例通过*/```:::
虽然但是为啥写了这么长。
## 公开处刑(?)
SC-J01797 在 T4 贴了 $\color{red}671$ 句 `@double_bird 我喜欢你喵!`😨
是不是有点重力了😨
## 区神
:::info[代码]```cppSC-J02114\string\string.cpp
.../* I'm the god , and the smartest brain in the world think this code isn't correct . Although I have much power , but I can't find any data can hack it.(Well ,the true is,I'm too lazy) Q : Do you know who am I ? A : I'm the god of qu!!! */``````cppSC-J02114\card\card.cpp
.../*
I've been running in the strange lifechasing all the green lightsthrowing of the shade for a little bit sun shine
qi dai ananta qwq , hate wang yi's yun ying.
*/
/*
I'm very angry!!!Becase the jian kan guan(an old man)doesn't allow me to paly the game(the little dinosaur/xiao kong long)(surfing/chong lang).
*/
/* I don't know the correct code of the forth question */
/* I'm the king of qu. */
/* shi jie quan ju zhong , huan ying lai dao xin ai li du */
/* en ne ~ , en ne wa da, en ne en ne ! */
/*
bu shu yu zhe ge shi dai de yu zhehui wu zhi shang de wei da zhu zaizhi zhang hao yun de huang hei zhi wangnin zhong cheng de xin tu xiang nin qi qiu hao yunke wang nin bao you wo na dao j1= s1=hui hu po , jiang li liang chuan di gei wo de zhou wenkang nai xin , jiang li liang chuan di gei wo de zhou wenzan mei yu zhe
*/
/* a!~ zhe yang shou zhen TM gou jing */ ```:::
### 不知道写什么标题## 哒↘哒↗哒↘哒↗哒↘,好想玩原神😨
:::info[代码]```cppSC-J01781\*\*.cpp4 行未改动#define LoveOdette freopen("string.out", "w", stdout)```:::
### whk 大手子## whk 大手子
祝好!
:::info[代码]28 行未改动(没有 */)```:::
### 渣渣帅,吴。迪,队。英改。师!## 渣渣帅,吴。迪,队。英改。师!
SC-J01259 在 T4 末尾放了 30KB 的
```cpp9 行未改动/*回家第一件事,打开KARDSjjc,150金币一次我非常癫狂,德国主国法国盟国三张撤退坦克还有俯冲懵逼哥谁能如何我?!*/ ```
### freopen("xxx.in","w",stdin)## freopen("xxx.in","w",stdin)
call call back 一下。出现的 $24$ 次有以下同学:call call back 一下。出现的 $24$ 次来自于以下同学:
SC-J00032,TA 只有 T3 是这么写的🤔
SC-J00186,你包领了。7 行未改动SC-J01086 比较强大,TA 的头文件是 `#include <bits/std c++.h>;`,关同步流的方式是 `ios::sync_with_studio(false); cin.tie(pulltr);`,换行是 `/n`。
SC-J01352,SC-J01650,SC-J01974,你们都包领了。
### 三峡,记承天寺夜游,渡荆门送别## 三峡,记承天寺夜游,渡荆门送别
:::info[代码]```cppSC-J00247\travel\travel.cpp9 行未改动*/```:::
### Die For You,Da Capo## Die For You,Da Capo
xm 会默写。
:::info[代码]51 行未改动*/```:::
### #include<bits/stl_iterator_base_types.h>## #include<bits/stl_iterator_base_types.h>
这个人的代码怎么复制的是 `#include<bits/stl_iterator_base_types.h>`。
:::info[代码]237 行未改动全部展开#endif /* _STL_ITERATOR_BASE_TYPES_H */```:::
### 那你也进来吧## 这是什么做法
大哥你枚举所有情况枚举成 ABCDE 了/xk
:::info[代码]```cppSC-J01111\travel\travel.cpp
#include <bits/stdc++.h> #define ll long long #define rep(i, j, k) for (int i = j; i <= k; i++) #define dow(i, j, k) for (int i = j; i >= k; i--)
std::string s1, s2, c1, c2;
std::map < std::pair < std::string, std::string >, bool > ans[5];
signed main() {// freopen("travel6.in", "r", stdin); freopen("travel.in", "r", stdin); freopen("travel.out", "w", stdout); ans[1][{"00", "00"}] = 1; ans[1][{"01", "01"}] = 1; ans[1][{"02", "02"}] = 1; ans[1][{"03", "03"}] = 1; ans[1][{"04", "04"}] = 1; ans[1][{"05", "05"}] = 1; ans[1][{"06", "06"}] = 1; ans[1][{"07", "07"}] = 1; ans[1][{"08", "08"}] = 1; ans[1][{"09", "09"}] = 1; ans[1][{"10", "10"}] = 1; ans[1][{"11", "11"}] = 1; ans[1][{"12", "12"}] = 1; ans[1][{"13", "13"}] = 1; ans[1][{"14", "14"}] = 1; ans[1][{"15", "15"}] = 1; ans[1][{"16", "16"}] = 1; ans[1][{"17", "17"}] = 1; ans[1][{"18", "18"}] = 1; ans[1][{"19", "19"}] = 1; ans[2][{"00A", "00A"}] = 1; ans[2][{"00A", "00B"}] = 1; ans[2][{"00A", "00C"}] = 1; ans[2][{"00A", "00D"}] = 1; ans[2][{"00A", "00E"}] = 1; ans[2][{"00B", "00A"}] = 1; ans[2][{"00B", "00B"}] = 1; ans[2][{"00B", "00C"}] = 1; ans[2][{"00B", "00D"}] = 1; ...```:::
## 那你也进来吧
:::info[代码]```cppSC-J00495\travel\travel.cpp
.../*73 行未改动:::
作者显然是好人啊,有求必应,😋
### 咋考试的时候有人在楼下弹《妄想感伤代偿联盟》?## 咋考试的时候有人在楼下弹《妄想感伤代偿联盟》?
:::info[代码]```cppSC-J00520\and\and.cpp10 行未改动:::
这么牛,哪个考场的,
### Buy buy baby blue~## Buy buy baby blue~
:::info[代码]```cppSC-J00531\travel\travel.cpp51 行未改动:::
我还是绷住吧,!
### 人赢😡捅死你喵😡## @[wsy_I](https://www.luogu.com.cn/user/1152799) 祝 99
@[wsy_I](https://www.luogu.com.cn/user/1152799)😡😡😡
:::info[代码]```cppSC-J01653\card\card.cpp
15 行未改动至少她给过我美好的回忆。至少我一直会对她好。这就足够了。*/```:::[僵尸喝治疗药水.png]
## 被骗进来了
:::info[代码]```cppSC-J00927\travel\travel.cpp
...//freopen("travel.in","r",stdin);//freopen("travel.out","w",stdout);// freopen("travel.in","r",stdin);// freopen("travel.out","w",stdout);
// 骗你进来的,来听歌/*You meet the playlist at your very Chinese timeThe musics are so good, a devil may cry
大概顺序该是 321?*/
/*Soaring through the city again todayI get to see smile again'Cause any thing in the world couldn't take its placeCutting through the gentle breezeResting in the sunlight's easeDays like this means so much more to me right nowGod I wish these days would never fade awayA letter is a piece of the heartThat's where the story beginsHere you go(wow) with me(wow)It's the color of loveSometimes the color of tearsEvery shade inside the heartI'll send them far and anywhereAnywhere...```:::
当然,下次不建议注释 `freopen` 骗大家进来,因为这个实在是太多了。你可以使用一些更加猎奇的方法😋(?)
## @[Hamburger999](https://www.luogu.com.cn/user/1045301) 女装
机房同学最真切的愿望。
:::info[代码]```cppSC-J01276\card\card.cpp
.../*FAKE !!// freopen(".in", "r", stdin);FAKE !!// froepen(".out, "w", stdout);bestart AK ioixie_yu_fei AK ioi@Hamburger999 女装!!!!!!!!!!!
can't you! can't you! love me 中?---------------------------------------------------------5 331 3 1 15 7
don't use x1 y1 ....!!!
*/...```:::
## 好像是被爆零星神瞥视了一样
:::info[代码]```cppSC-J01358\card\card.cpp
.../*想进奇葩大赏 dogeT1 8:45T2 9:21 T3 9:45T4 棍木:棍木 看样子T4应该是没了,T3打了个暴力只优化了一下,一想到下周还要半期考9科就有点炸钢。已经学了3年c++了,但就好像是被爆零星神瞥视了一样,每次都在莫名其妙的地方爆零。希望这次不会吧。同龄人都打上NOIP了,我J组还没拿过一等奖(破绷了) ,也许是真的没什么天赋啊 为了今天的比赛昨天我甚至没有打崩铁和火影!!!!!!! 去年我们学校的 Asoccia(好像叫这个吧) 怒斥了学校和€€£,这里我就不说了 但今年报名费是真贵啊,18斤牛肉(bushi) 中考确实带走了我很多朋友,显得高中有些太乏味了,感觉学的还算比较好的只有化学能进年纪前十了 现在在犹豫是选物化生还是物化地,虽说生物简单点但竞争有点大,但是地理做起来像赤石一样下午再看看S组强度吧再爆零我真退役了—————————— 在人海的节奏随波,但只能在昨天诉说,梦想分数 化作泡沫却只能寄托可能有少数人记得回忆 却成为了枷锁请你遗忘我请你遗忘我月初冲分的村里 整理对局的思绪你曾是我的保底我最自信的保底可是我已无法找到自己的中场像在思路之间 设了防我们的羁绊并非点不亮只是被困在那个梯度榜阿巴阿巴阿巴阿巴阿巴阿巴阿巴 —————————— LGID:myubi(UID忘了 嘻嘻)*/```:::
## 打开评测开关!
SC-J01375 在每个代码都粘了一遍:
:::info[代码]```cpp/** * 打开评测开关! * 打开评测开关! * 打开评测开关! * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 * 打开评测开关 */```:::
## 宇宙冷漠这张牌我是非常了解的,
:::info[代码]```cppSC-J01694
#include<bits/stdc++.h>using namespace std;
int main(){ freopen("card.in","r",stdin); freopen("card.out","w",stdout); return 0;}/*高中老登被隔壁小孩哥暴力炸了有感觉吗写代码写一半蓝屏了有感觉吗,开机之后时间显示错了有感觉吗现在是2026年10月30日晚8点去年的J00165也是我,可惜今年我记不起来歌词了愤怒了,愚行了,悔恨了,执迷了,尖啸了,幽魂形态了,萎靡了,宇宙冷漠了,耸肩无视(并非)了回响形态了回响形态下午再整活,S00412↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓ */```:::
## 给 CCF 表白了
:::info[代码]```cppSC-J01768\travel\travel.cpp
.../*求CCF让我RP++Luogu:__Dhc666__uid:?(谁会记这玩意?)
(别看这个)链接:http://192.168.114.124/collect/download/kGpe3ZPbzFtqgjlQiQwU解压密码:Trick||Treat!(不给糖就捣蛋)
cmd:fc [文件1] [文件2]
下面是游记:
8:30 入考场,发现自己的J和S考场座位号一样(雷霆解压密码)
9:06 ACt1~~(t1水题,对于HCM来说这题太简单了)~~;
9:23 t2骗分(感觉在哪见过)
9:25 t3长得那么像背包?
9:37 t3貌似不能用DP:(
9:41 貌似想出t2正解
10:04 t2搞不出来,尝试骗分
10:30 t2>=50pts;开始t3骗分:)
11:14 t3>=50pts;
11:16 开始t4骗分
11:19 发现这次ccf给了1GB的空间:)
11:30 不能上厕所了,估分200+;
11:34 1=有问题吗??????
11:45 想上Luogu代码大赏
11:48 t4没骗到
11:50 发现t2忘写freopen了
11:55 交卷了
11:57 t4交上了!!!:)
*///freopen("travle.in","r",stdin);//freopen("travle.out","w",stdout);//I love ccf very much,more than other thing.```:::
## 大炮打蚊子
T4 原来是🧐,主席树!!??😰😰😰
:::info[代码]```cppSC-J01897\card\card.cpp
#include<bits/stdc++.h>//#define int long long #define endl '\n'#define YUANSHEN ios_base::sync_with_stdio(0);#define QIDONG cin.tie(0);#define inf 1e14#define mod 998244353#define frein freopen("card.in","r",stdin);#define freout freopen("card.out","w",stdout);#define pii pair<int,int>using namespace std;const int maxn=1e6+10;
/*难点在于考察 i 存在的充要条件考虑递推从后往前做f_i 表示以 i 为起点的出现数的桶数组l_i 表示最小的 j>i 满足 a_i=a_j那么有转移:f_i=f_{l_i}|=a_i直接主席树!!!!!!!!!!!!统计答案的话,对于每个根打标记,然后下传计算一下贡献即可*/
int ans[maxn],a[maxn],n,m,lst[maxn],root[maxn];
struct HJTtree{ int idx=0; struct Node{int sum,lc,rc,tag; bool vised;}tr[maxn*20]; void pushup(int u){tr[u].sum=tr[tr[u].lc].sum+tr[tr[u].rc].sum;} int build(int l,int r){ int u=++idx,mid=(l+r)>>1; if(l!=r)tr[u].lc=build(l,mid),tr[u].rc=build(mid+1,r); return u; } int update(int pos,int l,int r,int x){ int u=++idx,mid=(l+r)>>1; tr[u]=tr[pos]; if(l==r){tr[u].sum=1; return u;} else if(mid>=x)tr[u].lc=update(tr[pos].lc,l,mid,x); else tr[u].rc=update(tr[pos].rc,mid+1,r,x); pushup(u); return u; } void Query(int u,int l,int r){ if(tr[u].vised)return; tr[u].vised=true; if(l==r){ans[l]+=tr[u].tag*tr[u].sum; return;} int mid=(l+r)>>1; Query(tr[u].lc,l,mid),Query(tr[u].rc,mid+1,r); } void puttag(int u){tr[tr[u].lc].tag+=tr[u].tag,tr[tr[u].rc].tag+=tr[u].tag,tr[u].tag=0;} void Add(int u){tr[u].tag++;} void Output(int u,int l,int r){ int mid=(l+r)>>1; if(l==r)cout<<tr[u].sum<<" "; else Output(tr[u].lc,l,mid),Output(tr[u].rc,mid+1,r); }}T;
bitset<maxn*20> vis;
void Put(){ queue<int> q; for(int i=1;i<=n;i++) q.push(root[i]),T.Add(root[i]),vis[root[i]]=true; while(q.size()){ int u=q.front(); q.pop(); if(!T.tr[u].lc)continue; T.puttag(u); if(!vis[T.tr[u].lc])vis[T.tr[u].lc]=1,q.push(T.tr[u].lc); if(!vis[T.tr[u].rc])vis[T.tr[u].rc]=1,q.push(T.tr[u].rc); }}
void GetAns(){ for(int i=1;i<=n;i++) T.Query(root[i],1,m); for(int i=1;i<=m;i++) cout<<ans[i]<<((i!=m)?(" "):(""));}
signed main(){ YUANSHEN QIDONG frein freout cin>>n>>m; for(int i=1;i<=n;i++)cin>>a[i]; root[n+1]=T.build(1,m); for(int i=n;i;i--){ if(!lst[a[i]])root[i]=T.update(root[i+1],1,m,a[i]); else root[i]=T.update(root[lst[a[i]]],1,m,a[i]); lst[a[i]]=i; } Put(),GetAns(); return 0;}
/*CSP2026 邮寄
教练让我们打 J。
# 上午
在大巴上随机进行了一些膜拜,前往考场
到了考场楼下,发现了门口的**保安**,一群人开始哄笑
更牛的是发现考场居然有 6 层楼,而且门口有一个 C 区,并且 C 前面有一个 C 的印子
所以说今天真的是潜入 CCE
然后进入考场,发现每个人都带了 inf 件食物
开题,喵了一眼四个题,直接会了 3 个
开写,不知道为啥 T2 写得非常狗屎,写了特别久,10:00 才调过
T3 2min 就过了
开 T4,发现直接倒着做套个主席树就做完了,然后发现并不会噗叽组做法,于是开写,大概 10:40 就过了(直到我现在在写游记的 11:47 才发现是个树的形态,很容易拆贡献。。。应该不会被卡常吧。。。)
写了后面 3 个题的对拍,然后就没事干了,上了 3 次厕所,炫完了一袋甘蔗,出考场已经饱了*/```:::
---
作者翻到这么多已经力竭了😵,即将去耍起,大家如果有没上的猎奇小代码一定要给我,我也很想看🧐🧐🧐