The 1st Universal Cup Stage 13: Iberia, Apr 22-23, 2023 题解
D.XORDeterminantYouaregiventwoarraysbandcoflengthn,consistingofnon-negativeintegers.Constructn×nmatrixAasAij=bi⊕cj.FindthedeterminantofAmodulo998244353考虑Aij=∑kbi,kcj,k+pA_{ij}=\sum_kb_{i,k}{c_{j,k}}+p