結果
| 問題 | No.1852 Divide or Reduce |
| コンテスト | |
| ユーザー |
t_mk
|
| 提出日時 | 2022-03-16 09:57:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 393 bytes |
| コンパイル時間 | 1,818 ms |
| コンパイル使用メモリ | 170,980 KB |
| 実行使用メモリ | 13,236 KB |
| 最終ジャッジ日時 | 2024-09-23 06:51:25 |
| 合計ジャッジ時間 | 10,810 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 WA * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0;i < (n);i++)
int main(){
int t;
cin >> t;
vector<string> ans;
rep(i,t){
int n;
cin >> n;
int cnt = 0;
rep(j,n){
int a;
cin >> a;
if(a % 2 == 0)cnt++;
}
if(cnt % 2 == 0)ans.push_back("Second");
else ans.push_back("First");
}
rep(i,t)cout << ans[i] << endl;
}
t_mk