#include using namespace std; typedef long long ll; #define M 998244353 // Author - Kevin Mathew // Birla Institute of Technology, Mesra ll n, k; ll a[2000010], pre[2000010]; ll power(ll x, ll a){ ll ans = 1; // cout << a << " "; // cout << x << " "; while(a > 0){ if(a & 1) ans = ((ans%M) * (x%M)) % M; x = ((x%M) * (x%M)) % M; a /= 2; } // cout << "-" << ans << "\n"; return ans; } void te(){ cin >> n >> k; for(ll i=0;i> a[i]; ll s[k]; for(ll i=0;i