結果
問題 |
No.2282 Boxed Nim
|
ユーザー |
|
提出日時 | 2023-07-05 12:21:49 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 245 bytes |
コンパイル時間 | 341 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 83,328 KB |
最終ジャッジ日時 | 2024-07-19 06:35:42 |
合計ジャッジ時間 | 3,284 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 11 |
ソースコード
N = int(input()) A = list(map(int, input().split())) xor = 0 notzero = 0 for a in A: xor ^= a if a != 0: notzero += 1 if xor > 0: print('First') elif xor == 0 and notzero % 2 == 0: print('Second') else: print('First')