結果
| 問題 | No.1011 Infinite Stairs |
| コンテスト | |
| ユーザー |
takakin
|
| 提出日時 | 2020-03-22 18:34:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 324 bytes |
| 記録 | |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 117,760 KB |
| 最終ジャッジ日時 | 2026-05-31 09:00:15 |
| 合計ジャッジ時間 | 4,386 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 23 |
ソースコード
import sys
input=lambda: sys.stdin.readline().rstrip()
n,d,k=map(int,input().split())
mod=10**9+7
A=[0]*(n*d+1)
A[0]=1
for _ in range(n):
B=[0]*(n*d+1)
for i in range(n*d+1):
if not A[i]:
continue
else:
for j in range(d):
if i+j<=n*d:
B[i+j+1]=(B[i+j+1]+A[i])%mod
A=B
print(A[k])
takakin