結果
| 問題 |
No.2282 Boxed Nim
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-30 16:05:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 245 bytes |
| コンパイル時間 | 462 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 83,456 KB |
| 最終ジャッジ日時 | 2024-07-07 03:52:25 |
| 合計ジャッジ時間 | 2,789 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 11 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
xor = 0
notzero = 0
for a in A:
xor ^= a
if a != 0:
notzero += 1
if xor > 0:
print('First')
elif xor == 0 and notzero % 2 == 0:
print('Second')
else:
print('First')