#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; ll dp[2010][2010]; const int MOD=1e9+7; vector divisor(ll x){ set s; for(ll i=1;i*i<=x;i++){ if(x%i==0){ s.insert(i); s.insert(x/i); } } vector res; for(auto y:s) res.push_back(y); sort(ALL(res)); return res; } int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); ll n,k; cin>>n>>k; vector A(n); rep(i,n) cin>>A[i]; vector D=divisor(k); int d=D.size(); map m; rep(i,d) m[D[i]]=i; dp[0][0]=1; for(int i=1;i<=n;i++){ for(int j=0;j