結果

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

ソースコード

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) * x * int(m/31)

print(m,s)
0