Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81130 石晋骁 19从小到大进行排序 C++ Accepted 2 MS 660 KB 264 2024-07-12 10:28:07

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int a[100001]; int main(){ int n,k; cin >> n; for(int i =1;i <=n;i++){ cin >> k; a[k]++; } for(int j = 0;j <= 100000;j++){ while(a[j]>0){ cout << j << " "; a[j]--; } } return 0; }