結果
問題 |
No.129 お年玉(2)
|
ユーザー |
![]() |
提出日時 | 2020-12-05 00:17:07 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 242 bytes |
コンパイル時間 | 195 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 851,968 KB |
最終ジャッジ日時 | 2024-09-15 09:17:33 |
合計ジャッジ時間 | 3,041 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | AC * 1 MLE * 1 -- * 44 |
ソースコード
n = int(input()) m = int(input()) MOD = 10**9 choose = [[0]*(m+1) for _ in range(m+1)] choose[0][0] = 1 for i in range(1,m+1): for j in range(m+1): choose[i][j] = (choose[i-1][j] + choose[i-1][j-1])%MOD print(choose[m][n//1000%m])