#include using namespace std; using LL=long long; using ULL=unsigned long long; #define rep(i,n) for(int i=0; i<(n); i++) int N,M; int A[16][16]; int B[16][16]; int offset=0; int ans=1000000000; int solve(int m){ int ians=1000000000; rep(R,1<N) continue; int S=0; int C[16]={}; rep(i,N) rep(j,N) if(R&(1<