提交记录 31347
| 提交时间 |
评测时间 |
| 2026-08-14 01:41:01 |
2026-08-14 01:41:03 |
#include <stdio.h>
#define MAXN 100001
static unsigned a[MAXN];
static int cmp(const void *x, const void *y) {
unsigned ux = *(const unsigned*)x, uy = *(const unsigned*)y;
return (ux > uy) - (ux < uy);
}
int main() {
unsigned n;
if (fread(&n, 1, 4, stdin) != 4) return 0;
if (fread(a, 4, n, stdin) != n) return 0;
qsort(a, n, 4, cmp);
fwrite(a, 4, n, stdout);
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 0 ns | 0 KB | Judge Failed | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-12 09:07:28 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠