結果

問題 No.1208 anti primenumber game
ユーザー 👑 tamatotamato
提出日時 2020-10-18 19:49:31
言語 PyPy3
(7.3.13)
結果
WA  
実行時間 -
コード長 650 bytes
コンパイル時間 370 ms
コンパイル使用メモリ 87,380 KB
実行使用メモリ 105,032 KB
最終ジャッジ日時 2023-09-28 12:03:21
合計ジャッジ時間 9,694 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,532 KB
testcase_01 AC 72 ms
71,716 KB
testcase_02 AC 75 ms
71,716 KB
testcase_03 AC 74 ms
71,548 KB
testcase_04 WA -
testcase_05 AC 75 ms
71,692 KB
testcase_06 AC 75 ms
71,612 KB
testcase_07 AC 75 ms
71,540 KB
testcase_08 AC 72 ms
71,544 KB
testcase_09 AC 73 ms
71,760 KB
testcase_10 AC 72 ms
71,524 KB
testcase_11 AC 74 ms
71,728 KB
testcase_12 AC 74 ms
71,636 KB
testcase_13 AC 75 ms
71,852 KB
testcase_14 AC 73 ms
71,760 KB
testcase_15 AC 112 ms
104,148 KB
testcase_16 AC 112 ms
104,248 KB
testcase_17 AC 109 ms
104,408 KB
testcase_18 AC 111 ms
104,416 KB
testcase_19 AC 111 ms
104,148 KB
testcase_20 AC 110 ms
104,244 KB
testcase_21 AC 113 ms
104,480 KB
testcase_22 AC 113 ms
104,944 KB
testcase_23 AC 113 ms
104,864 KB
testcase_24 AC 126 ms
103,116 KB
testcase_25 AC 127 ms
103,440 KB
testcase_26 AC 126 ms
102,412 KB
testcase_27 AC 127 ms
102,512 KB
testcase_28 AC 126 ms
102,540 KB
testcase_29 AC 125 ms
102,556 KB
testcase_30 WA -
testcase_31 AC 112 ms
104,500 KB
testcase_32 AC 113 ms
104,324 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 100 ms
97,752 KB
testcase_37 AC 107 ms
104,200 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 131 ms
102,864 KB
testcase_41 AC 120 ms
104,888 KB
testcase_42 AC 115 ms
105,032 KB
testcase_43 WA -
testcase_44 AC 118 ms
104,752 KB
testcase_45 WA -
testcase_46 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

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

    x = y = 0
    flg = 1
    for a in A:
        if flg == 1:
            if a != 1:
                x += a - 1
                y += 1 - M
            else:
                x += 1 - M
                flg = 0
        else:
            if a != 1:
                y += a - 1
                x += 1 - M
            else:
                y += 1 - M
                flg = 1

    if x > y:
        print("First")
    else:
        print("Second")


if __name__ == '__main__':
    main()
0