D. Easy Problem 题目链接: 题意 给你一个长度为N的串,如果里面出现了"hard"这个子序列,那么这个串就是hard串,你可以删除一些字符,来使他不是一个hard串,每个字符会有一个权值A[i],每次删除字符,都会消耗权值,要求最小的删除方案是什么? 思路 官方题解 Denote string t as hard. We will solve this problem with dynamic programming. Denote dpcnt,len — the minimum possible ambiguity if we considered first cnt l...