QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#658752 | #9481. Min Nim | ucup-team3659# | WA | 6ms | 3740kb | C++20 | 649b | 2024-10-19 17:32:29 | 2024-10-19 17:32:30 |
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]++;
}
int cnt=0;
mp[100000007]++;
for(pair<int,int> p:mp)
{
if(p.second&1)
{
if(cnt&1)
cout<<"Second\n";
else
cout<<"First\n";
break;
}
else
cnt++;
}
}
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: 100
Accepted
time: 0ms
memory: 3740kb
input:
2 3 3 1 4 8 3 1 4 1 5 9 2 6
output:
First Second
result:
ok 2 tokens
Test #2:
score: -100
Wrong Answer
time: 6ms
memory: 3532kb
input:
1 100000 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 825605713 8...
output:
First
result:
wrong answer 1st words differ - expected: 'Second', found: 'First'