結果
| 問題 |
No.1011 Infinite Stairs
|
| コンテスト | |
| ユーザー |
googol_S0
|
| 提出日時 | 2020-03-20 22:46:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 203 bytes |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 64,640 KB |
| 最終ジャッジ日時 | 2024-12-15 07:25:47 |
| 合計ジャッジ時間 | 34,251 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 1 WA * 13 TLE * 10 |
ソースコード
N,D,K=map(int,input().split())
D_b=[1]
for i in range(D-1):
D_b.append(D_b[-1]*2)
S=0
for i in range(K):
S=0
for j in range(-1,-1*(D+1),-1):
S=S+D_b[j]
D_b.append(S)
print(D_b[K])
googol_S0