結果

問題 No.420 mod2漸化式
ユーザー Meso Meso
提出日時 2024-11-28 19:56:58
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 199 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 20,480 KB
最終ジャッジ日時 2024-11-28 19:57:03
合計ジャッジ時間 4,968 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 31 RE * 3 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

def comb(n, x):
    return math.factorial(n) // math.factorial(x) // math.factorial(n-x)

x = int(input())
n = 31

a = comb(n, x)
b = comb(30, x-1)

c = (pow(2, 31) - 1) * b

print(a, c)
0