QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#603381 | #8549. The Game | flyasdfvcxz | WA | 1ms | 3720kb | C++14 | 595b | 2024-10-01 16:16:40 | 2024-10-01 16:16:40 |
Judging History
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;
}
Details
Tip: Click on the bar to expand more detailed information
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'