提交记录 10938
| 提交时间 |
评测时间 |
| 2019-10-11 16:06:06 |
2020-08-01 02:36:01 |
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<ctime>
#include<cstdlib>
#include<set>
#include<queue>
#include<vector>
#include<string>
#pragma GCC optimaze(2)
#pragma GCC optimaze(3)
using namespace std;
#define P system("pause");
#define B printf("Break\n");
#define A(x) cout << #x << " " << (x) << endl;
#define AA(x,y) cout << #x << " " << (x) << " " << #y << " " << (y) << endl;
#define ll long long
#define inf 1000000000
#define linf 10000000000000000
int read()
{
int x = 0,f = 1;
char c = getchar();
while(c < '0' || c > '9')
{
if(c == '-') f = -1;
c = getchar();
}
while(c >= '0' && c <= '9')
{
x = (x << 3) + (x << 1) + c - '0';
c = getchar();
}
return f * x;
}
#define N 1000100
int a[N];
bool cmp(qwq a,qwq b)
{
return a.x < b.x;
}
int main()
{
int n = read();
for(int i = 1;i <= n;i++) a[i] = read();
sort(a + 1,a + 1 + n,cmp);
for(int i = 1;i <= n;i++) printf("%d ",a[i]);
}
| Compilation | N/A | N/A | Compile Error | Score: N/A | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-03-28 16:42:15 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠