文件名称:case32
介绍说明--下载内容来自于网络,使用问题请自行百度
2. 对于一个给定的n*m的矩阵,矩阵中的每个元素aij均为非负整数。游戏规则如下:
1)每次取数时须从每行各取走一个元素,共n个。m次后取完矩阵所有元素;
2)每次取走的各个元素只能是该元素所在行的行首或行尾;
3)每次取数都有一个得分值,为每行取数的得分之和,每行取数的得分 被取走的元素值*2i,其中i表示第i次取数(从1开始编号);
4)游戏结束总得分为m次取数得分之和。
对于任意矩阵,可以求出取数后的最大得分
-2 for a given n*m matrix, each element of the matrix AIJ is a nonnegative integer. The rules of the game are as follows: 1) each time the number of rows each line should be removed an element, a total of n. M after the completion of all elements of the matrix 2) each element can only take the elements where the row or the end of the line 3) each time the number has a score value, for each row of the sum of the number of points, each row of the number of scores the value of the element was taken away*2i, which I represents the number of times I ( 1) 4) the total score of the game is the sum of the number of M times. For any matrix, we can find out the maximum score after the number
1)每次取数时须从每行各取走一个元素,共n个。m次后取完矩阵所有元素;
2)每次取走的各个元素只能是该元素所在行的行首或行尾;
3)每次取数都有一个得分值,为每行取数的得分之和,每行取数的得分 被取走的元素值*2i,其中i表示第i次取数(从1开始编号);
4)游戏结束总得分为m次取数得分之和。
对于任意矩阵,可以求出取数后的最大得分
-2 for a given n*m matrix, each element of the matrix AIJ is a nonnegative integer. The rules of the game are as follows: 1) each time the number of rows each line should be removed an element, a total of n. M after the completion of all elements of the matrix 2) each element can only take the elements where the row or the end of the line 3) each time the number has a score value, for each row of the sum of the number of points, each row of the number of scores the value of the element was taken away*2i, which I represents the number of times I ( 1) 4) the total score of the game is the sum of the number of M times. For any matrix, we can find out the maximum score after the number
(系统自动生成,下载前可以参看下载内容)
下载文件列表
case32.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.