提交记录 31347


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_260814 ch7344. 鸭子排队 Judge Failed 0 0 ns 0 KB C 407 B
提交时间 评测时间
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;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #10 ns0 KBJudge FailedScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-09-12 09:07:28 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠