#include typedef long long int ll; #define INF_LL ((1LL<<63)-1) #define MOD 998244353 ll min(ll a, ll b) {ll ans = a > b ? b : a; return ans;} int main() { const ll MAX_K = 9, MAX_A = 5, MAX_B = 34; ll nonX_freq_table[5][34] = {{}}; ll X_freq_table[5] = {}; for(ll a=0; a=0; k--){ for(ll a=0; a