結果
問題 | No.129 お年玉(2) |
ユーザー |
![]() |
提出日時 | 2015-04-23 03:53:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 68 ms / 5,000 ms |
コード長 | 244 bytes |
コンパイル時間 | 106 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-27 23:45:15 |
合計ジャッジ時間 | 3,765 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 46 |
ソースコード
N = int(input())M = int(input())a = N//1000//Mb = N - (a * M) * 1000c = b//1000def perm(n, k):result = 1for i in range(1, k + 1):result *= (n - i + 1)result //= ireturn resultprint(perm(M, c)%1000000000)