#include using namespace std; #define rep(i, n) for(int i = 0; i < (int)(n); i++) int main(){ int N; cin >> N; int F[N][N]; rep(i, N) rep(j, N) cin >> F[i][j]; unordered_map dp; queue que; que.push(0); while(!que.empty()){ int c = que.front(); que.pop(); int j = 0; while((c & (1<