版本比较
2024 CSP-J/S 代码迷惑行为大赏(JX)
标题
增加 1 行删除 1 行
12024 & 2025 CSP-J/S 代码迷惑行为大赏(JX)12024 CSP-J/S 代码迷惑行为大赏(JX)
正文
增加 933 行删除 127 行
1234546 行未改动52535455565758596028 行未改动89909192939495969716 行未改动1141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731742 行未改动17717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422541 行未改动26726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830962 行未改动37237337437537637737837938038138238338438538638738838939059 行未改动450451452453454455456# 2024## 数据统计整个江西 CSP-J/S 所有代码共 `7.15 MB`,其中 J 有 `2.70 MB`,S 有 `4.45 MB`。46 行未改动```### freopen(".out","r",stdout)在 J 组中共有 26 个 `freopen(".out","r",stdout)`,在 S 组中有 8 个。### freopen(".in","w",stdout)```JX-S00162\arena28 行未改动JX-J00334\chainJX-J00777\sticks```### \#define int long long在 J 组中共有 42 个 `#define int long long`,在 S 组中有 123 个。16 行未改动在 J 组中共有 25 个 `csp`,在 S 组中有 21 个。### ccf在 J 组中共有 2 个 `ccf`,均在 `JX-J00847\chain` 中,在 S 组中有 5 个,分别是:```JX-S00332\arenaJX-S00386\arenaJX-S00386\duelJX-S00405\detectJX-S00449\color```### .ans```JX-S00039\arenaJX-S00039\colorJX-S00039\detectJX-S00039\duelJX-S00041\duelJX-S00173\arenaJX-S00371\duelJX-J00339\exploreJX-J00339\sticksJX-J00582\pokerJX-J00582\sticksJX-J00640\pokerJX-J00640\sticks```## 迷惑行为以下按准考证字典序排列,**如有侵权请联系作者删除**。### JX-J00002chain:**忘了输出**。```cpp#include<iostream>using namespace std;const int N=2*1e+5;int t;int n,k,q;int l[N];int main(){freopen("chain.in","r",stdin);freopen("chain.out","w",stdout);cin>>t;for(int i=0;i<t;i++){cin>>n>>k>>q;}return 0;}```### JX-J00003explore:**读样例大佬**。```cpp2 行未改动freopen("explore1.out","w",stdout);...```### JX-J00004chain:**忘了文件读写**。```cpp#include<algorithm>#include<iostream>#include<string>#include<cmath>using namespace std;int T,n,k,p,l,s[100000][10000],r,c;int x=1;int main(){cin>>T;while(T){cin>>n>>k>>p;for(int j=1;j<=n;j++){cin>>l;for(int i=1;i<=l;i++)cin>>s[j][i];}while(p){cin>>r>>c;if(s[n][l%r]==c){x=0;cout<<1<<endl;}}if(x==1)cout<<0<<endl;T--;}}```### JX-J00014chain:**itn大佬,然后自己看吧**。```cpp41 行未改动}```### JX-J00018sticks:**括号不配对大佬**```cpp#include <bits/stdc++.h>using namespace std;int a[10] = {6,2,5,5,4,5,6,3,7,6};int main() {// freopen("sticks.in", "r", stdin);// freopen("sticks.out", "w", stdout);int T;cin >> T;while(T--) {int n, ans = INT_MAX;cin >> n;if(n == 1) cout << "-1\n";else if(n == 2) cout << "1\n";else if(n == 3) cout << "7\n";else if(n == 4) cout << "4\n";else if(n == 5) cout << "2\n";else if(n == 6) cout << "6\n";else if(n == 7) cout << "8\n";else if(n == 8) cout << "19\n";else if(n == 9) cout << "18\n";else{cout << "-1\n";}return 0;}```### JX-J00022chain:**运气牢大**。```cpp62 行未改动sticks:**.out大佬**。### JX-J00027sticks:**双引号配对大佬**。```cpp...for(int i=0;i<=T;i++){cout<<"-1""<<endl;}...```### JX-J00032explore:```cpp59 行未改动CCF 没 M 了/fn/fn/fn```# 2025马上搞。1234546 行未改动5253545556575859606162636465666768697028 行未改动9910010110210310410510610710810911011111211311411511611711811912012112212312416 行未改动1411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851862 行未改动18919019119219319419519641 行未改动23823924024124224324424562 行未改动30830931031131231331431531659 行未改动37637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262# 2024 CSP-J/S 代码迷惑行为大赏(JX)## 数据统计整个江西 CSP-J/S 所有代码共 `7.15 MB`,其中 J 有 `2.70 MB`,S 有 `4.45 MB`。46 行未改动```### freopen(".out","r",stdout)在 J 组中共有 26 个 `freopen(".out","r",stdout)`,在 S 组中有 8 个,分别是:```JX-S00195\arenaJX-S00208\colorJX-S00229\arenaJX-S00229\colorJX-S00229\detectJX-S00229\duelJX-S00328\detectJX-S00406\duel```### freopen(".in","w",stdout)```JX-S00162\arena28 行未改动JX-J00334\chainJX-J00777\sticks```### .ans```JX-S00039\arenaJX-S00039\colorJX-S00039\detectJX-S00039\duelJX-S00041\duelJX-S00173\arenaJX-S00371\duelJX-J00339\exploreJX-J00339\sticksJX-J00582\pokerJX-J00582\sticksJX-J00640\pokerJX-J00640\sticks```### \#define int long long在 J 组中共有 42 个 `#define int long long`,在 S 组中有 123 个。16 行未改动在 J 组中共有 25 个 `csp`,在 S 组中有 21 个。### ccf在 J 组中共有 2 个 `ccf`,均在 `JX-J00847\chain` 中;在 S 组中有 5 个,分别是:```JX-S00332\arenaJX-S00386\arenaJX-S00386\duelJX-S00405\detectJX-S00449\color```### rp++在 J 组中共有 13 个 `rp++`,在 S 组中有 13 个。### ak csp```JX-J00929\exploreJX-J00929\pokerJX-J00929\sticks```### ak ioi```JX-S00272\arenaJX-S00272\colorJX-S00272\detectJX-S00272\duelJX-J00513\chainJX-J00513\exploreJX-J00513\pokerJX-J00513\sticks```## 迷惑行为以下按准考证字典序排列,**如有侵权请联系作者删除**,想上的也可以在底下评论。### JX-J00003explore:**读样例大佬**。```cpp2 行未改动freopen("explore1.out","w",stdout);...```### JX-J00014chain:**itn大佬,然后自己看吧**。```cpp41 行未改动}```### JX-J00022chain:**运气牢大**。```cpp62 行未改动sticks:**.out大佬**。### JX-J00032explore:```cpp59 行未改动CCF 没 M 了/fn/fn/fn```### JX-J00059sticks:```cpp...//first,the number whose need of sticks is more than the real number has the priority;//we can easily found the priority of all the numbers;the queue is(real number)2,1,3,4,5,6,8,9,7;...```### JX-J00073chain:```cpp#include<iostream>#include<cstring>#include<cstdio>using namespace std;int main(){freopen("chain.in","r",stdin);freopen("chain.out","w",stdout);//666zhegerushiguiwolandexielereturn 0;}```### JX-J00201chain/explore/poker/sticks:```cpp/*priority vector greater resice insert reverse erase std::ios::sync_with_stdio(false)*/...```### JX-J00480chain/explore/poker/sticks:```cpp...//rp++//luogu:jiangyunuo```### JX-J00549chain:**精神失常**。```cpp#include<bits/stdc++.h>using namespace std;int main(){freopen("chain.in","r",stdin);freopen("chain.out","w",stdout);/*Although the chain is a the most difficultbut it is truly the best of all.The game is agood game,but I can not do it.So,do it ge dan.HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA!!!*/fclose(stdin);fclose(stdout);return 0;}```### JX-J00570poker:```cpp...//8:40 the contest problems weren't coming//8:50 the same as 8:40//8:51 downloading the problem//9:00 failed//9:01 opened//9:08 T1 finished//9:34 T2 finished(has somthing wrong with my brain)//9:35 find T3 is the problem that I have solved!!!//10:06 T3 finished//10:15 T4 failed, the problem is too hard//the contest changed the ending time to 12:30//11:48 finished...```### JX-J00943chain:```cpp// Luogu: 706607.../*wei le ni chang xia quLuoTianyi / COPwei le ni chang xia quzhi dao huang wuwei le ni chang xia quzhi dao ...*/```explore:```cpp// Luogu: 706607.../*I love LuoTianyi*/```poker:```cpp// Luogu: 706607.../*shang shang gangLuoTianyi / ilemping fan cheng shiping dan gu shiping jing bu cheng shiguang ying tai duanbei shang tai qianbu gou niang cheng jiuze ze ping pingjiao bu cong congchun xia you qiu donggu shi jiang gei wowo men xie shou gezhe ying gai hui you yongni jiang wo chang ni lai heshang shang gang shang shang gangqing ting wo da shen changchang feng shuang chang chun guangchang shi guang chang chen zhangbu gu dan bu gu danyin wei wo men dou yi yangbu zuo chi bang ye zuo ge jian bang*/```sticks:```cpp// Luogu: 706607.../*Lao, wo qing ai de laoni zen me jiu shi ge zhi pian ren ajiu, wo bu neng jie shouta zhen de hao hui chang*/```### JX-S00005duel:```cpp.../* -----------(@#########@)(@###############@)@#################@@#######@@@#######@@#####@R.I.P@#####@@#######@@@#######@@@ALYMINE FOREVER@@@#######@@@#######@@#################@*@#################@**@#################@*~~...---... ...---...~~*/```### JX-S00015**无缩进大佬**。arena:```cpp//If I am SSHed, I don't want my code can be used by Karry5307 directly.#include<bits/stdc++.h>#define int long long#define N 100005#define M 17using namespace std;inline int r(){int x;cin>>x;return x;}inline void w(int x){cout<<x<<'\n';}inline void W(int x){cout<<x<<' ';}bool d[M][M];int init[M];int x[4];int a[N];int c[N];signed main(){ios::sync_with_stdio(0),cin.tie(0);freopen("arena.in","r",stdin);freopen("arena.out","w",stdout);init[0]=1;for(int i=1;i<M;i++)init[i]=init[i-1]*2;int n=r(),m=r(),k;for(int i=1;;i++)if(init[i]>=n){k=i;break;}for(int i=1;i<=n;i++)a[i]=r();for(int i=1;i<=m;i++)c[i]=r();for(int i=k;i;i--)for(int j=1;j<=init[i-1];j++){char c;cin>>c;d[i][j]=(c=='1');}int t=r();while(t--){int ans=0;for(int i=0;i<4;i++)x[i]=r();for(int i=1;i<=n;i++)a[i]^=x[i%4];for(int i=1;i<=m;i++){for(int j=1;;j++)if(init[j]>=c[i]){k=j;break;}for(int j=k;j;j--){}}for(int i=1;i<=n;i++)a[i]^=x[i%4];}return 0;}// Oh no, I don't have time to finish this problem!```color:```cpp// If I am SSHed, I don't want my code can be used by Karry5307 directly.#include<bits/stdc++.h>#define int long long#define N 200005using namespace std;inline int r(){int x;cin>>x;return x;}inline void w(int x){cout<<x<<'\n';}inline void W(int x){cout<<x<<' ';}int n,ans;bool f[N];int a[N];inline void dfs(int x){if(x>n){int thoth=0;for(int i=1;i<=n;i++){bool flag=0;for(int j=i-1;j;j--)if(f[j]==f[i]){flag=(a[j]==a[i]);break;}thoth+=flag*a[i];}ans=max(ans,thoth);return;}f[x]=0;dfs(x+1);f[x]=1;dfs(x+1);}signed main(){ios::sync_with_stdio(0),cin.tie(0);freopen("color.in","r",stdin);freopen("color.out","w",stdout);int t=r();while(t--){n=r(),ans=0;for(int i=1;i<=n;i++)a[i]=r();dfs(1);w(ans);}return 0;}// This idea just need 4×10^13 years to pass n<=10^2 and 4×10^585 years to pass n<=2,000!I am genius!```detect:```cpp#include<bits/stdc++.h>#define int long long#define N 100005using namespace std;inline int r(){int x;cin>>x;return x;}inline void w(int x){cout<<x<<'\n';}inline void W(int x){cout<<x<<' ';}vector<int>point;map<int,int>mp;struct car{int d,v,a;}a[N];int n,m,L,V,ans;pair<int,int>line[N];bool f[N];int p[N];int sum[N];inline void solve1(){bool flag=0;int thoth=0;for(int i=1;i<=n;i++)if(a[i].v>V&&p[m]>=a[i].d)thoth++,flag=1;W(thoth),w(m-flag);}inline void solve2(){bool flag=0;int thoth=0;for(int i=1;i<=n;i++)if(a[i].d<=p[m]&&sqrt(a[i].v*a[i].v+2*a[i].a*(p[m]-a[i].d))*1.0>V*1.0)thoth++,flag=1;W(thoth),w(m-flag);}inline void dfs(int x,int thoth){if(x>m){int tot=0;for(int i=1;i<=n;i++)for(int j=1;j<=m;j++)if(f[j]&&a[i].d<=p[j]&&sqrt(a[i].v*a[i].v+2*a[i].a*(p[j]-a[i].d))*1.0>V*1.0){tot++;break;}if(tot==thoth){tot=0;for(int i=1;i<=m;i++)tot+=!f[i];ans=max(ans,tot);}return;}f[x]=0,dfs(x+1,thoth),f[x]=1,dfs(x+1,thoth);}inline void solve3(){int thoth=0;ans=0;for(int i=1;i<=n;i++)for(int j=1;j<=m;j++)if(a[i].d<=p[j]&&sqrt(a[i].v*a[i].v+2*a[i].a*(p[j]-a[i].d))*1.0>V*1.0){thoth++;break;}W(thoth),dfs(1,thoth),w(ans);}// inline void solve4(){// int thoth=0;// for(int i=1;i<=n;i++){// if(!a[i].a&&a[i].v>V&&a[p].d<=p[m])line[++thoth]=make_pair(lower_bound(p+1,p+m+1,a[i].d)-p,m),v.push_back(lower_bound(p+1,p+m+1,a[i].d)-p),v.push_back(m);// else if(a[i].a>0&&sqrt(a[i].v*a[i].v+2*a[i].a*(p[m]-a[i].d))*1.0>V*1.0)line[++thoth]=make_pair(lower_bound(p+1,p+m+1,(V*V-a[i].v*a[i].v)/2/a[i].a)+a[i].d)-p,m),v.push_back(lower_bound(p+1,p+m+1,(V*V-a[i].v*a[i].v)/2/a[i].a)+a[i].d)-p),v.push_back(m);// else if(a[i].a<0&&a[i].v>V&&a[i].d<=p[m])line[++thoth]=make_pair(lower_bound(p+1,p+m+1,a[i].d)-p,lower_bound(p+1,p+m+1,(V*V-a[i].v*a[i].v)/2/a[i].a)+a[i].d)-p),v.push_back(lower_bound(p+1,p+m+1,a[i].d)-p),v.push_back(lower_bound(p+1,p+m+1,(V*V-a[i].v*a[i].v)/2/a[i].a)+a[i].d)-p);// }// sort(v.begin,v.end());// int tot=unique(v.begin(),v.end())-v;// for(int i=1;i<=tot;i++)mp[v[i-1]]=i;// for(int i=1;i<=thoth;i++)sum[line[i].first]++,sum[line[i].second+1]--;// for(int i=1;i<N;i++)sum[i]+=sum[i-1];// for(int i=1;i<=thoth;i++){// int maxx=0,rk;// for(int j=line[i].first;j<=line[i].second;j++)if(sum[j]>maxx)maxx=sum[j],rk=j;// if(maxx)// }// }signed main(){ios::sync_with_stdio(0),cin.tie(0);freopen("detect.in","r",stdin);freopen("detect.out","w",stdout);int t=r();while(t--){bool flag1=1,flag2=1,flag3=1;n=r(),m=r(),L=r(),V=r();for(int i=1;i<=n;i++){a[i].d=r(),a[i].v=r(),a[i].a=r();if(a[i].a)flag1=0;if(a[i].a<0)flag2=0;if(a[i].a>0)flag3=0;}for(int i=1;i<=m;i++)p[i]=r();sort(p+1,p+m+1);if(flag1)solve1();else if(flag2)solve2();else if(m<=20)solve3();// else if(m<=3000)solve4();}return 0;}// Oh no, I don't have time to finish this problem!```### JX-S00094arena/color/detect/duel:```cpp/*Author : Sparkle_ZH & Spark1037Right OutPut ! & Accepted !*/...```### JX-S00114arena/color/detect/duel:```cpp/*priority vector greater resize reverse insert erase*/...```### JX-S00136arena:```cpp.../** NOI Every Year (From Computer's Background)* 30th 2013 Chengdu* 31st 2014 Shenzhen* 32nd 2015 Hangzhou* 33rd 2016 Mianyang* 34th 2017 Shao#xing* 35th 2018 #* 36th 2019 Guangzhou* 37th 2020 #* 38th 2021 #* #:There is no word or the word is too small so that I can't kown it claerly.*/...```### JX-S00185color/detect/duel:```cpp...// Right here I sing a song for you// I cheer for bilibili for you// ni xing zhong hao han de yu zhou// shan shuo zhe ming wei meng de xing qiu// Luogu@zaochen, QQ@2633941738// wuwu xue xiao pai zhao you bu dai wo// /ll...```### JX-S00249arena:```cpp#include<bits/stdc++.h>using namespace std;int main(){// I cannot say anymore.// Connector & Unattainable Sun Day// Make it Attainable.// See U never.return 0;}```### JX-S00259arena/color/detect/duel:```cpp...//rp++//luogu:jiangyunuo```### JX-S00298color/detect/duel:```cpp.../*NOIP 2024 RP ++--DZDdzd*/```### JX-S00303duel:```cpp...//14:37 the problem was coming but << 8min left >>//14:40 failed//14:45 downloading//14:51 nearly failed//14:55 see the problem!!!//15:04 T1 finished//16:49 T2 60pts//16:58 T3 20pts//17:30 T4 failed...```### JX-S00326arena:```cpp#define yuanshen <bits/stdc++.h>#define Girl using#define Band namespace#define Cry std#define play int#define maimai main#define ALL return#define PERFECT 0#include yuanshenGirl Band Cry;play maimai(){//freopen("aziyi.in","r",stdin);//freopen("aziyi.out","w",stdout);//a mi nuo sifor(int i=1;i<=101.0000;i++){break;break;break;}ALL PERFECT;}/*bu hui xie le,wo sui bian xie diandi yi ti hao jian dan(hou mian de ti wo dou zai pian fen,rp++shuo qi lai zuo tian wan shang chu qin de shi hou da dao bi dian,jie guo zui hou yi ba mei bao cun ji zi jiu guan le(ni de zhang hao mei you zheng chang deng chu)(qing yu 15 fen zhong hou zai ci deng lu)wo gang tui de fen a!!!!!mei shi wo dai hui er jiu qu chu qinma shang jiu qu*/```### JX-S00364arena/detect/duel:```cpp/** a.cpp** Copyright 2024 NOI <noi@G-08-D03>** This program is free software; you can redistribute it and/or modify* it under the terms of the GNU General Public License as published by* the Free Software Foundation; either version 2 of the License, or* (at your option) any later version.** This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the* GNU General Public License for more details.** You should have received a copy of the GNU General Public License* along with this program; if not, write to the Free Software* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,* MA 02110-1301, USA.***/#include<bits/stdc++.h>using namespace std;int main(){/*freopen("","r",stdin)*freopen("","w",stdout)*fclose(stdin)*fclose(stdout)*/return 0;}```### JX-S00386arena:```cpp...//Finally I Will join The CCF//And Make A Question That The Answer Is "No"!```color:```cpp...//Then I Can Go To TsingHua Uni ^-^//And Find My Way To Learn OI...```detect:```cpp...//Please All " Cout << "No\n" "!//Then I Can Get Extra Scores!```duel:```cpp...// I Love U CCF!// Please Give Me More Scores!```### JX-S00405detect:```cpp.../*CCF Ni Chu De Shen Me La Ji Da Mo Ni TAMDE Wo Da le 1 kun Hours Dou Mei Guo Yangli*/```### JX-S00433duel:```cpp#include<bits/stdc++.h>using namespace std;const int N=2e6+10;//test data/*10136 136 136 2417 136 136 2417 136 136 136*/int n,a[N],cnt;bool l[N],f[N];int b[N],fb[N],live;//l dai biao shi fou tui chu//f dai biao shi fou gong ji guobool cmp(int a1,int a2){return a1<a2;}//x:jian shu y:bei jian shuvoid cut(int x,int y){if(x <= y) return;// if(fb[x] == 0) cut(x+1,y);// if(b[y] == 0) cut(x,y+1);if( fb[x] == b[y] ){live-=fb[x];b[y]=0;fb[y]=0;fb[x]=0;return;}if(fb[x] > b[y]){live-=b[y];fb[x]-=b[y];fb[y]=0;b[y]=0;//cut(x,y+1);}if(fb[x] < b[y]){live-=fb[x];b[y]-=fb[x];fb[x]=0;//cut(x+1,y);}return;}int main(){//don't forget to delete the "//" !!!!!!!!!!!!!!freopen("duel.in","r",stdin);freopen("duel.out","w",stdout);cin>>n;live=n;for(int i=1;i<=n;i++){cin>>a[i];l[i]=1;f[i]=1;}sort(a+1,a+1+n,cmp);// for(int i=1;i<=n;i++){// cout<<a[i]<<endl;// }for(int i=1;i<=n;i++){if(a[i] > a[i-1]){cnt++;b[cnt]++;fb[cnt]++;}else if(a[i] == a[i-1]){b[cnt]++;fb[cnt]++;}}for(int i=1;i<=cnt;i++){//cout<<b[i]<<endl;}for(int i=1;i<=cnt;i++){for(int j=i+1;j<=cnt;j++){cut(j,i);}}cout<<live;return 0;//♿I want to play maimaiDX♿//♿♿♿♿♿♿♿♿♿♿♿♿♿}```### JX-S00439detect:**AFOer**。```cpp.../*AFO3 years for CSP1 year for NOIPThen ...... ?Maybe physicsMaybe collegeAnywayThanksOI*/```### JX-S00449duel:```cpp\...//cong qian you yi ge mu qin yao si le ,ta lin zhong qian gao su//ta de nv er men shei neng yong 1000 yuan mai dong xi tian man zheng ge//wu zi ,shei jiu neng ji cheng ta de yi chan.da nv er mai le yi dui mu chai//dan shi zhi tian man le ban ge wu zi.er nv er mai le yi bai gen la zhu,//mu qin shan le ta yi ba zhang : ni zhei ge zhi hui chao xi tong hua gu shi//de jia huo .san nv er mai le yi fu hmh&zyt de xing zhuan nv tong ben zi,//yu shi mu qin he nv er men bian yi qi chong man le zheng ge wu zi.```### JX-S00461color:```cpp.../*O(nlogn)?idk*/...```detect:```cpp.../*4e6 io,it's so evilI want to trust the speed,but i'm noti don't want to write fread*/...```duel:```cpp.../*meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~meow~*/...```### JX-S00490arena/detect/duel:```cpp.../*zenme kaikao 20min le haimei nadao juanzi?zheshi zai gansha?yaoshi kaoshi shijian buyanchangjinnian huojiang chengwei zui nitian de yinian*//*zuowei zuihou yici canjia csp-s,zheshi wode di 6 ci csp.buguan zenmeyang,neng fahui chu dangshi nage jiangxi duizhang yiban de fengcai jiu yijing henbucuo lezongzhi jinli jiuhaoheyiqian yiyang,woyehuizaizheli xiexia yixie xiangyao ganxiede ren de mingzi1. Jingyi Guo,wode zuihaode pengyou,zaiwo xinli zuikeai de nvhaizi,jiyule wo henduo henduo guli,fangzai ganxie de diyiwei2. Zihua Zeng,zuowei cengjing noi cu de xuezhang,yebangle wo feichangduo,yuanyi qinting wo henduohenduo de fannao bingqie hui guli wo ,suishuo youdeshihou youdianhaoxiao,danshi zhendeshi henhaode ren,paizai dierwei3. Runze Lai ,Zekai Liao ,zuowei dangqian ganzhou zuiqiangdade liangge gaoyi xuanshou ,meitian peiwo liaotian ye gielewo hendade bangzhu,tamen binglie paizai disanwei.4. Zhiyuan Lai,zuowei liangnianqian de noi ag,lao dadangle,buyong shuo nameduo5. minilong,fjy666,zxc deng guanger de haopengyou men ,suishuo women xiangchude shijian bingbushi henchang buguo ye you yiqixueguo deshijian.zuowei noi2024 de jiangxi shengdui duizhang zuihou que noi cu.xiwang zuihouyici ,zai shanyao yici ba .final csp contest ,by recollector.Yangfei Long.*/```color:```cpp.../*1h40min 300nitianchutiren*//*zenme kaikao 20min le haimei nadao juanzi?zheshi zai gansha?yaoshi kaoshi shijian buyanchangjinnian huojiang chengwei zui nitian de yinian*//*zuowei zuihou yici canjia csp-s,zheshi wode di 6 ci csp.buguan zenmeyang,neng fahui chu dangshi nage jiangxi duizhang yiban de fengcai jiu yijing henbucuo lezongzhi jinli jiuhaoheyiqian yiyang,woyehuizaizheli xiexia yixie xiangyao ganxiede ren de mingzi1. Jingyi Guo,wode zuihaode pengyou,zaiwo xinli zuikeai de nvhaizi,jiyule wo henduo henduo guli,fangzai ganxie de diyiwei2. Zihua Zeng,zuowei cengjing noi cu de xuezhang,yebangle wo feichangduo,yuanyi qinting wo henduohenduo de fannao bingqie hui guli wo ,suishuo youdeshihou youdianhaoxiao,danshi zhendeshi henhaode ren,paizai dierwei3. Runze Lai ,Zekai Liao ,zuowei dangqian ganzhou zuiqiangdade liangge gaoyi xuanshou ,meitian peiwo liaotian ye gielewo hendade bangzhu,tamen binglie paizai disanwei.4. Zhiyuan Lai,zuowei liangnianqian de noi ag,lao dadangle,buyong shuo nameduo5. minilong,fjy666,zxc deng guanger de haopengyou men ,suishuo women xiangchude shijian bingbushi henchang buguo ye you yiqixueguo deshijian.zuowei noi2024 de jiangxi shengdui duizhang zuihou que noi cu.xiwang zuihouyici ,zai shanyao yici ba .final csp contest ,by recollector.Yangfei Long.*/```### JX-S00496color/detect:```cpp/*Life is too long to end at a grave.*/#include<bits/stdc++.h>#define N 110#define M ?#define endl '\n'#define I_love_Furina return#define forever 0#define foreverr 1#define ull unsigned long long#define db double#define ldb long double#define PII pair<int,int>#define fi first#define se second#define mk make_pair#define int long long...```duel:```cpp/*Life is too long to end at a grave.*//*I'm ___Furina___, and this is my last chance to join CSP-S during my OI life.4.5 years went by. It's too long.I love Furina !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/...```