結果

問題 No.2619 Sorted Nim
ユーザー pitPpitP
提出日時 2024-01-27 01:26:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 742 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 108,784 KB
最終ジャッジ日時 2024-01-27 01:26:58
合計ジャッジ時間 8,565 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,460 KB
testcase_01 AC 34 ms
53,460 KB
testcase_02 AC 82 ms
99,092 KB
testcase_03 AC 85 ms
103,352 KB
testcase_04 AC 75 ms
99,292 KB
testcase_05 AC 76 ms
99,164 KB
testcase_06 AC 94 ms
101,504 KB
testcase_07 AC 73 ms
97,928 KB
testcase_08 AC 90 ms
108,092 KB
testcase_09 AC 35 ms
53,460 KB
testcase_10 AC 80 ms
103,504 KB
testcase_11 AC 78 ms
101,612 KB
testcase_12 AC 80 ms
103,000 KB
testcase_13 AC 35 ms
53,460 KB
testcase_14 AC 80 ms
103,504 KB
testcase_15 AC 79 ms
101,624 KB
testcase_16 AC 99 ms
107,988 KB
testcase_17 AC 88 ms
107,180 KB
testcase_18 AC 85 ms
106,416 KB
testcase_19 AC 74 ms
97,868 KB
testcase_20 AC 75 ms
99,056 KB
testcase_21 AC 95 ms
101,680 KB
testcase_22 AC 76 ms
99,856 KB
testcase_23 AC 83 ms
104,548 KB
testcase_24 AC 88 ms
107,804 KB
testcase_25 AC 86 ms
107,948 KB
testcase_26 AC 81 ms
103,572 KB
testcase_27 AC 76 ms
99,080 KB
testcase_28 AC 115 ms
101,656 KB
testcase_29 AC 90 ms
108,712 KB
testcase_30 AC 81 ms
103,760 KB
testcase_31 AC 36 ms
53,460 KB
testcase_32 AC 74 ms
98,096 KB
testcase_33 AC 79 ms
101,800 KB
testcase_34 AC 73 ms
98,012 KB
testcase_35 AC 79 ms
102,340 KB
testcase_36 AC 81 ms
104,900 KB
testcase_37 AC 34 ms
53,460 KB
testcase_38 AC 74 ms
99,328 KB
testcase_39 AC 85 ms
106,404 KB
testcase_40 AC 75 ms
98,564 KB
testcase_41 AC 95 ms
98,576 KB
testcase_42 AC 74 ms
99,032 KB
testcase_43 AC 86 ms
106,392 KB
testcase_44 AC 83 ms
104,264 KB
testcase_45 AC 84 ms
106,392 KB
testcase_46 AC 79 ms
102,304 KB
testcase_47 AC 74 ms
99,104 KB
testcase_48 AC 34 ms
53,460 KB
testcase_49 AC 77 ms
101,624 KB
testcase_50 AC 75 ms
99,104 KB
testcase_51 AC 79 ms
103,068 KB
testcase_52 AC 35 ms
53,460 KB
testcase_53 AC 99 ms
101,692 KB
testcase_54 AC 74 ms
98,388 KB
testcase_55 AC 91 ms
107,040 KB
testcase_56 AC 78 ms
101,788 KB
testcase_57 AC 91 ms
108,784 KB
testcase_58 AC 87 ms
107,768 KB
testcase_59 AC 78 ms
101,788 KB
testcase_60 AC 74 ms
98,060 KB
testcase_61 AC 75 ms
98,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
if N % 2 : A = [0] + A
M = (N + 1) // 2

B = [A[2 * i + 1] - A[2 * i] for i in range(M)]
v = 0
for i in range(M):
    v ^= B[i]
print("First" if v else "Second")
0