0
已采纳
吕梓瑜
初级天翼
初级天翼
int a[18005];
bool cmp(int a,int b){
return a>b;
}
int main()
{
//freopen(".in","r",stdin);
//freopen(".out","w",stdout);
int s,n,m;
cin>>s;
cin>>m>>n;
for(int i=1;i<=s;i++){
cin>>a[i];
}
sort(a+1,a+1+s,cmp);
for(int i=m;i<=n;i++){
cout<<a[i]<<" ";
}
//fclose(stdin);
//fclose(stdout);
return 0;
}
0
0