QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#667866 | #9481. Min Nim | huaxiamengjin | WA | 26ms | 3664kb | C++14 | 270b | 2024-10-23 09:05:12 | 2024-10-23 09:05:12 |
Judging History
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();
}
詳細信息
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'