結果

問題 No.2619 Sorted Nim
ユーザー 👑 KazunKazun
提出日時 2022-02-07 11:57:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 1,426 ms
コンパイル使用メモリ 86,976 KB
実行使用メモリ 111,032 KB
最終ジャッジ日時 2023-09-11 07:57:52
合計ジャッジ時間 10,250 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,136 KB
testcase_01 AC 70 ms
71,072 KB
testcase_02 AC 108 ms
102,896 KB
testcase_03 AC 118 ms
100,008 KB
testcase_04 AC 108 ms
103,000 KB
testcase_05 AC 108 ms
102,864 KB
testcase_06 AC 123 ms
102,068 KB
testcase_07 AC 106 ms
101,652 KB
testcase_08 AC 122 ms
101,600 KB
testcase_09 AC 72 ms
71,208 KB
testcase_10 AC 116 ms
100,156 KB
testcase_11 AC 112 ms
104,356 KB
testcase_12 AC 114 ms
99,520 KB
testcase_13 AC 69 ms
71,212 KB
testcase_14 AC 117 ms
99,876 KB
testcase_15 AC 112 ms
104,320 KB
testcase_16 AC 121 ms
101,704 KB
testcase_17 AC 121 ms
100,300 KB
testcase_18 AC 119 ms
100,040 KB
testcase_19 AC 107 ms
101,684 KB
testcase_20 AC 106 ms
102,968 KB
testcase_21 AC 126 ms
101,920 KB
testcase_22 AC 109 ms
103,512 KB
testcase_23 AC 117 ms
99,644 KB
testcase_24 AC 120 ms
101,488 KB
testcase_25 AC 119 ms
101,820 KB
testcase_26 AC 112 ms
105,688 KB
testcase_27 AC 105 ms
102,932 KB
testcase_28 AC 122 ms
100,364 KB
testcase_29 AC 124 ms
101,808 KB
testcase_30 AC 118 ms
111,032 KB
testcase_31 AC 71 ms
71,244 KB
testcase_32 AC 106 ms
101,924 KB
testcase_33 AC 111 ms
104,584 KB
testcase_34 AC 106 ms
101,992 KB
testcase_35 AC 118 ms
104,684 KB
testcase_36 AC 117 ms
100,004 KB
testcase_37 AC 69 ms
71,340 KB
testcase_38 AC 108 ms
102,992 KB
testcase_39 AC 124 ms
99,956 KB
testcase_40 AC 108 ms
102,076 KB
testcase_41 AC 108 ms
102,132 KB
testcase_42 AC 106 ms
102,640 KB
testcase_43 AC 120 ms
100,012 KB
testcase_44 AC 118 ms
99,592 KB
testcase_45 AC 119 ms
100,040 KB
testcase_46 AC 113 ms
104,544 KB
testcase_47 AC 110 ms
102,880 KB
testcase_48 AC 73 ms
71,164 KB
testcase_49 AC 111 ms
104,396 KB
testcase_50 AC 108 ms
103,144 KB
testcase_51 AC 114 ms
105,884 KB
testcase_52 AC 71 ms
71,236 KB
testcase_53 AC 123 ms
102,140 KB
testcase_54 AC 110 ms
102,352 KB
testcase_55 AC 121 ms
100,328 KB
testcase_56 AC 111 ms
104,392 KB
testcase_57 AC 123 ms
101,752 KB
testcase_58 AC 121 ms
101,412 KB
testcase_59 AC 113 ms
104,376 KB
testcase_60 AC 106 ms
101,852 KB
testcase_61 AC 109 ms
102,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def xor(X):
    y=0
    for x in X:
        y^=x
    return y

N=int(input())
A=list(map(int,input().split()))

if N%2==1:
    A=[0]+A

B=[A[2*i+1]-A[2*i] for i in range(len(A)//2)]
print("First" if xor(B) else "Second")
0