#include #define int long long #define all(v) v.begin(),v.end() #define rall(v) v.rbegin(),v.rend() using namespace std; templateistream&operator>>(istream&I,vector&v){for(auto&i:v)I>>i;return I;} templateostream&operator<<(ostream&O,vector&v){for(auto&i:v)O<>m; matrix(int N,int M):m(N,vector(M,0)){} vector&operator[](int x){return m[x];} matrix operator*(matrix&a){ matrix res(m.size(),a.m[0].size()); for(int i=0;i>=1; } } int pow(int a,int n){ int res=1; while(n){ if(n&1)res=res*a%mod; a=a*a%mod; n>>=1; } return res; } void solve(){ int n,c; cin>>n>>c; vectorv(n); cin>>v; matrix m1(1,n),m2(n,n); for(int i=0;i>t; while(t--)AC::solve(); }