QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#603381#8549. The GameflyasdfvcxzWA 1ms3720kbC++14595b2024-10-01 16:16:402024-10-01 16:16:40

Judging History

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

  • [2024-10-01 16:16:40]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3720kb
  • [2024-10-01 16:16:40]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
const int N = 2e6 + 10;
void solve()
{
    int n, ans = 0;
    cin >> n;
    int a[2 * n + 1];
    for (int i = 1; i <= n * 2; i++)
    {
        int x;
        cin >> x;
        if (++a[x] == 1)
        {
            ans++;
        }
    }
    if (ans > n)
    {
        cout << "Kevin\n";
    }
    else
    {
        cout << "Qingyu\n";
    }
}
signed main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int T;
    cin >> T;
    while (T--)
    {
        solve();
    }
    return 0;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3720kb

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
Qingyu

result:

wrong answer 2nd words differ - expected: 'Kevin', found: 'Qingyu'