AtCoder Regular Contest 113
翻译中…
Problem Statement
翻译中…
In a grid with $N$ horizontal rows and $M$ vertical columns of squares, we will write an integer between $1$ and $K$ (inclusive) on each square and define sequences $A, B$ as follows:
翻译中…
- for each
$i=1,\dots, N$,$A_i$is the minimum value written on a square in the$i$-th row; - for each
$j=1,\dots, M$,$B_j$is the maximum value written on a square in the$j$-th column.
翻译中…
Given $N, M, K$, find the number of different pairs of sequences that can be $(A, B)$, modulo $998244353$.
翻译中…
Constraints
翻译中…
$1 \leq N,M,K \leq 2\times 10^5$- All values in input are integers.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
N M K
翻译中…
Output
翻译中…
Print the number of different pairs of sequences that can be $(A, B)$, modulo $998244353$.
翻译中…
样例
Input #1
2 2 2
Output #1
7
$(A_1,A_2,B_1,B_2)$ can be $(1,1,1,1)$, $(1,1,1,2)$, $(1,1,2,1)$, $(1,1,2,2)$, $(1,2,2,2)$, $(2,1,2,2)$, or $(2,2,2,2)$ - there are seven candidates.
Input #2
1 1 100
Output #2
100
Input #3
31415 92653 58979
Output #3
469486242
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。