QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#391756#8549. The GamexunxxxxWA 0ms3776kbC++20353b2024-04-16 19:08:032024-04-16 19:08:04

Judging History

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

  • [2024-04-16 19:08:04]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3776kb
  • [2024-04-16 19:08:03]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
int n,t1;
void solve()
{
	cin>>n;
	set<int>st;
	for(int i=1;i<=2*n;i++)
	{
		scanf("%d",&t1);
		st.insert(t1);
	}
	if(st.size()>n) printf("Kevin\n");
	else printf("Qingyu\n");
}
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);cout.tie(0);
	int t;
	cin>>t;
	while(t--) solve();
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3776kb

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'