摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2639题意:给你一些Bone和一个背包体积,求第K大的价值;思路:采用了三维的数组第三维是存(1-k)大的值的:View Code #include<cstdio>#include<iostream>#include<algorithm>#include<cstring>using namespace std;int val[120],vv[120];int ans[1200][120],a[120],b[120];int main(){ int q,n,v,k 阅读全文
posted @ 2011-12-06 20:17 LT-blogs 阅读(207) 评论(0) 推荐(0) 编辑