QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#658752#9481. Min Nimucup-team3659#WA 6ms3740kbC++20649b2024-10-19 17:32:292024-10-19 17:32:30

Judging History

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

  • [2024-10-19 17:32:30]
  • 评测
  • 测评结果:WA
  • 用时:6ms
  • 内存:3740kb
  • [2024-10-19 17:32:29]
  • 提交

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'