結果

問題 No.129 お年玉(2)
ユーザー roiti46
提出日時 2015-01-23 04:13:56
言語 PyPy2
(7.3.15)
結果
RE  
実行時間 -
コード長 144 bytes
コンパイル時間 1,856 ms
コンパイル使用メモリ 76,476 KB
実行使用メモリ 81,036 KB
最終ジャッジ日時 2024-06-23 00:40:16
合計ジャッジ時間 7,865 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 1 WA * 2 RE * 43
権限があれば一括ダウンロードができます

ソースコード

diff #

def fact(n):
    return 1 if n == 0 else n*fact(n-1)

N = int(raw_input())
M = int(raw_input())
R = (N-N/1000/M*1000)/1000
print fact(M)/fact(R)
0