QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#603392#8549. The GameflyasdfvcxzWA 2ms11572kbC++14612b2024-10-01 16:21:232024-10-01 16:21:24

Judging History

你现在查看的是最新测评结果

  • [2024-10-01 16:21:24]
  • 评测
  • 测评结果:WA
  • 用时:2ms
  • 内存:11572kb
  • [2024-10-01 16:21:23]
  • 提交

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'