#include #include #include using namespace std; long long solve(int n,long long M,const vector &x){ vector v(n);v[0]=1; for(int i=1;ix(m); for(int i=0;i