結果
問題 | No.2619 Sorted Nim |
ユーザー |
|
提出日時 | 2024-01-26 22:52:45 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 106 ms / 2,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 300 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 109,184 KB |
最終ジャッジ日時 | 2024-09-28 08:44:10 |
合計ジャッジ時間 | 7,775 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 62 |
ソースコード
N = int(input())A = list(map(int,input().split()))if N%2==1:n = [A[0]]for i in range(N//2):n.append(A[2*i+2] - A[2*i+1])else:n = []for i in range(N//2):n.append(A[2*i+1] - A[2*i])x = 0for nn in n:x^=nnif x==0:print("Second")else:print("First")