别学坏了,自己写选择排序!

yourongyue 2023-07-31 15:53:48 12 返回题目

#include<bits/stdc++.h>

using namespace std;

int n,k[1010000];

int main(){ cin>>n; for(int i=1;i<=n;i++) cin>>k[i];

sort(k+1,k+n+1);

for(int i=1;i<=n;i++) cout<<k[i]<<' ';

return 0;

}

{{ vote && vote.total.up }}