文件名称:GridNumber
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2013-11-23
- 文件大小:
- 1.19mb
- 下载次数:
- 0次
- 提 供 者:
- Mui***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在一个有m*n个方格的棋盘中,每个方格中有一个正整数。现要从方格中取数,使任意两个数所在的方格没有公共边,且取出的数的总和最大。利用线性规划,设计一个满足要求的取数算法
输入:由文件名为input.txt的文本文件提供,第一行有两个正整数m和n,分别表示棋盘的行数和列数,从第二行开始,每行有n个正整数,表示棋盘方格中的数
输出:输出到文件output.txt,第一行为取数的最大总和-In an m* n chessboard squares, each square has a positive integer. The sum is now taken from the grid number, so that any two squares where the numbers are not public side, and remove the maximum number. Linear programming, design a number of algorithms to meet the requirements to take
Input: Provided by a text file named input.txt file, the first line contains two positive integers m and n, respectively, the number of rows and columns of the board, from the beginning of the second line, each line has a positive integer n, represents the number of checkerboard
Output: Output to file output.txt, the sum of the first acts to take the maximum number of
输入:由文件名为input.txt的文本文件提供,第一行有两个正整数m和n,分别表示棋盘的行数和列数,从第二行开始,每行有n个正整数,表示棋盘方格中的数
输出:输出到文件output.txt,第一行为取数的最大总和-In an m* n chessboard squares, each square has a positive integer. The sum is now taken from the grid number, so that any two squares where the numbers are not public side, and remove the maximum number. Linear programming, design a number of algorithms to meet the requirements to take
Input: Provided by a text file named input.txt file, the first line contains two positive integers m and n, respectively, the number of rows and columns of the board, from the beginning of the second line, each line has a positive integer n, represents the number of checkerboard
Output: Output to file output.txt, the sum of the first acts to take the maximum number of
(系统自动生成,下载前可以参看下载内容)
下载文件列表
GridNumber
..........\Debug
..........\.....\GridNumber.exe
..........\.....\GridNumber.ilk
..........\.....\GridNumber.pch
..........\.....\GridNumber.pdb
..........\.....\LinearProgram.obj
..........\.....\main.obj
..........\.....\vc60.idb
..........\.....\vc60.pdb
..........\GridNumber.dsp
..........\GridNumber.dsw
..........\GridNumber.ncb
..........\GridNumber.opt
..........\GridNumber.plg
..........\input.txt
..........\LinearProgram.cpp
..........\LinearProgram.h
..........\main.cpp
..........\output.txt