提交记录 5579


用户 题目 状态 得分 用时 内存 语言 代码长度
webmaster 2001. 元旦激光炮·改 Compile Error 0 0 ns 0 KB C++11 469 B
提交时间 评测时间
2018-08-30 01:48:46 2020-08-01 00:19:34
#include <cstring>

int query_kth(const int *a, int n_a, const int *b, int n_b, const int *c, int n_c, int k)
{
    static const int *num[] = {a, b, c}, n[] = {n_a, n_b, n_c}, N = 3;
    static int i, j, m[N], s[N], x, y;
    for (memset(m, x = 0, sizeof(m)); k -= x; m[j] += ++x)
        for (i = j = 0, x = (k - N + 1) / N; i < 3; ++i)
            if ((y = m[i] + x) < n[i])
                if ((s[i] = num[i][y]) < s[j])
                    j = i;
    return s[j];
}

CompilationN/AN/ACompile ErrorScore: N/A


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