結果

問題 No.2188 整数列コイントスゲーム
ユーザー 👑 KazunKazun
提出日時 2023-01-13 23:10:12
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 1,322 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 86,840 KB
実行使用メモリ 78,932 KB
最終ジャッジ日時 2023-08-26 04:54:41
合計ジャッジ時間 6,654 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,284 KB
testcase_01 AC 64 ms
71,284 KB
testcase_02 AC 66 ms
71,444 KB
testcase_03 AC 65 ms
71,324 KB
testcase_04 AC 68 ms
71,008 KB
testcase_05 RE -
testcase_06 AC 70 ms
71,368 KB
testcase_07 AC 67 ms
71,248 KB
testcase_08 AC 66 ms
71,292 KB
testcase_09 AC 65 ms
71,196 KB
testcase_10 AC 67 ms
71,240 KB
testcase_11 AC 65 ms
71,220 KB
testcase_12 AC 65 ms
71,008 KB
testcase_13 AC 67 ms
71,152 KB
testcase_14 AC 67 ms
71,288 KB
testcase_15 AC 67 ms
71,100 KB
testcase_16 AC 63 ms
71,380 KB
testcase_17 AC 64 ms
71,144 KB
testcase_18 AC 66 ms
71,324 KB
testcase_19 AC 65 ms
71,320 KB
testcase_20 AC 67 ms
70,992 KB
testcase_21 AC 72 ms
71,224 KB
testcase_22 AC 68 ms
71,188 KB
testcase_23 AC 68 ms
71,220 KB
testcase_24 RE -
testcase_25 AC 65 ms
71,220 KB
testcase_26 AC 66 ms
71,044 KB
testcase_27 AC 66 ms
71,100 KB
testcase_28 AC 68 ms
71,084 KB
testcase_29 AC 66 ms
71,188 KB
testcase_30 RE -
testcase_31 AC 67 ms
71,036 KB
testcase_32 AC 67 ms
71,184 KB
testcase_33 AC 69 ms
71,188 KB
testcase_34 RE -
testcase_35 AC 65 ms
71,180 KB
testcase_36 AC 67 ms
71,180 KB
testcase_37 AC 64 ms
71,360 KB
testcase_38 RE -
testcase_39 AC 72 ms
71,396 KB
testcase_40 AC 66 ms
71,120 KB
testcase_41 AC 71 ms
71,188 KB
testcase_42 AC 71 ms
71,284 KB
testcase_43 AC 67 ms
71,244 KB
testcase_44 AC 66 ms
71,428 KB
testcase_45 RE -
testcase_46 AC 67 ms
71,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    N=int(input())
    M=int(input())

    if N<M:
        return 0
    X=[None,
        [0,1],
        [0,1,2],
        [0,1,6,6],
        [0,1,14,36,24],
        [0,1,30,150,240,120],
        [0,1,62,540,1560,1800,720],
        [0, 1, 126, 1806, 8400, 16800, 15120],
        [0, 1, 254, 5796, 40824, 126000, 191520, 141120],
        [0, 1, 510, 18150, 186480, 834120, 1905120, 2328480, 1451520],
        [0, 1, 1022, 55980, 818520, 5103000, 16435440, 29635200, 30240000, 16329600],
        [0, 1, 2046, 171006, 3498000, 29607600, 129230640, 322494480, 479001600, 419126400, 199584000],
        [0, 1, 4094, 519156, 14676024, 165528000, 953029440, 3162075840, 6411968640, 8083152000, 6187104000, 2634508800],
        [0, 1, 8190, 1569750, 60780720, 901020120, 6711344640, 28805736960, 76592355840, 130456085760, 142702560000, 97037740800, 37362124800],
        [0, 1, 16382, 4733820, 249401880, 4809004200, 45674188560, 248619571200, 843184742400, 1863435974400, 2731586457600, 2637143308800, 1612798387200, 566658892800],
        [0, 1, 32766, 14250606, 1016542800, 25292030400, 302899156560, 2060056318320, 8734434508800, 24359586451200, 45950224320000, 59056027430400, 50999300352000, 28332944640000, 9153720576000]]

    return X[N][M]

#==================================================
print(solve())
0