結果

問題 No.420 mod2漸化式
ユーザー prime_mgm
提出日時 2016-09-21 09:45:29
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 1,000 ms
コード長 276 bytes
コンパイル時間 388 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-24 13:03:39
合計ジャッジ時間 2,542 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python
# -*- coding:utf-8 -*-

import math

x = int(input())

def binom(self, n, r):

    return 0

if x > 31:
    m = 0
    s = 0
else:
    m = int(math.factorial(31)/(math.factorial(x)*math.factorial(31 - x)))
    s = (2**31 - 1) * int(x * m / 31)

print(m,s)
0