CCCPaste

Untitled

#include 
#include 
 
using namespace std;
 
int n;
int mat[30][30];
int dp[2500000];
int const mod=1e9 +7;
 
int f(int k)
{
    int pos = __builtin_popcount(k);
    if(pos==n)
    {
        if(k==(1<>n;
    for(int i=0;i>mat[i][j];
        }
    }
    cout<