QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#391752#8549. The GamexunxxxxWA 0ms3532kbC++20344b2024-04-16 19:03:462024-04-16 19:03:47

Judging History

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

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

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++)
	{
		cin>>t1;
		st.insert(t1);

	}
	if(st.size()>=n) cout<<"Kevin\n";
	else cout<<"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: 3532kb

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
Kevin
Kevin

result:

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