| 比赛 | noip2016普及练习2 | 评测结果 | AAAAAATTAT |
|---|---|---|---|
| 题目名称 | 排序测试 | 最终得分 | 70 |
| 用户昵称 | Я люблю тебя | 运行时间 | 9.859 s |
| 代码语言 | C++ | 内存使用 | 7.15 MiB |
| 提交时间 | 2016-11-07 19:07:45 | ||
#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
const int maxn=2000000;
int n,a[maxn];
int main()
{
freopen("sorttest.in","r",stdin);
freopen("sorttest.out","w",stdout);
scanf("%d",&n);
for (int i=0; i<n; i++)
scanf("%d",&a[i]);
sort(a,a+n);
for (int i=0; i<n-1; i++)
printf("%d ",a[i]);
printf("%d\n",a[n-1]);
return 0;
}