Educational Codeforces Round 120 (Rated for Div. 2) D. Shuffle
#include<bits/stdc++.h>using namespace std;#define int long long const int N=1e4+10;const int mod=998244353;int n,k,pre[N];char ch[N];vector<pair<int,int>> v;int qpow(int a,int b){ int res=1; while(b){ if(b&1) r