結果
| 問題 | No.2044 Infinite Nim |
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2022-08-19 22:14:05 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 44 ms / 2,000 ms |
| + 803µs | |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 80,384 KB |
| 実行使用メモリ | 86,016 KB |
| 最終ジャッジ日時 | 2026-09-12 09:47:16 |
| 合計ジャッジ時間 | 3,141 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 34 |
ソースコード
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')
とりゐ