結果
| 問題 |
No.2044 Infinite Nim
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2022-08-24 22:46:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 2,000 ms |
| コード長 | 250 bytes |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 82,092 KB |
| 実行使用メモリ | 85,568 KB |
| 最終ジャッジ日時 | 2024-10-12 06:47:31 |
| 合計ジャッジ時間 | 4,141 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 34 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
tmp = 0
cnt = 0
for a in A:
if a > 0:
tmp ^= a
else:
cnt += 1
if cnt & 1:
print("First")
else:
if tmp == 0:
print("Second")
else:
print("First")
ntuda