8563: Floor Tiles in a Park

内存限制:256 MB 时间限制:1 S 标准输入输出
题目类型:传统 评测方式:文本比较 上传者:
提交:0 通过:0

题目描述

链接:https://ac.nowcoder.com/acm/contest/33192/A
来源:牛客网
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×HW \times HW×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 kkk subrectangles.

For instance, the following illustration shows a floor tile with W=9,H=5,k=4W=9,H=5,k=4W=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 too large, you should output the number modulo 998244353998\,244\,353998244353.

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 333 integers W,H,kW, H, kW,H,k (1≤W,H≤109,1≤k≤min⁡(5,W×H)1\leq W,H \leq 10^9, 1 \leq k \leq \min(5,W\times H)1W,H109,1kmin(5,W×H)).

输出格式


Output a single integer, denoting the number of different floor tiles, modulo 998244353998\,244\,353998244353.

输入样例 复制

2 3 5

输出样例 复制

7

分类标签