P3097 [USACO13DEC] Optimal Milking G
题目描述
Farmer John has recently purchased a new barn containing N milking machines (1
输入格式
无
输出格式
无
说明/提示
There are 5 machines, with initial milk outputs 1,2,3,4,5. On day 1, machine 5 is updated to output 2 unit of milk, and so on.
On day one, the optimal amount of milk is 2+4 = 6 (also achievable as 1+3+2). On day two, the optimal amount is 7+4 = 11. On day three, the optimal amount is 10+3+2=15.
题意简述:给定n个点排成一排,每个点有一个点权,多次改变某个点的点权并将最大点独立集计入答案,输出最终的答案
感谢@zht467 提供翻译