版本比较
2025 CSP-S SD 迷惑行为统计
正文
增加 70 行删除 70 行
195 行未改动全部展开19619719819920020020120220320420420520620720869 行未改动278279280281282282283284285286123 行未改动全部展开41041141241341441441541641741841941942042142242328 行未改动45245345445545645645745845946024 行未改动48548648748848948949049149249324 行未改动5185195205215225225235245255263 行未改动53053153253353453553453553653753853954054154254354454554554654754854921 行未改动57157257357457557557657757857924 行未改动60460560660760860860961061161215 行未改动62862963063163263263363463563632 行未改动66967067167267367367467567567667767867911 行未改动69169269369469569569669769869869970070170217 行未改动72072172272372472472572672772872872973073173273373473573673773673773873974074134 行未改动77677777877978078078178278278378478578678678778878979020 行未改动8118128138148158158168178188194 行未改动82482582682782882882983083183213 行未改动8468478488498508508518528538548558568578588598608618628588598608618628638648658663 行未改动870871872873874874875876877878879880881882882883884884885886887888105 行未改动全部展开994995996997998998999100010011002114 行未改动全部展开11171118111911201121112211211122112311241125112638 行未改动116511661167116811691169117011711172117333 行未改动120712081209121012111211121212131214121535 行未改动12511252125312541255125512561257125812593 行未改动126312641265126612671267126812691270127116 行未改动12881289129012911292129212931294129512961297129812991299130013011302130321 行未改动132513261327132813291329133013311332133358 行未改动1392139313941395139613961397139813991400254 行未改动全部展开1655165616571658165916601659166016611662166316641664166516661667166816671668166916701671167216731674167416751676167716781678167916801681168226 行未改动170917101711171217131714171317141715171617171718171917201721172217231724172417251726172717287 行未改动173617371738173917401740174117421743174441 行未改动178617871788178917901790179117921793179452 行未改动18471848184918501851185118521853185418557 行未改动186318641865186618671867186818691870187018711872187318749 行未改动18841885188618871888188818891890189118929 行未改动190219031904190519061906190719081909191022 行未改动193319341935193619371937193819391940194150 行未改动19921993199419951996199619971998199920007 行未改动200820092010201120122012201320142015201661 行未改动207820792080208120822082208320842085208619 行未改动2106210721082109211021102111211221132114211521162117211721182119212021217 行未改动195 行未改动全部展开 while(1){ x=q.top(),q.pop(); if(find(x.x)!=find(x.y) && !usd[x.tp]) break; }
fa[find(x.x)]=find(x.y);// printf("%lld %lld %lld %lld\n",x.x,x.y,x.v,x.tp); res+=x.v;
if(x.tp){ usd[x.tp]=1; _for(i,1,n) if(i!=d[x.tp]){ q.push({d[x.tp],i,p[x.tp][i],0});69 行未改动 return f[x]; } void mg(int x,int y){ if(siz[x] > siz[y]) swap(x,y); f[x] = y,siz[y] += siz[x]; f[x] = y,siz[y] += siz[x]; }}b;inline void check(){ sm = 0;b.init();123 行未改动全部展开 lena=maxn-minn+1; for(int j=1;j<=n;j++) for(int g=1;g<=s[i][0].length();g++) {
} */ cout<<0<<endl; }
return 0; }
28 行未改动 if(A>0){A--; happy+=a[stu][0]; club(stu+1); A++; happy-=a[stu][0];} if(B>0){B--; happy+=a[stu][1]; club(stu+1); B++; happy-=a[stu][1];} if(C>0){C--; happy+=a[stu][2]; club(stu+1); C++; happy-=a[stu][2];} } } }int main(){ freopen("club.in","r",stdin); freopen("club.ans","w",stdout);24 行未改动 { A=B=n/2; for(int j=1;j<=n;j++) { maxn+=max(a[j][0],a[j][1]); maxn+=max(a[j][0],a[j][1]); b[abs(a[j][0]-a[j][1])]++; if(a[j][0]>a[j][1]) {A--;c[abs(a[j][0]-a[j][1])]++;} else {B--;b[abs(a[j][0]-a[j][1])]++;} }24 行未改动 { for(int j=1;j<=n;j++) maxn+=max(a[j][0],max(a[j][1],a[j][2])); cout<<maxn<<endl; continue; } } } A=B=C=n/2; club(1); cout<<maxn<<endl;3 行未改动``````cpp#include<bits/stdc++.h>using namespace std;long long n,m,c[501],b[501],sum,ans;//c���� b��Ŀ bool p[501],lu[501],flag;//¼Ϊ1 long long n,m,c[501],b[501],sum,ans;//c���� b��Ŀbool p[501],lu[501],flag;//¼Ϊ1string a;const int mo=998244353;//998244353long long jc(int x){ int u=1; for(int i=x;i>=1;i--) u=(u*i)%mo; return u;}void pailie(int x,int y)//��ǰ���� ��¼ȡ void pailie(int x,int y)//��ǰ���� ��¼ȡ{ if(x>n) return; int temp,s; s=y; for(int i=1;i<=n;i++)21 行未改动 for(int i=1;i<=n;i++) { cin>>c[i]; b[i]=a[i-1]-'0'; sum+=b[i]; sum+=b[i]; if(c[i]==0) flag=1; } if(m==n){if(sum!=n||flag!=0) cout<<0; else cout<<jc(n); return 0;} if(m>sum){cout<<0; return 0;}24 行未改动`road2.in/out/ans` 在 `freopen` 里出现了 $2$ 次,有 $2$ 个是诈骗。
`road3.in/out/ans` 在 `freopen` 里出现了 $8$ 次,有 $5$ 个是诈骗。
`road4.in/out/ans` 在 `freopen` 里出现了 $10$ 次,有 $10$ 个是诈骗。 `road4.in/out/ans` 在 `freopen` 里出现了 $10$ 次,有 $10$ 个是诈骗。
---
`replace1.in/out/ans `在 `freopen` 里出现了 $7$ 次,有 $5$ 次是诈骗。15 行未改动`club4.in/out/ans `在 `freopen` 里出现了 $8$ 次,有 $8$ 次是诈骗。
`club5.in/out/ans `在 `freopen` 里出现了 $13$ 次,有 $13$ 次是诈骗。
--- ---
`employ1.in/out/ans `在 `freopen` 里出现了 $8$ 次,有 $7$ 次是诈骗。
`employ2.in/out/ans `在 `freopen` 里出现了 $4$ 次,有 $2$ 次是诈骗。32 行未改动int main(){ freopen("replace.in","r",stdin); freopen("replace.out","w",stdout); ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); while(1); while(1); return 0;} }//CCF is good//CCF is good//CCF is good//CCF is good11 行未改动```cpp/*CCF CCF CCF CCF CCF CCF CCF CCF CCF CCF CCF CCF is is is is isCCF CCF CCF isCCF CCF CCF CCF CCF CCF is is is is is CCF CCF CCF CCF CCF CCF is is is is isCCF CCF CCF is isCCF CCF CCF CCF CCF CCF CCF CCF CCF is is is is is .................*/ */```不做评价。
## 代码长度这一块17 行未改动 printf("0\n0\n0\n0\n"); } if(n==37375 and m==27578){ printf(/*省略 82Kb 大样例内容*/);
} if(n==2235 and m==1010){ printf(/*省略 3Kb 大样例内容*/);
} else{ for(int i=0;i<m;i++){ cout<<0<<'\n'; } } return 0; fclose(stdin); fclose(stdout); fclose(stdin); fclose(stdout);}
```
34 行未改动
#### SD-S01264
``` CCCCCCCCC CCCCCCCCCC FFFFFFFFFFF CCCCCCCCC CCCCCCCCCC FFFFFFFFFFF C C F C C F C C F C C F C C FFFFFFFFFFF C C F C C F C C F CCCCCCCCC CCCCCCCCCC F```
~~**您在这种花呢?**~~20 行未改动
```/*-------- �� || , ---- |--|--| | , ---- |--|--|| |---| / |--|--|| |---| /| |--|--|| |---| | || .|. | |4 行未改动
#### 同上
``` ^^^^^^^^^^^^ ^^^^^^^^^^^^ ( �� �� ) | |------| |-------() | |13 行未改动 / / / / / / / / / /____/ / /\ / /____ /____/ / / / / \ / / / / / / \ /____ ____/ / .
```
%%%%%%%%%%%
#### SD-S?????
``` [||||] \__/ / \ / \ /______\ [||||] \__/ / \ / \ /______\```
## 盒子这一块3 行未改动`SD-S01020` 出现在了两个不同人的代码里。
神秘。
### 彩蛋2 ### 彩蛋2
SD-J00001 出现在了选手文件夹中?
### 开盒环节:
帮你们开了,不用谢。
**SD-S00161**:@[China_DeepSeek](luogu://user/1209548) **SD-S00161**:@[China_DeepSeek](luogu://user/1209548)
**SD-S00433**:@[undefined_behavior](luogu://user/780262) **SD-S00433**:@[undefined_behavior](luogu://user/780262)
**SD-S00436**:@[Meng_Xiangyu](luogu://user/1433474)
**SD-S00446**:@[JuRuoOIer](luogu://user/476093)105 行未改动全部展开### 祝好```//love you//OI//bye~ bye //bye~ bye```### 大佬爆切 T2```//14:48 begin114 行未改动全部展开// b[42]=a[][]+a[][]+a[][]+a[][];// b[43]=a[][]+a[][]+a[][]+a[][];// b[44]=a[][]+a[][]+a[][]+a[][];// b[45]=a[][]+a[][]+a[][]+a[][];// // } //// }```
### 不可以,总司令```cpp38 行未改动```还有
```cpp// wo zhen de bu xiang tui yi // wo zhen de bu xiang tui yi```
### Don't learn me```cpp33 行未改动### 来 生 再 见
```cpp//i love yukina roxy anon yuki aimi aiba and all of bangdreams characters and cvs//CCF SEE U NEXT LIVE //CCF SEE U NEXT LIVE//RP++```
### I AKed CSPJ this morning35 行未改动 while(heap7772666.size()&&cnts666<n666) { lsqxx666 bs666=heap7772666.top(); heap7772666.pop(); int lss666=bs666.s7771666; //Lin Sen Sen int lxx666=bs666.t7771666; //Lin Xiao Xi int lxx666=bs666.t7771666; //Lin Xiao Xi li666 dis666=bs666.wd666; if(fam666(lss666, lxx666)) continue; heap666.push(bs666); answer666+=dis666;3 行未改动 li666 ans666=answer666; li666 ly666=n666+k666; //Lin Yin, you have been rebirthed!!! //I will save you, Lin Yin... ... //Brother... My elder brother... ... //Now, let's say "Goodbye". //Now, let's say "Goodbye". //Goodbye, my brother... ... //Goodbye, my inside girl-- Little Yin... ... for(int i666=0; i666<lm666; i666++) { //I have so much power!!! I am powerful!!! -- Lin Yin16 行未改动```
还有直抒胸臆:```//I love CCF //I love CCF```
### 暴戾语言
```cpp//FUCK Magus CYB//FUCK zzldd DJM //FUCK zzldd DJM//HAPPY```
### 我知道你喜欢玩原神了21 行未改动### Wake up```Wake up!What should I do now?Could I see the blossom? Could I see the blossom?But now I may find you.
Why T1 so hard!!!!!!!!
58 行未改动Your heart's been aching but you're too shy to say itInside we both know what's been going onWe know the game and we're gonna play itAnd if you ask me how I'm feelingDon't tell me you're to blind to see Don't tell me you're to blind to seeNever gonna give you upNever gonna let you downNever gonna run around and desert youNever gonna make you cry254 行未改动全部展开xian zai hai mei kai kao,wo jiu yi jing po bu ji dai dexie xia le zhe duan zhushi
xian zai yi jing shi 18:04 lewo de xin qing shi fen gou shi dao bu shi shuo wo zuo le yi dui gou shi wo de xin qing shi fen gou shidao bu shi shuo wo zuo le yi dui gou shi(shi ji shang wo jiu shi zuo le yi tuo gou shi ,dan wo de yi si shi wo bu shi yin wei wo zuo le yi tan gou shi xin qing bian gou shi de)er shi yin wei wo fa zi fei fu xie le yida duan hua wang bao cun leqi si wo le qi si wo lewo xian zai yao nai zhe xing zi hui xiang yi xia,zai xei xia lai:
wo mei nai xin xiang le fan zheng da gai jiu shi gan xie le yi dui ren wo mei nai xin xiang lefan zheng da gai jiu shi gan xie le yi dui renran hou jue de zhe ci kao ~120ru guo wo you xing(xing yun de xing)qie you qing(qing xv de qing) wo hui zai NOIP hao hao zai xie yi bian
xi wang neng hun ge 3=
gan xie na ge zheng li mi huo xing wei da shang de ren gan xie na ge zheng li mi huo xing wei da shang de renma fang ni ba zhe yi da duan wen zi xie cheng han ziFrom luogu @Shiro_Zhu BCMS ZhuXiling : bi wo cai de bi wo qiang de gen wo shui ping cha bu duo de dou AK CSPhai you ,wo bu xiang ding ge lv gou tui yi hai you ,wo bu xiang ding ge lv gou tui yilai ge blueblueblueblue26 行未改动
at 17:204 duipais were built
try to write an overall selfeval but failed try to write an overall selfevalbut failed*/```
### 游记爷
```/*Ren5Jie4Di4Ling5%16:25 wtf so easy?just hash is ok or i am a (b h)?16:30 i understand the problem in a wrong way OvO. 16:30 i understand the problem in a wrong way OvO.16:40 i can only solve 25pts,D first.17:00 back to think C17:20 i think i should start to write codes for C and D,only 249pts,sad17:35 finisg 25pts,why wrong?7 行未改动
### 我猜 1```cpp#include<bits/stdc++.h>#define pii pair<long long,long long> #define pii pair<long long,long long>#define ll long longusing namespace std;const int N = 1e5 + 9;int n,m,k,w[N];41 行未改动
int main(){ freopen(".in","r",stdin); freopen(".out","w",stdout);
return 0;}```### T1 肝佬52 行未改动}sta3[N];
int cmp1(node a,node b){ return a.fir>=b.fir; return a.fir>=b.fir;}
int cmp2(node a,node b){7 行未改动
signed main(){
freopen("club.in","r",stdin); freopen("club.out","w",stdout);
cin>>t; while (t--) { cin>>n;9 行未改动 sta[i].c12=sta[i].fir-sta[i].sec; sta[i].c13=sta[i].fir-sta[i].thi; sta[i].c23=sta[i].sec-sta[i].thi; }
sort(sta+1,sta+n+1,cmp1); for (int i=1;i<=n;i++) { sta1[i].fir=sta[i].fir;9 行未改动 sta[i].vis=1; num[i]=1; } //cout<<ans<<endl;
sort(sta+1,sta+n+1,cmp2); for (int i=1;i<=n;i++) { sta2[i].fir=sta[i].fir;22 行未改动 num[i]=2; } } //cout<<ans<<endl;
sort(sta+1,sta+n+1,cmp3); for (int i=1;i<=n;i++) { sta3[i].fir=sta[i].fir;50 行未改动 { yi=sta[i].thi; y=3; }
if (sta[i].fir>=sta[i].sec&&sta[i].fir<=sta[i].thi||sta[i].fir>=sta[i].thi&&sta[i].fir<=sta[i].sec) { er=sta[i].fir; e=1;7 行未改动 { er=sta[i].thi; e=3; }
if (sta[i].fir<=sta[i].sec&&sta[i].fir<=sta[i].thi) { san=sta[i].fir; s=1;61 行未改动 sta2[j].vis=1; break; } }
} } else if (y==3) {19 行未改动 } } } }
} } } } cout<<ans<<"\n"; }
return 0;}
7 行未改动