You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
304 B

#include <bits/stdc++.h>
using namespace std;
const int N = 110;
int a[N];
int n = 5;
int main() {
for (int i = 0; i < n; i++)
cin >> a[i];
//排序
sort(a, a + n);
for (int i = 0; i < n; i++) {
printf("%d", a[i]);
if (i < n)
printf(",");
}
return 0;
}