結果
| 問題 |
No.1852 Divide or Reduce
|
| コンテスト | |
| ユーザー |
🍮かんプリン
|
| 提出日時 | 2022-03-05 12:46:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 491 bytes |
| コンパイル時間 | 1,732 ms |
| コンパイル使用メモリ | 169,396 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-19 16:24:18 |
| 合計ジャッジ時間 | 10,712 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 WA * 17 |
ソースコード
/**
* @FileName a.cpp
* @Author kanpurin
* @Created 2022.03.05 12:46:41
**/
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
int main() {
int t;cin >> t;
for (int _ = 0; _ < t; _++) {
int n;cin >> n;
vector<int> a(n);
int sum = 0;
for (int i = 0; i < n; i++) {
cin >> a[i];
sum ^= a[i]%2==0?1:0;
}
if (sum == 1) puts("First");
else puts("Second");
}
return 0;
}
🍮かんプリン