4 50 1 2 3 4
40
对于100的数据,N≤40,X,Vi≤109
You Like Cake(背包容量过于大的折半搜索法)
原文:https://www.cnblogs.com/nublity/p/10274006.html