QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#667866#9481. Min NimhuaxiamengjinWA 26ms3664kbC++14270b2024-10-23 09:05:122024-10-23 09:05:12

Judging History

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

  • [2024-10-23 09:05:12]
  • 评测
  • 测评结果:WA
  • 用时:26ms
  • 内存:3664kb
  • [2024-10-23 09:05:12]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
void solve(){
    int n,ct;
    cin>>n;ct=n;
    for (int i=1,x;i<=n;i++)
    cin>>x,ct+=(x!=1);
    if(ct%2==0)cout<<"Second\n";
    else cout<<"First\n";
}
int main(){
    int T;cin>>T;
    while(T--)solve();
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3600kb

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: 0
Accepted
time: 26ms
memory: 3664kb

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:

Second

result:

ok "Second"

Test #3:

score: -100
Wrong Answer
time: 23ms
memory: 3604kb

input:

1
99999
80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 80011714 8001...

output:

Second

result:

wrong answer 1st words differ - expected: 'First', found: 'Second'