結果
| 問題 | No.3586 Divide and Be Conquered |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-29 18:57:15 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 498 bytes |
| 記録 | |
| コンパイル時間 | 1,075 ms |
| コンパイル使用メモリ | 208,996 KB |
| 実行使用メモリ | 9,400 KB |
| 最終ジャッジ日時 | 2026-07-10 20:56:21 |
| 合計ジャッジ時間 | 2,386 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 WA * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int value(long long x) {
long long r = x % 5;
if (r == 2 || r == 3) return 1;
return 0;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int T;
cin >> T;
while (T--) {
int N;
cin >> N;
int xr = 0;
for (int i = 0; i < N; i++) {
long long A;
cin >> A;
xr ^= value(A);
}
cout << (xr ? "First" : "Second") << '\n';
}
}