QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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();
}
Details
Tip: Click on the bar to expand more detailed information
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'