当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

6402:Boolean 3-Array

题目描述
In this problem, we are going to deal with a special structure called Boolean 3-array.

A $\textit{Boolean 3-array}$ of size $m \times n \times p$ is a three-dimensional array denoted as $A$, where $A[i][j][k] \in \{0, 1\}$ $(1 \leq i \leq m, 1 \leq j \leq n, 1 \leq k \leq p)$. We define any one of these as an $\textit{operation}$ on a Boolean 3-array $A$ of size $m \times n \times p$:

- Choose some fixed $a$ $(1 \leq a \leq m)$, then flip $A[a][j][k]$ for all $1 \leq j \leq n$, $1 \leq k \leq p$;
- Choose some fixed $b$ $(1 \leq b \leq n)$, then flip $A[i][b][k]$ for all $1 \leq i \leq m$, $1 \leq k \leq p$;
- Choose some fixed $c$ $(1 \leq c \leq p)$, then flip $A[i][j][c]$ for all $1 \leq i \leq m$, $1 \leq j \leq n$;
- Choose some fixed $a_1, a_2$ $(1 \leq a_1, a_2 \leq m)$, then swap $A[a_1][j][k]$ and $A[a_2][j][k]$ for all $1 \leq j \leq n$, $1 \leq k \leq p$;
- Choose some fixed $b_1, b_2$ $(1 \leq b_1, b_2 \leq n)$, then swap $A[i][b_1][k]$ and $A[i][b_2][k]$ for all $1 \leq i \leq m$, $1 \leq k \leq p$;
- Choose some fixed $c_1, c_2$ $(1 \leq c_1, c_2 \leq p)$, then swap $A[i][j][c_1]$ and $A[i][j][c_2]$ for all $1 \leq i \leq m$, $1 \leq j \leq n$.
Here "filp" means change the value of the element, i.e., replace 0 with 1 and replace 1 with 0.

We say two Boolean 3-arrays $A, B$ are $\textit{essentially identical}$, if and only if any one of them can be transformed to the other, by applying operations finitely many times; otherwise, we say $A$ and $B$ are $\textit{essentially different}$.

Now, given the size of the Boolean 3-array, can you determine the maximum number of Boolean 3-arrays of given size you may choose, such that any two of them are essentially different?
输入解释
The first line of input is a single integer $T$ $(1 \leq T \leq 300)$, the number of test cases.

Each test case is a single line of three integers $n, m, p$ $(1 \leq m, n, p \leq 13)$, the size of the Boolean 3-array.
输出解释
For each test case, display an integer in a single line: the answer modulo $998244353$.
输入样例
3
1 1 1
2 2 2
2 3 4
输出样例
1
9
723
来自杭电HDUOJ的附加信息
Recommend chendu

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-6402

最后修改于 2020-10-25T23:31:01+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/2000MS(Java/Others) 131072/131072K(Java/Others)