#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int inf=1<<30; const ll INF=1LL<<62; typedef pair P; typedef pair PP; const ll MOD=998244353; int main(){ int N; cin>>N; vector> F(N,vector(N)); for(int i=0;i>F[i][j]; } } //unordered_map ump; vector ump(1<>i)&1) continue; ump[S]=i; break; } } /* vector dp(1<>j&1) continue; dp[S|(1< dp; dp[0]=0; for(auto [S,v]:dp){ int idx=ump[S]; if(idx==-1) continue; for(int j=idx+1;j>j)&1) continue; dp[S|(1<