提交记录 49275
| 提交时间 |
评测时间 |
| 2026-09-19 15:51:13 |
2026-09-19 15:53: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;
}
| 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-23 13:22:41 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠