27
29
1万
论坛元老
#include<bits/stdc++.h> using namespace std; int t[10]; int main() { int x; for(int i=1;i<=10;i++) { cin>>x; t[x]++; } for(int i=0;i<=9;i++) { for(int j=1;j<=t[i];j++) { cout<<i<<" "; } } return 0; }
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|DiscuzX
GMT+8, 2025-2-13 04:56 , Processed in 0.050492 second(s), 27 queries .
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.. 技术支持 by 巅峰设计