#include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N = 405; int dp[2][N][N];//dp(i,j,k)表示前i天工作了j天且已经连续工作了k天花费的最小体力值 char s[N]; int n,m; int main(){ scanf("%d%d",&n,&m); scanf("%s",s + 1); memset(dp,0x3f,sizeof(dp)); dp[0...