結果

問題 No.1208 anti primenumber game
ユーザー nasubi24nasubi24
提出日時 2020-08-30 13:36:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 470 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 33,864 KB
最終ジャッジ日時 2024-04-27 07:00:32
合計ジャッジ時間 8,141 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,752 KB
testcase_01 AC 30 ms
10,752 KB
testcase_02 AC 30 ms
10,752 KB
testcase_03 AC 30 ms
10,624 KB
testcase_04 WA -
testcase_05 AC 29 ms
10,624 KB
testcase_06 AC 30 ms
10,752 KB
testcase_07 AC 30 ms
10,752 KB
testcase_08 AC 29 ms
10,752 KB
testcase_09 AC 30 ms
10,624 KB
testcase_10 AC 29 ms
10,624 KB
testcase_11 AC 30 ms
10,624 KB
testcase_12 AC 30 ms
10,624 KB
testcase_13 AC 32 ms
10,752 KB
testcase_14 AC 30 ms
10,752 KB
testcase_15 AC 152 ms
14,740 KB
testcase_16 AC 150 ms
14,736 KB
testcase_17 AC 154 ms
14,744 KB
testcase_18 AC 146 ms
14,620 KB
testcase_19 AC 168 ms
14,612 KB
testcase_20 AC 164 ms
14,616 KB
testcase_21 AC 182 ms
14,940 KB
testcase_22 AC 179 ms
14,828 KB
testcase_23 AC 164 ms
14,744 KB
testcase_24 AC 250 ms
33,736 KB
testcase_25 AC 239 ms
33,864 KB
testcase_26 AC 222 ms
33,528 KB
testcase_27 AC 225 ms
33,532 KB
testcase_28 AC 232 ms
32,684 KB
testcase_29 AC 240 ms
33,528 KB
testcase_30 WA -
testcase_31 AC 175 ms
14,616 KB
testcase_32 AC 150 ms
14,740 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 148 ms
13,368 KB
testcase_37 AC 192 ms
14,612 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 234 ms
32,052 KB
testcase_41 AC 181 ms
15,876 KB
testcase_42 AC 193 ms
16,212 KB
testcase_43 WA -
testcase_44 AC 181 ms
16,220 KB
testcase_45 WA -
testcase_46 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
a=list(map(int,input().split()))
cnt=0
num1=0
num2=0
ans=0
for i in range(n):
    num1=ans
    num2=0
    if a[i]==1:
        if cnt==0:
            num1-=m-1
            cnt=1
        else:
            num2-=m-1
            cnt=0
    else:
        if cnt==0:
            num1+=a[i]-1
            num2-=m-1
        else:
            num2+=a[i]-1
            num1-=m-1
    ans=num1-num2
if ans>0:
    print("First")
else:
    print("Second")
0