QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#392998#8549. The Gameucup-team2894WA 1ms3848kbC++20382b2024-04-18 02:30:122024-04-18 02:30:13

Judging History

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

  • [2024-04-18 02:30:13]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3848kb
  • [2024-04-18 02:30:12]
  • 提交

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);
int tc;
cin >> tc;
while(tc--)
solve();
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
3
1 1 4 5 1 4
2
1 2 3 4
4
1 2 2 3 2 1 1 4

output:

Qingqu
Kevin
Qingqu

result:

wrong answer 1st words differ - expected: 'Qingyu', found: 'Qingqu'