QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 768 MB Total points: 100

#7376. 老生常谈

الإحصائيات

题目描述

定义 $f_0(x) = x^n, f_m(x) = \sum_{i=0}^x f_{m-1}(i)$。

给定 $n,m,x$,求 $f_m(x)$。同余 $998244353$。

输入格式

输入 $n,m,x$。

输出格式

输出 $f_m(x) \bmod 998244353$。

样例 1

输入

1 1 4

输出

10

样例 2

输入

5 1 4

输出

1300

样例 3

输入

1 9 19

输出

13123110

样例 4

输入

114 514 1919810

输出

693970832

数据范围

对于 $100\%$ 的数据,保证 $1\le n\le 10^7; 1\le m,x\le 4\times 10^8$。

数据点编号 $n\le$ $m\le$ $x\le$
$1$ $100$ $100$ $100$
$2,3$ $10^7$ $10^7$ $10^3$
$4,5$ $10^5$
$6$ $10^6$
$7$ $10^7$
$8$ $1$ $4\times 10^8$
$9$ $3$
$10$ $10^5$
$11,12$ $4\times 10^8$
$13$ $10^6$ $10^7$
$14,15$ $4\times 10^8$
$16$ $10^7$ $1$
$17$ $3$
$18$ $10^5$ $10^5$
$19$ $10^7$ $10^7$
$20$ $4\times 10^8$
About Issues

We understand that our problem archive is not perfect. If you find any issues with the problem, including the statement, scoring configuration, time/memory limits, test cases, etc.

You may use this form to submit an issue regarding the problem. A problem moderator will review your issue and proceed it properly.

STOP! Before you submit an issue, please READ the following guidelines:

  1. This is not a place to publish a discussion, editorial, or requests to debug your code. Your issue will only be visible by you and problem moderators. Other users will not be able to view or reply your issues.
  2. Do not submit duplicated issues. If you have already submitted one, please wait for an moderator to review it. Submitting multiple issues will not speed up the review process and might cause your account to be banned.
  3. Issues must be filed in English or Chinese only.
  4. Be sure your issue is related to this problem. If you need to submit an issue regarding another problem, contest, category, etc., you should submit it to the corresponding page.

Active Issues 0

No issues in this category.

Closed/Resolved Issues 0

No issues in this category.