Skip to content

Puzzle1貌似有点问题 #2

Closed Answered by qyl27
31core asked this question in Q&A
Aug 26, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

我又考虑了一下,这个事实上可以转换为一个解线性同余方程组的问题。
把输入作为一个 n * n 维的向量,输入到一个线性变换里面,在模 4 的情况下得到全零的输出。
若该方程组的增广矩阵的秩小于阶数,则无解;否则可求出一个n维向量,将其各个维度上的数值相加,就可以得到答案。
(之所以存在无解的情况,是因为我们的模为 4 ,如果模是质数,则必定有解。)

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@qyl27
Comment options

@31core
Comment options

@qyl27
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by qyl27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants