作业帮 > 英语 > 作业

英语翻译This is a super simple problem.The description is simple

来源:学生作业帮 编辑:拍题作业网作业帮 分类:英语作业 时间:2024/04/29 05:17:44
英语翻译
This is a super simple problem.The description is simple,the solution is simple.If you believe so,just read it on.Or if you don't,just pretend that you can't see this one.
We say an element is inside a matrix if it has four neighboring elements in the matrix (Those at the corner have two and on the edge have three).An element inside a matrix is called "nice" when its value equals the sum of its four neighbors.A matrix is called "k-nice" if and only if k of the elements inside the matrix are "nice".
Now given the size of the matrix and the value of k,you are to output any one of the "k-nice" matrix of the given size.It is guaranteed that there is always a solution to every test case.
呵呵,这是个智力题还是数学题...
翻译:
这是个超级简单的问题.问题的描述很简单,解答很简单.如果你相信,那么读下去.如果你认为不是,就当你没看见它好了.
我们假定一个元素在矩阵当中,同时有四个相邻的元素在这个矩阵中(矩阵的角上有2个边缘有3个).当一个元素的值等于与他相邻的四个元素的值的和时,这个在矩阵中的元素称为“好数”.【从这里开始我就不确定了】当一个矩阵中有k个这样能称为好数的元素时,这个矩阵就称为“k-nice”【将就一下吧】
现在给你矩阵的大小和k的数值,你需要给出在给定大小下任意一个“k-nice”矩阵.保证每一个测试题目总有一个答案.
不知道这样翻译对不对,我压根不知道矩阵是什么...