結果
| 問題 | No.2619 Sorted Nim |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-05-24 05:23:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 77 ms / 2,000 ms |
| コード長 | 215 bytes |
| 記録 | |
| コンパイル時間 | 1,810 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 124,656 KB |
| 最終ジャッジ日時 | 2026-05-24 05:23:27 |
| 合計ジャッジ時間 | 10,689 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
| 純コード判定待ち |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 62 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
B = [A[0]]
for i in range(N-1):
B.append(A[i+1]-A[i])
B = B[::-1]
xor = 0
for i in range(0, N, 2):
xor ^= B[i]
print("First" if xor != 0 else "Second")
detteiuu