B3615 测测你的矩阵乘法
题目描述
给定两个大小为均为 $512 \times 512$,每个元素均为整数,值域为 $ [0, 1024) $ 矩阵 $A, B$,定义为
$$ \begin{aligned}
A\left[i, j\right] &= \left(\left(i \mathbin{\mathrm{or}} j\right) + j\right) \mathbin{\mathrm{xor}} \mathrm{seed}_A \\
B\left[i, j \right] &= \left( \left(i \mathbin{\mathrm{and}} j \right) + i \right) \mathbin{\mathrm{xor}} \mathrm{seed}_B
\end{aligned} $$
其中 $i, j \in [0, 512)$。
请计算 $C = A \times B$。
输入格式
无
输出格式
无