#include using namespace std; using ll=long long; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll N,M; cin>>N>>M; vector S(M,0); vector> A(N,vector(M)); for(int i=0;i>A[i][j]; S[j]+=A[i][j]; } } vector D(N,0); for(int i=0;i