Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
77067 何思佳 19从小到大进行排序 C++ Accepted 1 MS 664 KB 278 2024-06-08 11:09:37

Tests(10/10):


Code:

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