結果

問題 No.1208 anti primenumber game
ユーザー mkawa2mkawa2
提出日時 2021-08-26 12:58:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 831 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,928 KB
実行使用メモリ 33,792 KB
最終ジャッジ日時 2024-04-29 07:32:09
合計ジャッジ時間 5,507 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
10,752 KB
testcase_01 AC 34 ms
10,624 KB
testcase_02 AC 31 ms
10,624 KB
testcase_03 AC 30 ms
10,752 KB
testcase_04 AC 31 ms
10,752 KB
testcase_05 AC 31 ms
10,752 KB
testcase_06 AC 32 ms
10,624 KB
testcase_07 AC 31 ms
10,624 KB
testcase_08 AC 31 ms
10,752 KB
testcase_09 AC 31 ms
10,624 KB
testcase_10 AC 31 ms
10,752 KB
testcase_11 AC 30 ms
10,752 KB
testcase_12 AC 30 ms
10,624 KB
testcase_13 AC 32 ms
10,624 KB
testcase_14 AC 31 ms
10,752 KB
testcase_15 AC 69 ms
14,736 KB
testcase_16 AC 72 ms
14,604 KB
testcase_17 WA -
testcase_18 AC 70 ms
14,864 KB
testcase_19 AC 70 ms
14,736 KB
testcase_20 AC 70 ms
14,612 KB
testcase_21 AC 73 ms
15,032 KB
testcase_22 AC 73 ms
15,168 KB
testcase_23 AC 70 ms
14,860 KB
testcase_24 AC 107 ms
33,688 KB
testcase_25 AC 106 ms
33,792 KB
testcase_26 AC 106 ms
33,588 KB
testcase_27 AC 106 ms
33,724 KB
testcase_28 AC 106 ms
33,720 KB
testcase_29 AC 106 ms
33,596 KB
testcase_30 AC 70 ms
14,736 KB
testcase_31 WA -
testcase_32 AC 70 ms
14,604 KB
testcase_33 AC 71 ms
14,860 KB
testcase_34 AC 72 ms
14,628 KB
testcase_35 AC 71 ms
14,740 KB
testcase_36 AC 62 ms
13,496 KB
testcase_37 AC 70 ms
14,736 KB
testcase_38 AC 99 ms
27,208 KB
testcase_39 AC 100 ms
26,872 KB
testcase_40 AC 104 ms
32,772 KB
testcase_41 WA -
testcase_42 AC 76 ms
16,280 KB
testcase_43 AC 76 ms
16,284 KB
testcase_44 AC 77 ms
16,284 KB
testcase_45 AC 76 ms
16,136 KB
testcase_46 AC 68 ms
13,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(200005)
int1 = lambda x: int(x)-1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]
def SI(): return sys.stdin.readline().rstrip()
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0)]
dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)]
inf = 10**9
# md = 998244353
md = 10**9+7

n,m=LI()
aa=LI()

si=0
while n<si+1 and aa[si]==1 and aa[si+1]==1:si+=2

if n==si:
    print("Second")
    exit()

if aa[si]==1:
    if m==0 and si==n-1:print("First")
    else:print("Second")
else:
    print("First")
0