結果
問題 | No.1852 Divide or Reduce |
ユーザー | 🍮かんプリン |
提出日時 | 2022-03-05 12:46:46 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 491 bytes |
コンパイル時間 | 1,702 ms |
コンパイル使用メモリ | 165,960 KB |
実行使用メモリ | 4,400 KB |
最終ジャッジ日時 | 2023-09-26 22:38:49 |
合計ジャッジ時間 | 11,875 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,384 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 182 ms
4,380 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 170 ms
4,384 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 322 ms
4,380 KB |
testcase_20 | WA | - |
ソースコード
/** * @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; }