QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#658892 | #9481. Min Nim | ucup-team3659# | WA | 0ms | 3604kb | C++20 | 746b | 2024-10-19 17:51:24 | 2024-10-19 17:51:26 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
void test()
{
int n;
map<int,int> mp;
cin>>n;
for(int i=1;i<=n;i++)
{
int x;
cin>>x;
mp[x]++;
}
if(n&1)
{
cout<<"First\n";
return;
}
int cnt=0;
// mp[1000000007]++;
for(pair<int,int> p:mp)
{
if(p.second&1)
{
if(cnt&1)
cout<<"Second\n";
else
cout<<"First\n";
break;
}
else
cnt++;
}
cout<<"Second\n";
}
signed main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t;
cin>>t;
for(int i=1;i<=t;i++)
test();
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3604kb
input:
2 3 3 1 4 8 3 1 4 1 5 9 2 6
output:
First Second Second
result:
wrong answer Participant output contains extra tokens