提交记录 5510


用户 题目 状态 得分 用时 内存 语言 代码长度
orbitingfIea ch7344. 鸭子排队 Compile Error 0 0 ns 0 KB C++ 280 B
提交时间 评测时间
2018-08-28 16:59:48 2020-08-01 00:18:18
#include <stdio.h>
#include <algorithm>
#define MAXN 100001

unsigned a[MAXN];

int main() {
	fread(a, 1, MAXN * 4, stdin);
	int n = a[0];
	
	// Rearrange the ducks a[1] .. a[n] here
std::make_heap(a+1,a+n+1,greater<unsigned>() );	

	fwrite(a + 1, 1, n * 4, stdout);
	return 0;
}

CompilationN/AN/ACompile ErrorScore: N/A


Judge Duck Online | 评测鸭在线
Server Time: 2026-04-13 18:03:23 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠