結果
問題 | No.129 お年玉(2) |
ユーザー |
![]() |
提出日時 | 2018-08-12 21:54:54 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 42 ms / 5,000 ms |
コード長 | 156 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 12,160 KB |
最終ジャッジ日時 | 2024-11-28 01:06:48 |
合計ジャッジ時間 | 2,817 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 46 |
ソースコード
import mathN = int(input())M = int(input())amari = N%(1000*M)//1000print(math.factorial(M)//(math.factorial(amari)*math.factorial(M-amari))%1000000000)