0
已解决
张云瀚
初级天翼
初级天翼
题目链接: 酷町堂:7396
#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
int n,a[15],b[15];
int main(){
cin>>n;
for(int i=1;i<=n;i++){
cin>>a[i];
b[i]=a[i]%100;
a[i]=a[i]%10;
}
sort(a+1,a+n+1);
sort(b+1,b+n+1);
for(int i=1;i<=n;i++){
cout<<b[i]<<a[i]<<" ";
}
return 0;
}