-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ljfirst
committed
Sep 22, 2018
1 parent
e84c5fa
commit e5a2404
Showing
8 changed files
with
104 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package backpack; | ||
/** | ||
*@author liujun | ||
*@date: 2018-9-21 下午08:18:31 | ||
*@author—Email:ljfirst@mail.ustc.edu.cn | ||
*@description: | ||
*@version 1.0 | ||
*/ | ||
public class Package_Test { | ||
|
||
public static void main(String[] args) { | ||
|
||
//背包的重量 | ||
int packageweight = 40; | ||
//物品价值、物品重量 | ||
Integer[] goodsvalue = {6,6,1,5,2,1,1,9,4,9,9,5,4,5,2}; | ||
Integer[] weight = {3,8,3,9,4,6,6,3,9,2,9,8,1,9,7,}; | ||
|
||
new Backpack_dynamic(goodsvalue, weight, packageweight); | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters