| 记录编号 | 553088 | 评测结果 | MMMMMMMMMM | ||
|---|---|---|---|---|---|
| 题目名称 | 1406.[UVa 11462] 年龄排序 | 最终得分 | 0 | ||
| 用户昵称 | 是否通过 | 未通过 | |||
| 代码语言 | C++ | 运行时间 | 0.000 s | ||
| 提交时间 | 2020-08-11 23:31:01 | 内存使用 | 2.00 MiB | ||
#include <cstdio>
using namespace std;
int c[121] = {0};
int main () {
freopen("AgeSort.in","r",stdin);
freopen("AgeSort.out","w",stdout);
int n;
while (scanf("%d",&n) == 1) {
c[n] ++;
}
for (int q = 0;q <= 120;++ q) {
for (int w = 0;w < c[q];++ w) {
printf ("%d ",q);
}
}
return 0;
}