Files
python/TangDou/XiTi/1116.cpp

21 lines
371 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
int main() {
//桶要够大
int a[100] = {0}, c;
//输入值
for (int i = 0; i < 10; i++) {
cin >> c;
a[c]++;
}
//输出值
for (int i = 99; i >= 0; i--) {
for (int j = 0; j < a[i]; ++j) {
cout << i << " ";
}
}
return 0;
}