結果

問題 No.1208 anti primenumber game
ユーザー rlangevinrlangevin
提出日時 2023-08-27 18:12:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 368 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 104,736 KB
最終ジャッジ日時 2023-08-27 18:12:59
合計ジャッジ時間 8,256 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,304 KB
testcase_01 AC 73 ms
71,068 KB
testcase_02 AC 69 ms
71,184 KB
testcase_03 AC 68 ms
71,244 KB
testcase_04 AC 69 ms
71,236 KB
testcase_05 AC 77 ms
71,368 KB
testcase_06 AC 69 ms
71,388 KB
testcase_07 AC 68 ms
71,100 KB
testcase_08 AC 69 ms
71,108 KB
testcase_09 AC 70 ms
71,176 KB
testcase_10 AC 71 ms
71,192 KB
testcase_11 AC 69 ms
70,900 KB
testcase_12 AC 69 ms
71,224 KB
testcase_13 AC 68 ms
71,240 KB
testcase_14 AC 69 ms
71,344 KB
testcase_15 AC 106 ms
104,620 KB
testcase_16 AC 105 ms
104,508 KB
testcase_17 AC 117 ms
104,480 KB
testcase_18 AC 104 ms
104,244 KB
testcase_19 AC 105 ms
104,372 KB
testcase_20 AC 105 ms
104,464 KB
testcase_21 AC 102 ms
103,736 KB
testcase_22 AC 101 ms
103,776 KB
testcase_23 AC 100 ms
103,744 KB
testcase_24 AC 120 ms
102,872 KB
testcase_25 AC 121 ms
102,580 KB
testcase_26 AC 121 ms
102,072 KB
testcase_27 AC 132 ms
101,796 KB
testcase_28 AC 121 ms
101,932 KB
testcase_29 AC 122 ms
101,836 KB
testcase_30 AC 105 ms
104,736 KB
testcase_31 AC 105 ms
104,556 KB
testcase_32 AC 101 ms
103,692 KB
testcase_33 AC 102 ms
103,832 KB
testcase_34 AC 100 ms
103,740 KB
testcase_35 AC 101 ms
103,668 KB
testcase_36 AC 95 ms
97,196 KB
testcase_37 AC 111 ms
103,712 KB
testcase_38 AC 119 ms
99,996 KB
testcase_39 AC 119 ms
99,912 KB
testcase_40 AC 120 ms
102,192 KB
testcase_41 AC 110 ms
104,172 KB
testcase_42 AC 103 ms
104,184 KB
testcase_43 AC 104 ms
104,268 KB
testcase_44 AC 102 ms
104,328 KB
testcase_45 AC 102 ms
104,084 KB
testcase_46 AC 107 ms
100,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
A = list(map(int, input().split()))
now = 0
for i in range(N):
    if A[i] >= 2:
        if i % 2:
            print("Second")
        else:
            print("First")
        exit()
    else:
        if i % 2:
            now -= 1 - M
        else:
            now += 1 - M
            
print("First") if now >= 1 else print("Second")
0