結果
問題 | No.2619 Sorted Nim |
ユーザー |
👑 ![]() |
提出日時 | 2022-02-07 11:57:35 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 103 ms / 2,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 232 ms |
コンパイル使用メモリ | 82,092 KB |
実行使用メモリ | 108,952 KB |
最終ジャッジ日時 | 2024-06-28 22:28:49 |
合計ジャッジ時間 | 7,884 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 62 |
ソースコード
def xor(X):y=0for x in X:y^=xreturn yN=int(input())A=list(map(int,input().split()))if N%2==1:A=[0]+AB=[A[2*i+1]-A[2*i] for i in range(len(A)//2)]print("First" if xor(B) else "Second")