Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115128 李昊宇 19从小到大进行排序 C++ Accepted 1 MS 660 KB 290 2025-03-29 14:40:20

Tests(10/10):


Code:

#include<iostream> using namespace std; int a[100000]; int main(){ int n,t; cin>>n; for(int i=1;i<=n;i++){ cin>>t; a[t]++; } for(int j=0;j<100000;j++){ while(a[j]>0){ cout<<j<<" "; a[j]--; } } }