正文
增加 76 行删除 108 行
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849182 行未改动全部展开23223323423523623723823924024124224324469 行未改动314315316317318319320321322123 行未改动全部展开44644744844945045145245345445545645745845928 行未改动48848949049149249349449549624 行未改动52152252352452552652752852924 行未改动5545555565575585595605615623 行未改动56656756856957057157257357457557657757857958058158258358458521 行未改动60760860961061161261361461524 行未改动64064164264364464564664764815 行未改动66466566666766866967067167232 行未改动70570670770870971071171271371471511 行未改动72772872973073173273373473573673773817 行未改动75675775875976076176276376476576676776876977077177277377477577677734 行未改动81281381481581681781881982082182282382482582620 行未改动8478488498508518528538548554 行未改动86086186286386486586686786813 行未改动8828838848858868878888898908918928938948958968978988999009019023 行未改动906907908909910911912913914915916917918919920105 行未改动全部展开102610271028102910301031103210331034114 行未改动全部展开114911501151115211531154115511561157115838 行未改动11971198119912001201120212031204120533 行未改动12391240124112421243124412451246124735 行未改动1283128412851286128712881289129012913 行未改动12951296129712981299130013011302130316 行未改动132013211322132313241325132613271328132913301331133213331334133521 行未改动13571358135913601361136213631364136558 行未改动142414251426142714281429143014311432254 行未改动全部展开168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171426 行未改动174117421743174417451746174717481749175017511752175317541755175617571758175917607 行未改动17681769177017711772177317741775177641 行未改动18181819182018211822182318241825182652 行未改动1879188018811882188318841885188618877 行未改动1895189618971898189919001901190219031904190519069 行未改动1916191719181919192019211922192319249 行未改动19341935193619371938193919401941194222 行未改动19651966196719681969197019711972197350 行未改动2024202520262027202820292030203120327 行未改动20402041204220432044204520462047204861 行未改动21102111211221132114211521162117211819 行未改动21382139214021412142214321442145214621472148214921502151215221537 行未改动由于个人保存不当,代码中中文注释全没了……。可能等官方的程序包出来后再去修改(前提是那时我还在役)。**UPD on 11.6:** 如下:## Q&A> 中文注释有抢救空间吗?在拿到其他途径的包之前,没有。> 其实四道题都有有机,怎么只挂上去了一道来着?太多了。我在考虑一下。> 那个“不知道该起什么名了”绝对是一个阿森纳球迷,所有阿森纳球迷在赛前都会唱这首歌我坐标GD,我的代码里也写了COYG(包括我的名字也是)改了改了。> 为什么不盒 SD-S01169你并没有在代码里留下点信息。(不排除我眼瞎)> 搜AFO的时候没搜到我吗?SD-S00822这个注释不太好挂吧:```/*�Ҳ���AAAAAAA����ô��ô�Ѱ����������������������������㲻��ҪAFO��������ף��˳��QAQ���������ҽ�һ��NOIP�ɡ���60+16+0+0����*/```> 怎么下自己代码啊https://yundouxueyuan.com/d/NOIPC/contest/6906489994e4fc6ce93893ff## 默哀区在代码中搜索 `//freopen`,共在 $89$ 个文件中找到了 $218$ 个结果。182 行未改动全部展开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];}}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]);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;//¼Ϊ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)//��ǰ���� ��¼ȡ{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];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$ 个是诈骗。---`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);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 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);}```34 行未改动#### SD-S01264```CCCCCCCCC CCCCCCCCCC FFFFFFFFFFFC C FC C FC C FC C FFFFFFFFFFFC C FC C FCCCCCCCCC CCCCCCCCCC F```~~**您在这种花呢?**~~20 行未改动```/*-------- �� || , ---- |--|--|| |---| / |--|--|| |---| /| |--|--|| |---| | || .|. | |4 行未改动#### 同上```^^^^^^^^^^^^( �� �� )| |------| |-------()| |13 行未改动/ / / / / / / / //____/ / /\ / /____ /____/ // / / \ / / // / / \ /____ ____/ / .```%%%%%%%%%%%#### SD-S?????```[||||]\__// \/ \/______\```## 盒子这一块3 行未改动`SD-S01020` 出现在了两个不同人的代码里。神秘。### 开盒环节:帮你们开了,不用谢。**SD-S00161**:@[China_DeepSeek](luogu://user/1209548)**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```### 大佬爆切 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```### 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//RP++```### I AKed CSPJ this morning35 行未改动while(heap7772666.size()&&cnts666<n666) {lsqxx666 bs666=heap7772666.top();heap7772666.pop();int lss666=bs666.s7771666; //Lin Sen Senint lxx666=bs666.t7771666; //Lin Xiao Xili666 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".//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```### 暴戾语言```cpp//FUCK Magus CYB//FUCK zzldd DJM//HAPPY```### 我知道你喜欢玩原神了21 行未改动### Wake up```Wake up!What should I do now?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 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 zhushixian zai yi jing shi 18:04 lewo 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 lewo xian zai yao nai zhe xing zi hui xiang yi xia,zai xei xia lai: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 bianxi wang neng hun ge 3=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 yilai ge blueblueblueblue26 行未改动at 17:204 duipais were builttry 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: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 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;}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 行未改动12345678910111213182 行未改动全部展开19619719819920020120220320420520620720869 行未改动278279280281282283284285286123 行未改动全部展开41041141241341441541641741841942042142242328 行未改动45245345445545645745845946024 行未改动48548648748848949049149249324 行未改动5185195205215225235245255263 行未改动53053153253353453553653753853954054154254354454554654754854921 行未改动57157257357457557657757857924 行未改动60460560660760860961061161215 行未改动62862963063163263363463563632 行未改动66967067167267367467567667767867911 行未改动69169269369469569669769869970070170217 行未改动72072172272372472572672772872973073173273373473573673773873974074134 行未改动77677777877978078178278378478578678778878979020 行未改动8118128138148158168178188194 行未改动82482582682782882983083183213 行未改动8468478488498508518528538548558568578588598608618628638648658663 行未改动870871872873874875876877878879880881882883884885886887888105 行未改动全部展开994995996997998999100010011002114 行未改动全部展开111711181119112011211122112311241125112638 行未改动11651166116711681169117011711172117333 行未改动12071208120912101211121212131214121535 行未改动1251125212531254125512561257125812593 行未改动12631264126512661267126812691270127116 行未改动128812891290129112921293129412951296129712981299130013011302130321 行未改动13251326132713281329133013311332133358 行未改动139213931394139513961397139813991400254 行未改动全部展开165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168226 行未改动170917101711171217131714171517161717171817191720172117221723172417251726172717287 行未改动17361737173817391740174117421743174441 行未改动17861787178817891790179117921793179452 行未改动1847184818491850185118521853185418557 行未改动1863186418651866186718681869187018711872187318749 行未改动1884188518861887188818891890189118929 行未改动19021903190419051906190719081909191022 行未改动19331934193519361937193819391940194150 行未改动1992199319941995199619971998199920007 行未改动20082009201020112012201320142015201661 行未改动20782079208020812082208320842085208619 行未改动21062107210821092110211121122113211421152116211721182119212021217 行未改动~~由于个人保存不当,代码中中文注释全没了……。~~可能等官方的程序包出来后再去修改(前提是那时我还在役)。**UPD on 11.7** 感谢 @[Lament_Rain](luogu://user/1157620) 提供的代码包,现在有中文注释了。并对原文进行整理。## 默哀区在代码中搜索 `//freopen`,共在 $89$ 个文件中找到了 $218$ 个结果。182 行未改动全部展开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];}}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]);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;//¼Ϊ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)//��ǰ���� ��¼ȡ{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];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$ 个是诈骗。---`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);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 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);}```34 行未改动#### SD-S01264```CCCCCCCCC CCCCCCCCCC FFFFFFFFFFFC C FC C FC C FC C FFFFFFFFFFFC C FC C FCCCCCCCCC CCCCCCCCCC F```~~**您在这种花呢?**~~20 行未改动```/*-------- �� || , ---- |--|--|| |---| / |--|--|| |---| /| |--|--|| |---| | || .|. | |4 行未改动#### 同上```^^^^^^^^^^^^( �� �� )| |------| |-------()| |13 行未改动/ / / / / / / / //____/ / /\ / /____ /____/ // / / \ / / // / / \ /____ ____/ / .```%%%%%%%%%%%#### SD-S?????```[||||]\__// \/ \/______\```## 盒子这一块3 行未改动`SD-S01020` 出现在了两个不同人的代码里。神秘。### 彩蛋2SD-J00001 出现在了选手文件夹中?### 开盒环节:帮你们开了,不用谢。**SD-S00161**:@[China_DeepSeek](luogu://user/1209548)**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```### 大佬爆切 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```### 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//RP++```### I AKed CSPJ this morning35 行未改动while(heap7772666.size()&&cnts666<n666) {lsqxx666 bs666=heap7772666.top();heap7772666.pop();int lss666=bs666.s7771666; //Lin Sen Senint lxx666=bs666.t7771666; //Lin Xiao Xili666 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".//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```### 暴戾语言```cpp//FUCK Magus CYB//FUCK zzldd DJM//HAPPY```### 我知道你喜欢玩原神了21 行未改动### Wake up```Wake up!What should I do now?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 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 zhushixian zai yi jing shi 18:04 lewo 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 lewo xian zai yao nai zhe xing zi hui xiang yi xia,zai xei xia lai: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 bianxi wang neng hun ge 3=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 yilai ge blueblueblueblue26 行未改动at 17:204 duipais were builttry 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: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 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;}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 行未改动