結果
問題 | No.2044 Infinite Nim |
ユーザー |
![]() |
提出日時 | 2022-08-19 21:51:10 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 66 ms / 2,000 ms |
コード長 | 370 bytes |
コンパイル時間 | 316 ms |
コンパイル使用メモリ | 82,468 KB |
実行使用メモリ | 83,980 KB |
最終ジャッジ日時 | 2024-10-09 06:04:59 |
合計ジャッジ時間 | 3,229 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 |
ソースコード
n=int(input()) a=list(map(int,input().split())) if min(a)==-1: if a.count(-1)%2==1: print("First") else: s=0 for x in a: if x>=0:s^=x if s > 0: print("First") else: print("Second") else: s=0 for x in a:s^=x if s>0: print("First") else: print("Second")