結果

問題 No.2044 Infinite Nim
ユーザー とりゐ
提出日時 2022-08-19 22:14:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 613 ms
コンパイル使用メモリ 82,028 KB
実行使用メモリ 83,328 KB
最終ジャッジ日時 2024-10-09 06:07:06
合計ジャッジ時間 3,521 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
g=0
cnt=0
for i in a:
  if i==-1:
    cnt+=1
  else:
    g^=i

if cnt%2==1 or g!=0:
  print('First')
else:
  print('Second')
0