結果
問題 |
No.1945 Go Push!
|
ユーザー |
|
提出日時 | 2022-05-20 22:00:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 416 bytes |
コンパイル時間 | 1,882 ms |
コンパイル使用メモリ | 194,540 KB |
最終ジャッジ日時 | 2025-01-29 10:37:12 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long ll; using namespace std; int main() { cin.tie(0); ios_base::sync_with_stdio(false); int N; cin >> N; vector<int> A(N); rep(i, N) cin >> A[i]; int sum = 0; rep(i, N) sum ^= A[i]; if (sum == 0) cout << "Second"; else cout << "First"; cout << "\n"; return 0; }