记录编号 |
415891 |
评测结果 |
AAAAAAAAAA |
题目名称 |
[UVa 11462] 年龄排序 |
最终得分 |
100 |
用户昵称 |
玉带林中挂 |
是否通过 |
通过 |
代码语言 |
C++ |
运行时间 |
2.563 s |
提交时间 |
2017-06-18 21:22:25 |
内存使用 |
0.31 MiB |
显示代码纯文本
#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cstdlib>
#include<string>
using namespace std;
int n,age[125];
int main()
{
freopen("AgeSort.in","r",stdin);freopen("AgeSort.out","w",stdout);
while(scanf("%d",&n)==1)
{
age[n]++;
}
for(int i=0;i<=120;i++)
for(int j=1;j<=age[i];j++)
cout<<i<<" ";
fclose(stdin);fclose(stdout);
return 0;
}