시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 (추가 시간 없음) | 1024 MB | 4 | 4 | 3 | 100.000% |
Grammy is enjoying her holiday in Pigeland City Park. She was interested in the floor tiles in the park. After careful examination, she found out that each of the floor tiles is a $W \times H$ rectangle grid with vertical and/or horizontal colored segments on it. The colored segments have ends on grid points, and they split the rectangle into exactly $k$ subrectangles.
For instance, the following illustration shows a floor tile with $W = 9$, $H = 5$, $k = 4$.
Grammy wants to know the number of different floor tiles satisfying the condition. Please tell her the answer. Since the answer may be very large, you should output the number modulo $998\,244\,353$.
Note that two floor tiles are considered different if and only if a grid line is colored in one tile but not in the other. If two tiles can turn into the same by rotation or reflection, they may still be considered as different tiles.
The only line contains three integers $W,$ $H,$ $k$ ($1 \leq W, H \leq 10^9$, $1 \leq k \leq \min(5, W \cdot H)$).
Output a single integer denoting the number of different floor tiles modulo $998\,244\,353$.
2 3 5
7
4 3 5
307
6 372065168 5
114514