#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> a(n,vector(m)); for(int i = 0;i>a[i][j]; vector cnt(m,0); for(int i = 0;i cost; for(int i = 0;i