結果
| 問題 |
No.1011 Infinite Stairs
|
| コンテスト | |
| ユーザー |
komkompi
|
| 提出日時 | 2020-03-29 03:21:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 228 bytes |
| コンパイル時間 | 544 ms |
| コンパイル使用メモリ | 82,328 KB |
| 実行使用メモリ | 228,416 KB |
| 最終ジャッジ日時 | 2025-01-02 12:57:34 |
| 合計ジャッジ時間 | 49,905 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 TLE * 15 |
ソースコード
# coding: utf-8
# Your code here!
N,d,K=map(int,input().split())
dp=[0]*(K+1)
dp[0]=1
for i in range(N):
temp=[0]*(K+1)
for j in range(K+1):
temp[j]=sum(dp[max(j-d,0):j])
dp=temp[:]
print(dp[-1]%(10**9+7))
komkompi