結果

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

ソースコード

diff #

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

import math

x = int(input())

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

print(m,s)
0