結果
問題 |
No.2044 Infinite Nim
|
ユーザー |
![]() |
提出日時 | 2022-08-21 18:10:23 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 62 ms / 2,000 ms |
コード長 | 204 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 82,476 KB |
実行使用メモリ | 84,668 KB |
最終ジャッジ日時 | 2024-10-10 06:18:55 |
合計ジャッジ時間 | 3,729 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 |
ソースコード
N = int(input()) A = list(map(int, input().split())) inf = 1; x = 0 for a in A: if a == -1: inf += 1 else: x ^= a ans = 'First' if inf & 1 and x == 0: ans = 'Second' print(ans)