比赛 |
国庆欢乐赛2 |
评测结果 |
WAWWWAWWWWWWWWWWWWWW |
题目名称 |
毛一琛 |
最终得分 |
10 |
用户昵称 |
ZZ |
运行时间 |
0.056 s |
代码语言 |
C++ |
内存使用 |
3.69 MiB |
提交时间 |
2025-10-04 11:02:04 |
显示代码纯文本
#include<bits/stdc++.h>
using namespace std;
short n;
int ans;
struct str{
long long n;
int p;
};
str m[1050000];
bool cmp1(str a,str b){ return a.n<b.n; }
bool cmp2(str a,str b){
if(!b.n) return a.n>b.n;
else return a.n<b.n;
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);
freopen("subsets.in","r",stdin);
freopen("subsets.out","w",stdout);
cin>>n;
for(int i=0;i<n;i++){
cin>>m[i].n;
}
if(n==2){
if(m[0].n==m[1].n) cout<<1;
else cout<<0;
return 0;
}
else cout<<25535;////////////
sort(m,m+n,cmp1);
//开摆!!
return 0;
}