結果
問題 | No.2044 Infinite Nim |
ユーザー |
|
提出日時 | 2022-08-19 21:35:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 195 bytes |
コンパイル時間 | 571 ms |
コンパイル使用メモリ | 64,656 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-08 07:47:17 |
合計ジャッジ時間 | 2,623 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 WA * 6 |
ソースコード
#include<iostream> using namespace std; int N,X,c; int main() { cin>>N; for(int i=0;i<N;i++) { int A;cin>>A; if(A==-1)c+=1; else X^=A; } cout<<((c==0?X:c%2)?"First":"Second")<<endl; }