| 记录编号 | 224077 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 1406.[UVa 11462] 年龄排序 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 2.418 s | ||
| 提交时间 | 2016-02-15 14:06:33 | 内存使用 | 0.31 MiB | ||
#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
unsigned a[130]={0};
int main(){
	freopen("AgeSort.in","r",stdin);
	freopen("AgeSort.out","w",stdout);
	int n;
	while(scanf("%d",&n)==1)a[n]++;
	for(int i=0;i<130;i++)while(a[i])printf("%d ",i),a[i]--;
	fclose(stdin);fclose(stdout);
	return 0;
}