Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
108001 | 殷佳雨萱 | 19从小到大进行排序 | C++ | Accepted | 1 MS | 664 KB | 264 | 2025-01-19 11:00:52 |
#include<iostream> using namespace std; int a[100010]; int main(){ int n,b; cin>>n; for(int i=1;i<=n;i++){ cin>>b; a[b]++; } for(int j=1;j<=100000;j++){ while(a[j]>0){ //j的次数不为0 cout<<j<<" "; a[j]--; } } return 0; }