提交记录 5574
| 提交时间 |
评测时间 |
| 2018-08-30 01:39:38 |
2020-08-01 00:19:30 |
#include <algorithm>
#include <cstring>
using namespace std;
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, INF = 1 << 30;
static int i, j, m[N], s[N], x, y;
for (memset(m, x = 0, sizeof(m)); k -= x; m[j] += x)
{
x = (k - N + 1) / N;
for (i = j = 0; i < 3; ++i)
{
if ((y = m[i] + x) < n[i])
s[i] = num[i][y];
else
s[i] = INF;
if (s[j] > s[i])
j = i;
}
++x;
}
return s[j];
}
| Compilation | N/A | N/A | Compile Error | Score: N/A | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-11 16:40:55 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠