// line 1 "answer.cpp" #include #include using namespace std; using mint = atcoder::modint998244353; int main() { int n, m, k; string s; cin >> n >> m >> k >> s; vector dp(m+1, vector(27, 0)); vector seen(26, 0); int used = 0; dp[0][0] = 1; for (int i=0; i