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

英语翻译
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.
里都苹果 1年前 已收到2个回答 举报

烈火战车-7 幼苗

共回答了17个问题采纳率:64.7% 举报

呵呵,这是个智力题还是数学题...
翻译:
这是个超级简单的问题.问题的描述很简单,解答很简单.如果你相信,那么读下去.如果你认为不是,就当你没看见它好了.
我们假定一个元素在矩阵当中,同时有四个相邻的元素在这个矩阵中(矩阵的角上有2个边缘有3个).当一个元素的值等于与他相邻的四个元素的值的和时,这个在矩阵中的元素称为“好数”.【从这里开始我就不确定了】当一个矩阵中有k个这样能称为好数的元素时,这个矩阵就称为“k-nice”【将就一下吧】
现在给你矩阵的大小和k的数值,你需要给出在给定大小下任意一个“k-nice”矩阵.保证每一个测试题目总有一个答案.
不知道这样翻译对不对,我压根不知道矩阵是什么...

1年前

3

咕咕G 幼苗

共回答了8个问题 举报

这是一个超级简单的问题。问题的描述是简单的,解法也是简单的。如果你这么认为,那就继续阅读吧。如果你不这么认为,就假装你没看见这一页。
如果一个元素在矩阵里有四个相邻的元素(在角落上有两个,在边上有三个),我们说这个元素在矩阵里。当在矩阵里的一个元素值等于它四个近邻的元素值和的时候,我们称这个元素“友好”(nice)。当且仅当一个矩阵中的元素有K个是“友好”(nice)的时,我们称这个矩阵是...

1年前

2
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 0.025 s. - webmaster@yulucn.com