提交记录 49312


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 ch7344. 鸭子排队 Judge Failed 0 0 ns 0 KB C++17 388 B
提交时间 评测时间
2026-09-19 15:52:56 2026-09-19 15:54:14
// 鸭子排队: build a min-heap-ordered arrangement of the given numbers.
// Any arrangement with a[i/2] <= a[i] (1-indexed) is legal; sorting ascending works.
#include <stdio.h>
#include <algorithm>
static unsigned a[100005];
int main() {
    size_t n = fread(a, 4, 100005, stdin);
    unsigned cnt = a[0];
    std::sort(a + 1, a + 1 + cnt);
    fwrite(a + 1, 4, cnt, stdout);
    return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #10 ns0 KBJudge FailedScore: 0


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