結果
| 問題 | 
                            No.1852 Divide or Reduce
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ぷら
                         | 
                    
| 提出日時 | 2022-02-25 23:13:33 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 415 bytes | 
| コンパイル時間 | 3,054 ms | 
| コンパイル使用メモリ | 193,212 KB | 
| 最終ジャッジ日時 | 2025-01-28 02:33:27 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 3 WA * 17 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
    int t;
    cin >> t;
    while (t--) {
        int n;
        cin >> n;
        vector<int>a(n);
        int f = 0;
        for(int i = 0; i < n; i++) {
            cin >> a[i];
            f ^= (a[i]-1)%2;
        }
        if(f) {
            cout << "First" << endl;
        }
        else {
            cout << "Second" << endl;
        }
    }
}
            
            
            
        
            
ぷら