結果
| 問題 | No.2044 Infinite Nim |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-26 20:29:23 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 2,000 ms |
| コード長 | 188 bytes |
| 記録 | |
| コンパイル時間 | 322 ms |
| コンパイル使用メモリ | 85,468 KB |
| 実行使用メモリ | 83,328 KB |
| 最終ジャッジ日時 | 2026-05-26 20:29:29 |
| 合計ジャッジ時間 | 3,876 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
| 純コード判定待ち |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 34 |
ソースコード
n=int(input())
a=list(map(int,input().split()))
c=0;d=0
for i in a:
if i==-1:
d+=1
else:
c^=i
if d&1:
print("First")
else:
print("First" if c else "Second")