#P6031. CF1278F Cards 加强版

CF1278F Cards 加强版

Description

There are mm cards, and one of them is a joker. Shuffle these cards uniformly at random nn times. Let xx be the number of times the first card is the joker. Find the expected value of xkx^k.

Take the answer modulo 998244353998244353.

Input Format

One line with three positive integers n,m,kn, m, k.

Output Format

Output one integer in one line, which is the answer.

1234 2345 3456
398700213
998244352 1337 5000
326459680
233333333 114514 9982443
825888958

Hint

Constraints
For 20%20\% of the testdata, 1k50001 \le k \le 5000;
For 40%40\% of the testdata, 1k1051 \le k \le 10^5;
For 100%100\% of the testdata, 1k1071 \le k \le 10^7, 1n,m9982443521 \le n, m \le 998244352.

Solution: iostream
Data: NaCly_Fish

Translated by ChatGPT 5