HDU 3466 Proud Merchants

这是个需要排序预处理的01背包问题(够sxbk),排序的基准是q-p小的在前。

至于为啥。。。我是可耻的翻了题解才知道怎么做的,这位讲的清楚明白:

http://blog.csdn.net/oceanlight/article/details/7866759

Leave a Reply

Scroll to top