hdu 2546 飯卡 01揹包

題目連接:http://acm.hdu.edu.cn/showproblem.php?pid=2546php //author : zhengjj.asd@gmail.com //將最大耗費記錄下,最後留下5塊錢,用於購買最大耗費,可以使結果最小 //除去最大耗費後,問題就成了揹包容量爲 (m - 5) 01揹包問題 #include <stdio.h> #include <string.h>
相關文章
相關標籤/搜索