結果

問題 No.1208 anti primenumber game
ユーザー mlihua09mlihua09
提出日時 2020-08-30 15:01:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 481 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 106,252 KB
最終ジャッジ日時 2024-04-27 07:56:44
合計ジャッジ時間 4,560 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,916 KB
testcase_01 AC 35 ms
52,632 KB
testcase_02 AC 32 ms
52,224 KB
testcase_03 AC 32 ms
52,220 KB
testcase_04 AC 33 ms
52,348 KB
testcase_05 AC 34 ms
52,832 KB
testcase_06 AC 32 ms
52,080 KB
testcase_07 AC 35 ms
52,876 KB
testcase_08 AC 34 ms
53,776 KB
testcase_09 AC 33 ms
53,100 KB
testcase_10 AC 33 ms
53,164 KB
testcase_11 AC 32 ms
52,344 KB
testcase_12 AC 31 ms
52,752 KB
testcase_13 AC 34 ms
52,884 KB
testcase_14 AC 34 ms
52,900 KB
testcase_15 AC 68 ms
97,284 KB
testcase_16 AC 67 ms
97,156 KB
testcase_17 AC 68 ms
97,708 KB
testcase_18 AC 70 ms
97,148 KB
testcase_19 AC 66 ms
98,304 KB
testcase_20 AC 68 ms
97,052 KB
testcase_21 AC 68 ms
96,724 KB
testcase_22 AC 65 ms
97,380 KB
testcase_23 AC 64 ms
97,320 KB
testcase_24 AC 88 ms
100,376 KB
testcase_25 AC 88 ms
100,732 KB
testcase_26 AC 89 ms
101,056 KB
testcase_27 AC 88 ms
101,308 KB
testcase_28 AC 88 ms
101,304 KB
testcase_29 AC 89 ms
101,100 KB
testcase_30 AC 66 ms
96,528 KB
testcase_31 AC 66 ms
98,320 KB
testcase_32 AC 66 ms
96,808 KB
testcase_33 AC 66 ms
96,108 KB
testcase_34 AC 65 ms
96,108 KB
testcase_35 AC 63 ms
95,912 KB
testcase_36 AC 59 ms
88,872 KB
testcase_37 AC 68 ms
95,876 KB
testcase_38 AC 78 ms
106,252 KB
testcase_39 AC 79 ms
105,744 KB
testcase_40 AC 89 ms
101,096 KB
testcase_41 AC 65 ms
98,048 KB
testcase_42 AC 66 ms
98,224 KB
testcase_43 AC 68 ms
97,256 KB
testcase_44 AC 66 ms
97,916 KB
testcase_45 AC 67 ms
97,296 KB
testcase_46 AC 62 ms
91,884 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 == N:
        if j % 2:
            print('First')
        else:
            print('Second')
    else:
        if j % 2 == 0:
            print('First')
        else:
            print('Second')
        
else:
    
    if j % 2 == 0 and j != N:
        print('First')
    else:
        
        print('Second')
0