zoj 3512 Financial Fraud 给定一个整数序列a1, a2, … , an,求一个不下降序列b1 ≤ b2 ≤ … ≤ bn,使得数列{ai}和{bi}的各项之差的绝对值之和 |
Ineveryquarteroftheseyears,thetwoprogrammerswouldreceiveadatasheet,whichprovidedaseriesofprofitrecordsa1a2...aNinthatperiod.Duetotheeconomiccrisis,theawfulrecordsmightscareinvestorsaway.Therefore,thep