#include #include using namespace std; typedef long long ll; const int MX = 100010; ll f[MX],inv[MX],fi[MX]; constexpr ll mod = 998244353; void solve(){ inv[1] = 1; for(int i=2;i> n >> m >> k; string s; cin >> s; dp[0][n] = 1; for(i=1;i<=m;i++){ if(s[i - 1]=='0'){ for(j=k;j<=n;j++){ for(l=j;l<=n;l++){ (dp[i][j] += dp[i - 1][l]*nck(l,j)%mod*pw(2,n - l)%mod) %= mod; } } } if(s[i - 1]=='1'){ for(j=k;j<=n;j++){ for(l=0;l