QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#398813 | #8549. The Game | ucup-team1196# | WA | 0ms | 3768kb | C++20 | 591b | 2024-04-25 18:30:55 | 2024-04-25 18:30:56 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define int long long
void solve() {
int n;
std::cin >> n;
std::vector<int> a(2 * n + 1);
for (int i = 1; i <= 2 * n; i++) {
int x;
std::cin >> x;
a[x]++;
}
int ans = 0;
for (int i = 1; i <= 2 * n; i++) {
ans += std::max(0ll, a[i] - 1);
}
if(ans >= n) {
std::cout << "Qingyu\n";
} else {
std::cout << "Kelin\n";
}
}
signed main() {
ios::sync_with_stdio(0);
cin.tie(0);
int t = 1;
cin >> t;
while(t--) {
solve();
}
}
详细
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3768kb
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 Kelin Qingyu
result:
wrong answer 2nd words differ - expected: 'Kevin', found: 'Kelin'