結果
| 問題 |
No.1011 Infinite Stairs
|
| コンテスト | |
| ユーザー |
Ldio03
|
| 提出日時 | 2020-03-20 21:47:20 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 148 bytes |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 82,500 KB |
| 実行使用メモリ | 234,036 KB |
| 最終ジャッジ日時 | 2024-12-15 05:17:59 |
| 合計ジャッジ時間 | 39,777 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 11 RE * 2 TLE * 11 |
ソースコード
n,d,k=map(int,input().split())
dp=[0]*(n*d+1)
dp[0]=1
for i in range(1,n*d+1):
for j in range(max(0,i-d),i-1):
dp[i]+=dp[j]
print(dp[k])
Ldio03