結果
| 問題 | No.1011 Infinite Stairs |
| コンテスト | |
| ユーザー |
komkompi
|
| 提出日時 | 2020-03-29 03:21:14 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 228 bytes |
| 記録 | |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 82,396 KB |
| 実行使用メモリ | 203,884 KB |
| 最終ジャッジ日時 | 2026-10-10 06:40:09 |
| 合計ジャッジ時間 | 6,433 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 23 |
ソースコード
# 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