提交记录 16799


用户 题目 状态 得分 用时 内存 语言 代码长度
tps 2001. 元旦激光炮·改 Compile Error 0 0 ns 0 KB C++ 457 B
提交时间 评测时间
2021-10-21 17:16:24 2021-10-21 17:16:26
int query_kth(const int *a, int n_a, const int *b, int n_b, const int *c, int n_c, int k)
{
	int nowa=0,nowb=0,nowc=0;
	while(--k){
		if(a[nowa]<=b[nowb]&&a[nowa]<=c[nowc])nowa++;else
		if(b[nowb]<=a[nowa]&&b[nowb]<=c[nowc])nowb++;else
		if(c[nowc]<=a[nowa]&&c[nowc]<=b[nowb])nowc++;
	}
	
	if(a[nowa]<=b[nowb]&&a[nowa]<=c[nowc])return a[nowa];
	if(b[nowb]<=a[nowa]&&b[nowb]<=c[nowc])return b[nowb];
	if(c[nowc]<=a[nowa]&&c[nowc]<=b[nowb])return c[nowc];
	
}

CompilationN/AN/ACompile ErrorScore: N/A


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