博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年8月12日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1114View Code 1 #include<stdio.h> 2 3 int main( ) 4 { 5 int cases ; 6 int f ; 7 int e ; 8 int maxVolumn ; 9 int N ;10 int i ;11 int j ;12 int P[50001] ;13 int W[10001] ;14 int record[10001] ;15 const int INF = 10... 阅读全文

posted @ 2012-08-12 13:56 皇星客栈--Linux 阅读(167) 评论(0) 推荐(0) 编辑

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2602View Code 1 #include<cstdio> 2 #include<cstring> 3 4 int main( ) 5 { 6 int cases; 7 int i; 8 int j; 9 int nPack;10 int maxVolume;11 int weight[1001];12 int value[1001];13 int record[1001];14 15 scanf("%d",&cases)... 阅读全文

posted @ 2012-08-12 09:34 皇星客栈--Linux 阅读(127) 评论(0) 推荐(0) 编辑