QOJ.ac

QOJ

حد الوقت: 12.0 s حد الذاكرة: 1024 MB مجموع النقاط: 100 قابلة للهجوم ✓

#10095. 积

الإحصائيات

我们长话短说。

对于一个长度为 $mk$ 的整数序列 $(a_0, a_1, \dots, a_{mk-1})$,定义其权值为乘积 $\prod_{i=0}^{m-1} a_{ik}$。 计算所有满足 $1 \le a_0 \le a_1 \le \dots \le a_{mk-1} \le n_0$ 的序列 $(a_0, a_1, \dots, a_{mk-1})$ 的权值之和,对 $998\,244\,353$ 取模,对于所有 $n_0$ 从 $1$ 到 $n$ 的情况分别输出结果。

输入格式

输入仅一行,包含三个整数:$n, m, k$ ($1 \le n, k \le 250\,000; 1 \le m \le 10^{18}$)。

输出格式

输出 $n$ 行:分别为 $n_0 = 1, 2, \dots, n$ 时的答案,对 $998\,244\,353$ 取模。

样例

样例输入 1

2 2 2

样例输出 1

1
10

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.