結果
| 問題 | No.3586 Divide and Be Conquered |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-29 18:56:45 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 539 bytes |
| 記録 | |
| コンパイル時間 | 1,054 ms |
| コンパイル使用メモリ | 209,476 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-10 20:56:20 |
| 合計ジャッジ時間 | 2,401 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 WA * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int value(long long x) {
if (x == 3) return 1; // 本当は 2
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';
}
}