常见的一个报错内容:原因可能真的很奇怪,但是那就那么三四种情况,在此记录一下这个问题 console.js:213 Warning: Each child in a list should have a unique "key" prop. Check the render method of Panel. It was passed a chi…
前提:答案满足凸性
题目类似为 n n n 个里面选 m m m 个求某种代价,暴力二维dp复杂度大,但容易计算不限制选的次数。
由于不限制选的次数,所以给选一个东西给一个代价 v v v,然后判断最后选了多少个,再…