0
已采纳
for(int i=1;i<=n-1;i++){
for(int j=i+1;j<=n;j++){
if(a[i]>a[j]){//
swap(a[i],a[j]);
}
}
}
核心,会了吗
0
0
0
0
0