結果

問題 No.1208 anti primenumber game
ユーザー ayaoniayaoni
提出日時 2021-01-13 06:16:12
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 748 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 82,120 KB
実行使用メモリ 107,668 KB
最終ジャッジ日時 2024-05-01 15:41:28
合計ジャッジ時間 4,896 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
51,968 KB
testcase_01 AC 31 ms
51,712 KB
testcase_02 AC 32 ms
52,224 KB
testcase_03 AC 33 ms
52,476 KB
testcase_04 AC 32 ms
52,224 KB
testcase_05 AC 36 ms
52,224 KB
testcase_06 AC 33 ms
52,480 KB
testcase_07 AC 34 ms
52,224 KB
testcase_08 AC 34 ms
51,712 KB
testcase_09 AC 35 ms
51,840 KB
testcase_10 AC 34 ms
51,840 KB
testcase_11 AC 33 ms
52,096 KB
testcase_12 AC 32 ms
51,840 KB
testcase_13 AC 34 ms
52,224 KB
testcase_14 AC 34 ms
51,840 KB
testcase_15 AC 72 ms
104,576 KB
testcase_16 AC 71 ms
104,920 KB
testcase_17 AC 79 ms
104,832 KB
testcase_18 AC 80 ms
104,576 KB
testcase_19 AC 72 ms
104,704 KB
testcase_20 AC 74 ms
104,944 KB
testcase_21 WA -
testcase_22 AC 65 ms
97,792 KB
testcase_23 WA -
testcase_24 AC 83 ms
102,028 KB
testcase_25 AC 86 ms
102,276 KB
testcase_26 AC 86 ms
100,232 KB
testcase_27 AC 84 ms
100,460 KB
testcase_28 AC 86 ms
100,980 KB
testcase_29 AC 87 ms
100,608 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 65 ms
97,408 KB
testcase_34 AC 66 ms
97,024 KB
testcase_35 AC 63 ms
97,280 KB
testcase_36 AC 76 ms
88,960 KB
testcase_37 AC 70 ms
97,280 KB
testcase_38 WA -
testcase_39 AC 78 ms
107,568 KB
testcase_40 AC 81 ms
101,264 KB
testcase_41 WA -
testcase_42 AC 71 ms
98,816 KB
testcase_43 WA -
testcase_44 AC 71 ms
98,304 KB
testcase_45 WA -
testcase_46 AC 63 ms
92,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


N,M = MI()
A = LI()

if A == [1]*N:
    if N % 2 == 1 and M == 0:
        print('First')
    else:
        print('Second')
else:
    for i in range(N):
        if A[i] != 1:
            if i % 2 == 0:
                print('First')
            else:
                print('Second')
        break
0