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