問題一覧 > 通常問題

No.2857 Div Array

レベル : / AI推定難易度 : 1500 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 59
作問者 : dyktr_06 / テスター : ryota2357 square1001
お気に入りにしたユーザー ProblemId : 10858 / 自分の提出
問題文最終更新日: 2024-08-20 19:26:25
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 442 MMA Contest 019 (順位表) の他の問題:

Problem Statement

An integer sequence of length $N$ in which every element is an integer between $1$ and $M$, inclusive, is called a good integer sequence if it satisfies the following condition.

  • Letting $A$ be the integer sequence, $\displaystyle \left | \left \lfloor \frac{M}{A_i} \right \rfloor - \left \lfloor \frac{M}{A_{i + 1}} \right \rfloor \right | \leq K$ holds for every integer $i$ satisfying $1 \leq i \leq N - 1$.

How many good integer sequences are there?

Since the answer can be very large, output it modulo $998244353$.


Constraints

  • $1 \leq N \leq 10^{9}$
  • $1 \leq M \leq 1000$
  • $0 \leq K \leq M$
  • All input values are integers.

Input

The input is given from standard input in the following format.

$N$ $M$ $K$ 

Output

Output the answer modulo $998244353$ on a single line.

Sample

Sample 1
Input
2 3 1
Output
5

There are $5$ possible good integer sequences: $(1, 1), (2, 2), (2, 3), (3, 2), (3, 3)$.

Sample 2
Input
100 100 38
Output
412066770

Output the answer modulo $998244353$.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。