QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#391755#8549. The GamexunxxxxWA 0ms3856kbC++20353b2024-04-16 19:07:152024-04-16 19:07:16

Judging History

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

  • [2024-04-16 19:07:16]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3856kb
  • [2024-04-16 19:07:15]
  • 提交

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();
}

详细

Test #1:

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

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'