結果
問題 | No.2619 Sorted Nim |
ユーザー |
![]() |
提出日時 | 2024-01-27 00:37:30 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 203 bytes |
コンパイル時間 | 184 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 112,164 KB |
最終ジャッジ日時 | 2024-09-28 09:19:51 |
合計ジャッジ時間 | 7,389 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 48 WA * 14 |
ソースコード
N=int(input())A=list(map(int,input().split()))lis=[A[0]]+[A[i+1]-A[i] for i in range(N-1)]lis[::-1]nim=0for i in range(0,N,2):nim^=lis[i]if nim==0:print('Second')else:print('First')