結果
| 問題 | 
                            No.2282 Boxed Nim
                             | 
                    
| コンテスト | |
| ユーザー | 
                             iomir
                         | 
                    
| 提出日時 | 2023-04-29 13:45:17 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 42 ms / 2,000 ms | 
| コード長 | 417 bytes | 
| コンパイル時間 | 1,578 ms | 
| コンパイル使用メモリ | 165,408 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-18 10:33:20 | 
| 合計ジャッジ時間 | 2,439 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 17 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define all(v) v.begin(),v.end()
using ll = long long;
using ull = unsigned long long;
using vll=vector<ll>;
using vvll = vector<vector<ll>>;
const ll INF=1ll<<60;
int main(){
    ll N;
    cin>>N;
    ll a=0;
    for(int i=0;i<N;i++){
        ll b;
        cin>>b;
        if(b==0)a^=1;
    }
    if(a) cout << "First" << endl;
    else cout << "Second" << endl;
    
}
            
            
            
        
            
iomir