結果
問題 | No.2791 Beginner Contest |
ユーザー |
|
提出日時 | 2025-02-14 10:18:47 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 239 bytes |
コンパイル時間 | 339 ms |
コンパイル使用メモリ | 82,404 KB |
実行使用メモリ | 135,616 KB |
最終ジャッジ日時 | 2025-02-14 10:19:08 |
合計ジャッジ時間 | 20,305 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 TLE * 1 |
other | AC * 13 TLE * 4 |
ソースコード
import syssys.setrecursionlimit(10 ** 8)from functools import lru_cachen,k=map(int,input().split())mod=998244353@lru_cache(maxsize=None)def f(x):stc=1for i in range(0,x-k+1):stc+=f(i)return stc%modprint(f(n))