答案
2023-10-14 12:14:17
发布于:上海
6阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
int a[10010];
int list[10010] = {};
for (int i = 0;i < n;i++){
cin >> a[i];
}
int c = 0;
for (int i = 0;i < n;i++){
if (c < a[i]){
c = a[i];
}
}
for (int i = 0;i < n;i++){
list[a[i]]; // ????????????????????????????
}
for (int i = 0;i <= c;i){
cout << list[i] << endl;
}
return 0;
}
这里空空如也
有帮助,赞一个