結果
問題 | No.2619 Sorted Nim |
ユーザー |
![]() |
提出日時 | 2024-01-27 15:07:36 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 103 ms / 2,000 ms |
コード長 | 193 bytes |
コンパイル時間 | 291 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 109,184 KB |
最終ジャッジ日時 | 2024-09-28 09:39:40 |
合計ジャッジ時間 | 7,574 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 62 |
ソースコード
N = int(input()) A = list(map(int, input().split())) S = 0 if N % 2: A = [0] + A for i in range(N + 1): if i % 2: S ^= (A[i] - A[i - 1]) print("First") if S else print("Second")