結果
問題 |
No.1011 Infinite Stairs
|
ユーザー |
|
提出日時 | 2020-03-20 22:26:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 249 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 229,920 KB |
最終ジャッジ日時 | 2024-12-15 06:43:33 |
合計ジャッジ時間 | 58,946 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 TLE * 18 |
ソースコード
mod = 10 ** 9 + 7 n,d,k = map(int,input().split()) dp = [[0] * (d*n+1) for i in range(n+1) ] dp[0][0] = 1 for i in range(n): for j in range(d*n,0,-1): dp[i+1][j] = sum(dp[i][max(0,j-d):j]) print(dp[n][k] % mod)