Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
124601 王金檐 19从小到大进行排序 C++ Output Limit Exceeded 0 MS 272 KB 245 2025-07-12 09:34:04

Tests(0/10):


Code:

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