#include #include #include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n,m; cin>>n>>m; vector> s(n,vector(m)); for(int i = 0;i>s[i][j]; vector dp(1< use(n,0); for(int j = 0;j>k&1&&s[j][k]==0) fn = true; if(!fn) use[j] = 1; } for(int j = 0;j>j&1){ int cnt = 0; int ok = 0; for(int k = 0;k=cnt) dp[i|(1<