QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#392997 | #8549. The Game | ucup-team2894 | WA | 0ms | 3556kb | C++20 | 348b | 2024-04-18 02:28:22 | 2024-04-18 02:28:23 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
void solve() {
int n;
cin >> n;
map<int,int> nums;
for(int i=0;i<2*n;i++){
int x;
cin >> x;
nums[x]++;
}
int tot = 0;
for(auto [a,b] : nums) {
tot += b-1;
}
if(tot<=n-1)cout << "Kevin\n";
else cout << "Qingqu\n";
}
int main () {
ios::sync_with_stdio(0);
cin.tie(0);
solve();
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3556kb
input:
3 3 1 1 4 5 1 4 2 1 2 3 4 4 1 2 2 3 2 1 1 4
output:
Kevin
result:
wrong answer 1st words differ - expected: 'Qingyu', found: 'Kevin'