QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#603392 | #8549. The Game | flyasdfvcxz | WA | 2ms | 11572kb | C++14 | 612b | 2024-10-01 16:21:23 | 2024-10-01 16:21:24 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
const int N = 2e6 + 10;
int a[N] = {};
void solve()
{
int n, x, ans = 0;
cin >> n;
scanf("%d", &n);
memset(a, 0, sizeof(a));
for (int i = 1; i <= n * 2; i++)
{
scanf("%d", &x);
a[x]++;
}
for (int i = 1; i <= 2 * n; i++)
{
ans += a[i] > 0;
if (ans > n)
{
printf("Kevin\n");
return;
}
}
printf("Qingyu\n");
}
signed main()
{
int T;
scanf("%d", &T);
while (T--)
{
solve();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 2ms
memory: 11572kb
input:
3 3 1 1 4 5 1 4 2 1 2 3 4 4 1 2 2 3 2 1 1 4
output:
Qingyu Qingyu Kevin
result:
wrong answer 2nd words differ - expected: 'Kevin', found: 'Qingyu'