#include using namespace std; using ll = long long; #include using namespace atcoder; using mint =modint998244353; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll N; string S; cin>>N>>S; vector ENE(N+1,0); for(int i=0;i SA(N+1,0); for(int i=0;i>SA[i+1]; SA[i+1]+=SA[i]; } int Q; cin>>Q; for(int q=0;q>K; ll an=0; for(int i=0;i