結果

問題 No.1208 anti primenumber game
ユーザー 👑 rin204
提出日時 2022-10-30 17:19:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 262 ms
コンパイル使用メモリ 82,152 KB
実行使用メモリ 105,856 KB
最終ジャッジ日時 2024-07-07 08:44:55
合計ジャッジ時間 6,268 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

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

for i, a in enumerate(A):
    if a != 1:
        if i & 1:
            print("Second")
        else:
            print("First")
        exit()

if n & 1 and m == 0:
    print("First")
else:
    print("Second")

0