結果
| 問題 | No.129 お年玉(2) |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-12-05 00:17:07 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 242 bytes |
| 記録 | |
| コンパイル時間 | 294 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 862,976 KB |
| 最終ジャッジ日時 | 2026-04-04 18:57:09 |
| 合計ジャッジ時間 | 27,256 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 MLE * 21 |
ソースコード
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])
convexineq