結果

問題 No.1208 anti primenumber game
ユーザー mlihua09mlihua09
提出日時 2020-08-30 14:58:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 366 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,352 KB
実行使用メモリ 106,048 KB
最終ジャッジ日時 2024-04-27 07:52:16
合計ジャッジ時間 4,936 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,084 KB
testcase_01 AC 37 ms
52,772 KB
testcase_02 AC 40 ms
52,492 KB
testcase_03 AC 39 ms
52,140 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 37 ms
52,448 KB
testcase_07 AC 38 ms
53,292 KB
testcase_08 AC 37 ms
53,360 KB
testcase_09 AC 39 ms
52,832 KB
testcase_10 AC 37 ms
52,740 KB
testcase_11 AC 37 ms
52,340 KB
testcase_12 AC 37 ms
52,872 KB
testcase_13 AC 36 ms
52,748 KB
testcase_14 AC 37 ms
52,280 KB
testcase_15 AC 76 ms
97,764 KB
testcase_16 AC 74 ms
97,172 KB
testcase_17 AC 73 ms
96,880 KB
testcase_18 AC 75 ms
97,020 KB
testcase_19 AC 77 ms
97,700 KB
testcase_20 AC 73 ms
96,860 KB
testcase_21 AC 74 ms
97,204 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 98 ms
100,772 KB
testcase_25 AC 96 ms
100,652 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 96 ms
101,120 KB
testcase_29 AC 97 ms
101,200 KB
testcase_30 WA -
testcase_31 AC 72 ms
97,028 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 65 ms
88,384 KB
testcase_37 AC 71 ms
97,184 KB
testcase_38 AC 87 ms
106,048 KB
testcase_39 AC 85 ms
106,016 KB
testcase_40 WA -
testcase_41 AC 74 ms
98,188 KB
testcase_42 AC 74 ms
97,760 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 73 ms
97,304 KB
testcase_46 AC 69 ms
92,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


N, M = map(int, input().split())

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

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