結果

問題 No.420 mod2漸化式
ユーザー eitaho
提出日時 2016-09-10 01:12:40
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 191 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-16 19:12:09
合計ジャッジ時間 2,595 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 34 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import factorial as f
x = int(input())
C = lambda n, k: f(n) // f(k) // f(n - k)
if x >= 32:
    print("0 0")
else:
    print(C(31, x), sum(2**i * C(30, x - 1) for i in range(31)))
0