提交记录 4126


用户 题目 状态 得分 用时 内存 语言 代码长度
Alen 2001. 元旦激光炮·改 Compile Error 0 0 ns 0 KB C++ 454 B
提交时间 评测时间
2018-07-18 21:06:23 2020-07-31 22:27:44
#include<cmath>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
int query_kth(const int *A,int na,const int *B,int nb,const int *C,int nc,int k){
	int a=0,b=0,c=0;
	int mn,t;
	for (;k;k-=t+1){
		t=(k-2)/3;
		int s1=(a+t>na?1<<30:A[a+t]);
		int s2=(b+t>nb?1<<30:B[b+t]);
		int s3=(c+t>nc?1<<30:C[c+t]);
		mn=min(s1,min(s2,s3));
		if (s1==mn) a+=t+1;
		else if (s2==mn) b+=t+1;
		else c+=t+1;
	}
	return mn;
} 

CompilationN/AN/ACompile ErrorScore: N/A


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